aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2014-01-21 17:29:20 +0000
committerFilip Komar <filip@mageia.org>2014-01-21 17:29:20 +0000
commite56aa6d60a47c5bd83eba7040fc42a87b87f1e23 (patch)
tree9266089ce380bb1d6d4932d3242dd34007678da1
parentb0c1f79cd7a82cff74c46e6aff25e836bfd0fa39 (diff)
downloadwww-e56aa6d60a47c5bd83eba7040fc42a87b87f1e23.tar
www-e56aa6d60a47c5bd83eba7040fc42a87b87f1e23.tar.gz
www-e56aa6d60a47c5bd83eba7040fc42a87b87f1e23.tar.bz2
www-e56aa6d60a47c5bd83eba7040fc42a87b87f1e23.tar.xz
www-e56aa6d60a47c5bd83eba7040fc42a87b87f1e23.zip
doc entry page has now a note about old existing translations (see Esperanto)
-rw-r--r--en/doc/archive.php2
-rw-r--r--en/doc/doc.php21
-rw-r--r--en/doc/index.php8
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';
</div>
</div>
</div>
- <div style="margin-left: 2em;">
+ <div style="margin-left: 1em; width: 24em;">
<hr>
<p><a href="//www.mageia.org/<?php echo $locale; ?>/map/"><?php _e('Mageia sitemap')?></a>
| <a href="//www.mageia.org/<?php echo $locale; ?>/support/"><?php _e('Support')?></a></p>
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);
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';
<?php _e('Feel free to help us improving it!')?></p>
<hr>
<h3>Mageia 4</h3>
- <div style="float: left; margin: 2em;">
+ <div style="float: left; margin: 1em; width: 24em;">
<p style="margin-left: 2em;"><?php
doc_list(_t('Installer'), 'installer', 4, '<a href="//doc.mageia.org/installer/4/%s/content/index.html">HTML</a>',
'<a href="//doc.mageia.org/installer/4/%s/content/index.html">EPUB</a>',
'<a href="//doc.mageia.org/installer/4/%s/content/index.html">PDF</a>');
?></p>
</div>
- <div style="float: right; margin: 2em;">
+ <div style="float: right; margin: 1em; width: 24em;">
<p style="margin-left: 2em;"><?php
doc_list(_t('Control Center'), 'control_center', 4, '<a href="//doc.mageia.org/mcc/4/%s/content/index.html">HTML</a>',
'<a href="//doc.mageia.org/mcc/4/%s/content/index.html">EPUB</a>',
@@ -46,12 +46,12 @@ require 'doc.php';
</div>
<hr style="clear: both;">
<h3>Mageia 3</h3>
- <div style="float: left; margin: 2em;">
+ <div style="float: left; margin: 1em; width: 24em;">
<p style="margin-left: 2em;"><?php
doc_list(_t('Installer'), 'installer', 3, '<a href="//doc.mageia.org/installer/3/%s/content/index.html">HTML</a>');
?></p>
</div>
- <div style="float: right; margin: 2em;">
+ <div style="float: right; margin: 1em; width: 24em;">
<p style="margin-left: 2em;"><?php
doc_list(_t('Control Center'), 'control_center', 3, '<a href="//doc.mageia.org/mcc/3/%s/content/index.html">HTML</a>');
?></p>