Make some messages translatable

This commit is contained in:
Madhura Jayaratne 2012-04-21 22:32:06 +05:30
parent faeffd3566
commit e417febdc1
2 changed files with 5 additions and 3 deletions

View File

@ -192,6 +192,8 @@ $js_messages['strTotalTime'] = __('Total time:');
$js_messages['strProfilingResults'] = __('Profiling results');
$js_messages['strTable'] = _pgettext('Display format', 'Table');
$js_messages['strChart'] = __('Chart');
$js_messages['strChartEdit'] = __('Edit chart');
$js_messages['strSeries'] = __('Series');
/* l10n: A collection of available filters */
$js_messages['strFiltersForLogTable'] = __('Log table filter options');

View File

@ -1119,8 +1119,8 @@ $(function() {
return;
}
var htmlStr = '<p><b>Chart title: </b> <br/> <input type="text" size="35" name="chartTitle" value="' + chart.title + '" />';
htmlStr += '</p><p><b>Series:</b> </p><ol>';
var htmlStr = '<p><b>' + PMA_messages['strChartTitle'] + ': </b> <br/> <input type="text" size="35" name="chartTitle" value="' + chart.title + '" />';
htmlStr += '</p><p><b>' + PMA_messages['strSeries'] + ':</b> </p><ol>';
for (var i = 0; i<chart.nodes.length; i++) {
htmlStr += '<li><i>' + chart.nodes[i].dataPoints[0].name + ': </i><br/><input type="text" name="chartSerie-' + i + '" value="' + chart.nodes[i].name + '" /></li>';
}
@ -1145,7 +1145,7 @@ $(function() {
$('div#emptyDialog').html(htmlStr + '</ol>');
$('div#emptyDialog').dialog({
title: 'Edit chart',
title: PMA_messages['strChartEdit'],
width: 'auto',
height: 'auto',
buttons: dlgBtns