From f7fb0d5f560f11abc1738837e235853668ad4c6e Mon Sep 17 00:00:00 2001 From: thomasb Date: Wed, 30 Apr 2008 13:16:56 +0000 Subject: Remove short php tags + add option to download the localization file git-svn-id: https://svn.roundcube.net/trunk@1345 208e9e7b-5314-0410-a742-e7e81cd9613c --- translator/index.php | 85 ++++++++++++++++++++-------------------------------- 1 file changed, 33 insertions(+), 52 deletions(-) (limited to 'translator/index.php') diff --git a/translator/index.php b/translator/index.php index 5caaf5363..807159e30 100644 --- a/translator/index.php +++ b/translator/index.php @@ -1,4 +1,26 @@ - + @@ -14,23 +36,21 @@ - -
-
+
What to translate
- /> + />
@@ -39,7 +59,7 @@
-
+ '; echo 'LabelOriginalTranslation'; - if ($lang != "_NEW_") - @include(update_from_svn($lang, $file)); - - if (!empty($labels)) - $edit_values = $labels; - else if (!empty($messages)) - $edit_values = $messages; - else - $edit_values = array(); - $count = 0; foreach($orig_values as $t_key => $t_value) { @@ -83,7 +93,9 @@ if (!empty($lang) && !empty($file)) echo 'No new texts to translate'; echo "\n"; - echo '

'; + echo '


'; + echo ' Download directly

'; + echo '

Save the localization file and post it to the dev-mailing list

'; } @@ -95,42 +107,11 @@ if (!empty($lang) && !empty($file)) if (isset($_POST["save"]) && $file && $lang) { - $array = $file == "messages.inc" ? '$messages' : '$labels'; - $fpath = $lang != "_NEW_" ? update_from_svn($lang, $file) : 'nope'; - - if (!strstr($fpath, 'http') && !is_file($fpath)) - $fpath = realpath("./$file"); - echo '
'."

Localization file

\n"; echo ' \n"; + echo htmlspecialchars(build_localization($lang, $file), ENT_COMPAT, 'UTF-8'); + echo "\n"; echo '

'; echo "\n
"; } -- cgit v1.2.3