From 39efc6af370301529d830f39a6443423946043bf Mon Sep 17 00:00:00 2001 From: thomasb Date: Thu, 10 Apr 2008 09:40:04 +0000 Subject: Putting translator under version control git-svn-id: https://svn.roundcube.net/trunk@1276 208e9e7b-5314-0410-a742-e7e81cd9613c --- translator/index.php | 134 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 translator/index.php (limited to 'translator/index.php') diff --git a/translator/index.php b/translator/index.php new file mode 100644 index 000000000..1f09734fb --- /dev/null +++ b/translator/index.php @@ -0,0 +1,134 @@ + + + + +RoundCube Translator + + + + + + + + + +
+
+What to translate + + + + + +
+ /> + +
+ +

+
+
+ +
+
+ +'; + echo ''; + echo ''; + echo ''; + + 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) + { + // skip translated lines + if(!$translated && !empty($edit_values[$t_key])) + continue; + + if ($post_value = get_input_value('t_'.$t_key)) + $edit_values[$t_key] = $post_value; + + echo '\n"; + echo ''; + echo ''; + echo '\n\n"; + + $count++; + } + + if (!$count) + echo ''; + + echo "
LabelOriginalTranslation
'.htmlspecialchars($t_key).''.htmlspecialchars($t_value).''; + echo "
No new texts to translate
\n"; + echo '

'; + +} + +?> +
+
+ +'."

Localization file

\n"; + echo '
+ \n"; + echo '

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