From e56aa6d60a47c5bd83eba7040fc42a87b87f1e23 Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Tue, 21 Jan 2014 17:29:20 +0000 Subject: doc entry page has now a note about old existing translations (see Esperanto) --- en/doc/archive.php | 2 +- en/doc/doc.php | 21 +++++++++++++++------ en/doc/index.php | 8 ++++---- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/en/doc/archive.php b/en/doc/archive.php index 00f42b2fe..5ec5965a6 100644 --- a/en/doc/archive.php +++ b/en/doc/archive.php @@ -35,7 +35,7 @@ require 'doc.php'; -
+

|

diff --git a/en/doc/doc.php b/en/doc/doc.php index cb2289de7..abd991774 100644 --- a/en/doc/doc.php +++ b/en/doc/doc.php @@ -1,12 +1,12 @@ ' . PHP_EOL; // $table .= ''; $table .= "\t" . PHP_EOL; - foreach ($documentation[$type][$version] as $current_version => $lng) { + foreach ($documentation[$type][$version] as $lng) { // hopefully temporary exception for pt-br as convention for lang-abbrev in /langs.inc.php is different as link in doc.mageia.org if ($lng == 'pt_br') { $lng_name = $langs['pt-br']; @@ -62,11 +62,20 @@ function doc_list($documentation_name, $type, $version, $link, $epub_link = null "\t\t%s" . PHP_EOL, $your_language, $text_others); } else { + foreach($documentation[$type] as $single_version => $all_languages) { + if($single_version < $version && in_array($locale, $all_languages)) { + $language_present_before = "\t\t" . + sprintf("Translation was present in %s before.
Maybe you can check documentation for %s in Mageia %s.", + $langs[$locale], $documentation_name, $single_version) . "" . PHP_EOL; + } else { + $language_present_before = ''; + } + } $text_your_language = _t('Please help us translate it in your language.') . '
'; $table .= sprintf("\t\t%s" . PHP_EOL . - "\t\t%s" . PHP_EOL . + "\t\t%s" . PHP_EOL . '%s' . "\t\t " . PHP_EOL, - '' . $documentation_name . '', $text_your_language); + '' . $documentation_name . '', $text_your_language, $language_present_before); } foreach ($others as $other_languages) { $table .= sprintf("\t\t%s" . PHP_EOL, $other_languages); diff --git a/en/doc/index.php b/en/doc/index.php index 7125ab9cd..af042f46b 100644 --- a/en/doc/index.php +++ b/en/doc/index.php @@ -30,14 +30,14 @@ require 'doc.php';


Mageia 4

-
+

HTML', 'EPUB', 'PDF'); ?>

-
+

HTML', 'EPUB', @@ -46,12 +46,12 @@ require 'doc.php';


Mageia 3

-
+

HTML'); ?>

-
+

HTML'); ?>

-- cgit v1.2.1