From e906073f3faef013d5c706012edca0d7a43db30f Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Mon, 10 Mar 2014 15:49:38 +0000 Subject: some improvements for gettext system --- langs/missing.php | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'langs/missing.php') diff --git a/langs/missing.php b/langs/missing.php index 870835337..952232704 100644 --- a/langs/missing.php +++ b/langs/missing.php @@ -16,10 +16,12 @@ if (strrpos($s, '.pot')) { $gettext = true; $resource = _extract_resource($s); $file = _po_file_switch($s, $l); + $to_translate = '/langs/' .$s . ''; } else { $gettext = false; $resource = _extract_resource($s, '.en.lang'); $file = _lang_file_switch($s, $l); + $to_translate = ''; } if($resource =='constitution') { @@ -38,12 +40,10 @@ if ($s == '../_nav/langs/en.lang') { $file = substr(_lang_file_switch($s, $l), 14); $note = ' NOTE: THIS IS TRANSLATION OF NAVIGATION SO LOCATION FOR COMMIT IS DIFFERENT!'; $commit = 'web/www/trunk/_nav/langs/' . $file . ' and for now to the web/nav/langs/' . $file . ' too'; - $iframe = '//' . $_SERVER['SERVER_NAME'] .'/_nav/langs/en.lang'; + $to_translate = ''; } else { -// $file = _lang_file_switch($s, $l); $note = ''; $commit = 'web/www/trunk/langs/' . $file; - $iframe = '//' . $_SERVER['SERVER_NAME'] .'/langs/'.$s; } $constitution_or_license = ''; @@ -76,8 +76,15 @@ if($constitution || $license) {

So, language file is missing in ', $l, ')' ?>. What can you do to help us?

    -
  1. Copy the source file from the frame below in a text editor and rename it .
  2. -
  3. Replace and translate the strings that are just after the lines starting with a ";". Be careful to always keep your translated text on a single line.
  4. +Copy the source file ' . $to_translate . ' in gettext editor of your choice and rename it to ' . $file . '.' . $note . '' . PHP_EOL; + echo '
  5. You can also translate directly on our project in transifex.
  6. ' . PHP_EOL; + $to_translate = ''; // don't show it bellow +} else { + echo '
  7. Copy the source file from the frame below in a text editor and rename it to ' . $file . '.' . $note . '
  8. ' . PHP_EOL; + echo '
  9. Replace and translate the strings that are just after the lines starting with a ";". Be careful to always keep your translated text on a single line.
  10. ' . PHP_EOL; +} ?>
  11. Then:
    • if you have a SVN account, you may commit it directly in ;
    • @@ -88,7 +95,7 @@ if($constitution || $license) {

Thanks!

- +
-- cgit v1.2.1