From 268da1986e106fd8763beea61bfe0fff75ee97ee Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Sun, 5 Jan 2014 16:01:51 +0000 Subject: some usability improvements --- langs/missing.php | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) (limited to 'langs/missing.php') diff --git a/langs/missing.php b/langs/missing.php index 0514be1c3..44016693a 100644 --- a/langs/missing.php +++ b/langs/missing.php @@ -12,6 +12,18 @@ if (is_null($s)) { include 'lib.php'; +if($s =='en/about/constitution.en.lang') { + $constitution = true; +} else { + $constitution = false; +} + +if($s =='en/about/license.en.lang') { + $license = true; +} else { + $license = false; +} + 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!'; @@ -24,18 +36,35 @@ if ($s == '../_nav/langs/en.lang') { $iframe = '//www.mageia.org/langs/'.$s; } +$constitution_or_license = ''; +if($constitution) { + $constitution_or_license .= '

Please translate constitution first

'; + $constitution_or_license .= '

You can find it in svn. '; +} + +$num_of_untranslated_strings = 0; +if($license) { + $constitution_or_license .= '

Please translate license into ' . $langs[$target_lang] . ' first

'; + $constitution_or_license .= sprintf('

You can find it in git. ', $target_lang); // git doesn't work yet on https +} + +if($constitution || $license) { + $constitution_or_license .= 'Please read page on wiki for more information about that.

Then:

'; +} + ?> + Missing language file

« back to the report page

- +

Missing language file

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. 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.
  3. -- cgit v1.2.1