diff options
author | Dieter Adriaenssens <ruleant@users.sourceforge.net> | 2011-08-26 00:38:51 +0400 |
---|---|---|
committer | Dieter Adriaenssens <ruleant@users.sourceforge.net> | 2011-08-26 00:38:51 +0400 |
commit | 5c751cd1c033664ea830c1fd152f11ab826092d6 (patch) | |
tree | f0a13de3ff8d28c0a394de08381c6884515b8c5a /setup | |
parent | fd118e02d45cab28409e64837fdcc8367a5c9ce8 (diff) |
make die() messages translatable, where possible
Diffstat (limited to 'setup')
-rw-r--r-- | setup/frames/form.inc.php | 4 | ||||
-rw-r--r-- | setup/index.php | 2 | ||||
-rw-r--r-- | setup/validate.php | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/setup/frames/form.inc.php b/setup/frames/form.inc.php index 61484b2fed..5d34034f09 100644 --- a/setup/frames/form.inc.php +++ b/setup/frames/form.inc.php @@ -22,7 +22,7 @@ require './libraries/config/setup.forms.php'; $formset_id = filter_input(INPUT_GET, 'formset'); $mode = filter_input(INPUT_GET, 'mode'); if (! isset($forms[$formset_id])) { - die('Incorrect formset, check $formsets array in setup/frames/form.inc.php'); + die(__('Incorrect formset, check $formsets array in setup/frames/form.inc.php')); } if (isset($GLOBALS['strConfigFormset_' . $formset_id])) { @@ -33,4 +33,4 @@ foreach ($forms[$formset_id] as $form_name => $form) { $form_display->registerForm($form_name, $form); } process_formset($form_display); -?>
\ No newline at end of file +?> diff --git a/setup/index.php b/setup/index.php index 99c784715d..304e00f762 100644 --- a/setup/index.php +++ b/setup/index.php @@ -19,7 +19,7 @@ if ($page === '') { } if (!file_exists("./setup/frames/$page.inc.php")) { // it will happen only when enterung URL by hand, we don't care for these cases - die('Wrong GET file attribute value'); + die(__('Wrong GET file attribute value')); } // Handle done action info diff --git a/setup/validate.php b/setup/validate.php index beeba71cee..22bdccb60c 100644 --- a/setup/validate.php +++ b/setup/validate.php @@ -19,7 +19,7 @@ header('Content-type: application/json'); $vids = explode(',', filter_input(INPUT_POST, 'id')); $values = json_decode(filter_input(INPUT_POST, 'values')); if (!($values instanceof stdClass)) { - die('Wrong data'); + die(__('Wrong data')); } $values = (array)$values; $result = PMA_config_validate($vids, $values, true); |