diff options
Diffstat (limited to 'en/doc')
-rw-r--r-- | en/doc/doc.php | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/en/doc/doc.php b/en/doc/doc.php index 31481288d..5b70c0612 100644 --- a/en/doc/doc.php +++ b/en/doc/doc.php @@ -18,43 +18,40 @@ function doc_list($languages, $link, $epub_link = null, $pdf_link = null) $your_language_present = FALSE; $other_languages_present = FALSE; foreach ($languages as $lng) { - // hopefully temporary exception for pt-br and sv as convention for lang-abbrev in /langs.inc.php is different as link in doc.mageia.org + // 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']; + } else if ($lng == 'sv') { // hopefully temporary exception for sv which does not exist yet in www.mageia.org + $lng_name = 'Svenska'; } else { - // hopefully temporary exception for sv which does not exist yet in www.mageia.org - if ($lng == 'sv') { - $lng_name = 'Swedish'; - } else { - $lng_name = $langs[$lng]; - } + $lng_name = $langs[$lng]; } if ($locale == $lng) { $your_language_present = TRUE; if (is_null($epub_link) or is_null($pdf_link)) { - $your_language = sprintf($lng_name . ' ~> ' . $link . '<br/><br/>', $lng, $lng_name); + $your_language = sprintf($lng_name . ' ~> ' . $link . '<br/><br/>', $lng, $lng_name) . PHP_EOL; } else { - $your_language = sprintf($lng_name . ' ~> ' . $link . - ' <span style="font-size: 07pt;">( available downloads: ' . - $epub_link . ', ' . $pdf_link . ')</span><br/><br/>', - $lng, $lng, $lng); + $your_language = sprintf($lng_name . ' ~> ' . $link . + ' <span style="font-size: 07pt;">( ' . _t('available in:') . + $epub_link . ', ' . $pdf_link . ')</span><br/><br/>', + $lng, $lng, $lng) . PHP_EOL; } } else { $other_languages_present = TRUE; if (is_null($epub_link) or is_null($pdf_link)) { - $others .= sprintf($lng_name . ' ~> ' . $link . '<br/>', $lng, $lng_name); + $others .= sprintf($lng_name . ' ~> ' . $link . '<br/>', $lng, $lng_name) . PHP_EOL; } else { - $others .= sprintf($lng_name . ' ~> ' . $link . + $others .= sprintf($lng_name . ' ~> ' . $link . ' <span style="font-size: 07pt;">( ' . $epub_link . - ', ' . $pdf_link . ')</span><br/>', $lng, $lng, $lng); + ', ' . $pdf_link . ')</span><br/>', $lng, $lng, $lng) . PHP_EOL; } } } if ($your_language_present) { - $text_your_language = _t('<span style="font-weight:bold">Documentation in your language:</span>') . '<br/>'; + $text_your_language = '<span style="font-weight:bold">' . _t('Documentation in your language:') . '</span><br/>'; if ($other_languages_present) { - $text_others = _t('<span style="font-weight:bold">There are also:</span>') . '<br/>'; + $text_others = '<span style="font-weight:bold">' . _t('There are also:') . '</span><br/>'; } } else { $text_your_language = _t('Please help <a href="../community/">us</a> translate it in your language.') . '<br/>'; |