improve message and make it translatable

This commit is contained in:
Marc Delisle
2010-11-19 13:02:41 -05:00
parent 9dd406c045
commit d09e630af2
2 changed files with 4 additions and 1 deletions

View File

@@ -94,6 +94,9 @@ $js_messages['strSelectForeignKey'] = __('Select Foreign Key');
$js_messages['strPleaseSelectPrimaryOrUniqueKey'] = __('Please select the primary key or a unique key'); $js_messages['strPleaseSelectPrimaryOrUniqueKey'] = __('Please select the primary key or a unique key');
$js_messages['strChangeDisplay'] = __('Choose column to display'); $js_messages['strChangeDisplay'] = __('Choose column to display');
/* Visual query builder (pmd/scripts/move.js) */
$js_messages['strAddOption'] = __('Add an option for column ');
/* password generation */ /* password generation */
$js_messages['strGeneratePassword'] = __('Generate password'); $js_messages['strGeneratePassword'] = __('Generate password');
$js_messages['strGenerate'] = __('Generate'); $js_messages['strGenerate'] = __('Generate');

View File

@@ -972,7 +972,7 @@ function Click_option(id_this,column_name,table_name)
// var top = Glob_Y - document.getElementById(id_this).offsetHeight - 10; // var top = Glob_Y - document.getElementById(id_this).offsetHeight - 10;
document.getElementById(id_this).style.top = (screen.height / 4) + 'px'; document.getElementById(id_this).style.top = (screen.height / 4) + 'px';
document.getElementById(id_this).style.visibility = "visible"; document.getElementById(id_this).style.visibility = "visible";
document.getElementById('option_col_name').innerHTML = '<strong>Options For "' +column_name+ '" column</strong>'; document.getElementById('option_col_name').innerHTML = '<strong>' + PMA_messages['strAddOption'] +'"' +column_name+ '"</strong>';
col_name = column_name; col_name = column_name;
tab_name = table_name; tab_name = table_name;
} }