From 4feff619cb3057be353995675acdbe30319844f6 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Thu, 24 May 2012 16:44:16 +0000 Subject: guide translators for missing files --- langs/missing.php | 44 ++++++++++++++++++++++++++++++++++++++++++++ langs/report.php | 26 ++++++++++++++++---------- 2 files changed, 60 insertions(+), 10 deletions(-) create mode 100644 langs/missing.php diff --git a/langs/missing.php b/langs/missing.php new file mode 100644 index 000000000..0aa78bda2 --- /dev/null +++ b/langs/missing.php @@ -0,0 +1,44 @@ + + + + + + + + +

« back to the report page

+ +

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. +
  5. Then: +
      +
    • if you have a SVN account, you may commit it directly in web/www/trunk/langs/' . _lang_file_switch($s, $l)?>;
    • +
    • or attach it to a mail to Mageia i18n team (mageia-i18n, #mageia-i18n on Freenode).
    • +
    +
  6. +
  7. You can look to the translation guide on the Wiki too [TODO link].
  8. +
+ +

Thanks!

+ +
+ + \ No newline at end of file diff --git a/langs/report.php b/langs/report.php index 13de503a5..ea253bed8 100644 --- a/langs/report.php +++ b/langs/report.php @@ -6,8 +6,7 @@ www.mageia.org translation report @@ -86,10 +86,10 @@ $f, $l); if (count($test['missing']) > 0) { - $s .= count($test['missing']) . ' missing
'; + $s .= count($test['missing']) . ' missing
'; } if (count($test['notrans']) > 0) { - $s .= count($test['notrans']) . ' untranslated'; + $s .= count($test['notrans']) . ' untranslated'; } $s .= ''; } @@ -99,16 +99,19 @@ } else { $stats[$l]['files'] += 0; $stats[$l]['strings'] += 0; - $s .= 'missing'; + $s .= sprintf('missing', + $f, $l + ); } } $s .= ''; } - $th = ''; + $th = ''; $th2 = ''; array_shift($otherLangs); foreach ($otherLangs as $l) { - $th .= '' . $langs[$l] . '
' . $l . ''; + $th .= '' . $langs[$l] . ''; + $th2 .= '' . $l . ''; } $ths = ''; @@ -121,16 +124,19 @@ - + {$th} + + {$th2} + - + {$ths} -- cgit v1.2.1
EnglishEnglishHow to add a new language
Reference
{$stats['en']['files']} files{$stats['en']['strings']} strings{$stats['en']['strings']} strings