From 3af218eb762eaa3a2e0515b51f358a0893962bd5 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Fri, 13 Apr 2012 19:56:47 +0530 Subject: [PATCH] Make some messages translatable --- js/messages.php | 2 ++ js/server_status_monitor.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/js/messages.php b/js/messages.php index 7b10563258..4eba015c42 100644 --- a/js/messages.php +++ b/js/messages.php @@ -210,6 +210,8 @@ $js_messages['strAffectedRows'] = __('Affected rows:'); $js_messages['strFailedParsingConfig'] = __('Failed parsing config file. It doesn\'t seem to be valid JSON code.'); $js_messages['strFailedBuildingGrid'] = __('Failed building chart grid with imported config. Resetting to default config...'); $js_messages['strImport'] = __('Import'); +$js_messages['strImportDialogTitle'] = __('Import monitor configuration'); +$js_messages['strImportDialogMessage'] = __('Please select the file you want to import'); $js_messages['strAnalyzeQuery'] = __('Analyse Query'); diff --git a/js/server_status_monitor.js b/js/server_status_monitor.js index 84e82c993e..87040f2005 100644 --- a/js/server_status_monitor.js +++ b/js/server_status_monitor.js @@ -507,8 +507,8 @@ $(function() { }); $('a[href="#importMonitorConfig"]').click(function() { - $('div#emptyDialog').attr('title', 'Import monitor configuration'); - $('div#emptyDialog').html('Please select the file you want to import:
' + + $('div#emptyDialog').attr('title', PMA_messages['strImportDialogTitle']); + $('div#emptyDialog').html(PMA_messages['strImportDialogMessage'] + ':
' + '
'); var dlgBtns = {};