aboutsummaryrefslogtreecommitdiffstats
path: root/en/doc/doc.php
diff options
context:
space:
mode:
Diffstat (limited to 'en/doc/doc.php')
-rw-r--r--en/doc/doc.php21
1 files changed, 15 insertions, 6 deletions
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
-$documentation['installer'][4] = array('ca','cs','de','el','en','eo','es','et','fr','id','nl','pl','pt_br','ro','ru','sv','tr','uk');
+$documentation['installer' ][4] = array('ca','cs','de','el','en','eo','es','et','fr','id','nl','pl','pt_br','ro','ru','sv','tr','uk');
$documentation['control_center'][4] = array('de','en','et','fr','id','nl','ru','tr','uk');
-$documentation['installer'][3] = array('de','el','en','es','et','fr','nl','pt_br','ru','uk');
+$documentation['installer' ][3] = array('de','el','en','es','et','fr','nl','pt_br','ru','uk');
$documentation['control_center'][3] = array('en','et','fr');
-$documentation['installer'][2] = array('de','el','en','eo','fr','nl','pt_br','uk');
+$documentation['installer' ][2] = array('de','el','en','eo','fr','nl','pt_br','uk');
function doc_list($documentation_name, $type, $version, $link, $epub_link = null, $pdf_link = null)
{
@@ -21,7 +21,7 @@ function doc_list($documentation_name, $type, $version, $link, $epub_link = null
$table = PHP_EOL . '<table class="dlt2 dlinfo" style="font-size: 10pt;">' . PHP_EOL;
// $table .= '<thead><tr><th></th></tr></thead>';
$table .= "\t<tbody>" . 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<tr><td>%s</td></tr>" . 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<tr><td>" .
+ sprintf("Translation was present in %s before.<br/>Maybe you can check documentation for %s in Mageia %s.",
+ $langs[$locale], $documentation_name, $single_version) . "</td></tr>" . PHP_EOL;
+ } else {
+ $language_present_before = '';
+ }
+ }
$text_your_language = _t('Please help <a href="../community/">us</a> translate it in your language.') . '<br/>';
$table .= sprintf("\t\t<tr><td>%s</td></tr>" . PHP_EOL .
- "\t\t<tr><td>%s</td></tr>" . PHP_EOL .
+ "\t\t<tr><td>%s</td></tr>" . PHP_EOL . '%s' .
"\t\t<tr><td>&nbsp;</td></tr>" . PHP_EOL,
- '<span style="font-weight:bold">' . $documentation_name . '</span>', $text_your_language);
+ '<span style="font-weight:bold">' . $documentation_name . '</span>', $text_your_language, $language_present_before);
}
foreach ($others as $other_languages) {
$table .= sprintf("\t\t<tr><td>%s</td></tr>" . PHP_EOL, $other_languages);