aboutsummaryrefslogtreecommitdiffstats
path: root/langs/missing.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2014-12-02 20:55:57 +0100
committerfilip <filip.komar@gmail.com>2014-12-02 20:55:57 +0100
commit2cd5ef6d8faa56a54b5f4bcea59b3973d2e9a535 (patch)
tree2212f8d44db58d31ad610fbd6c0725113b647245 /langs/missing.php
parentc9f8e04fc0f461f8cb3cc875b95e5d055267065c (diff)
downloadwww-2cd5ef6d8faa56a54b5f4bcea59b3973d2e9a535.tar
www-2cd5ef6d8faa56a54b5f4bcea59b3973d2e9a535.tar.gz
www-2cd5ef6d8faa56a54b5f4bcea59b3973d2e9a535.tar.bz2
www-2cd5ef6d8faa56a54b5f4bcea59b3973d2e9a535.tar.xz
www-2cd5ef6d8faa56a54b5f4bcea59b3973d2e9a535.zip
bugfix for dash languages in Transifex + more work focused link there
Diffstat (limited to 'langs/missing.php')
-rw-r--r--langs/missing.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/langs/missing.php b/langs/missing.php
index 552cf4abe..345e9035e 100644
--- a/langs/missing.php
+++ b/langs/missing.php
@@ -45,10 +45,15 @@ if($constitution) {
$constitution_or_license .= '<p>You can find it in <a href="http://gitweb.mageia.org/web/www/tree/en/about/constitution/">git</a>.';
}
+$tx_resource_name = 'page-' . str_replace(array('../_nav/langs/en', '/'), array('nav', '-'), $resource);
+$tx_language_code = locale_hyphen_underscore($l, true);
$num_of_untranslated_strings = 0;
if($license) {
$constitution_or_license .= '<h2 style="color: red;">Please translate <a href="http://gitweb.mageia.org/software/drakx/tree/perl-install/share/po/">separate license file</a> into ' . $langs[$l] . ' first</h2>';
- $constitution_or_license .= '<p>You can find it as a part of a separate <a href="http://gitweb.mageia.org/software/drakx/tree/perl-install/share/po/' . $l . '.po">drakx translation file in git</a> or in <a href="https://www.transifex.com/organization/MageiaLinux/dashboard/all_resources/' . $l . '/#1/?s=drakx_share">Transifex</a> (it starts before the line with the string "1. License Agreement").'; // git doesn't work yet on https
+ $constitution_or_license .= '<p>You can find it as a part of a separate <a href="http://gitweb.mageia.org/software/drakx/tree/perl-install/share/po/';
+ $constitution_or_license .= $l . '.po">drakx translation file in git</a> or in <a href="https://www.transifex.com/organization/MageiaLinux/dashboard/all_resources/';
+ $constitution_or_license .= $tx_language_code . '/#1/?s=drakx_share">Transifex</a> (it starts before ';
+ $constitution_or_license .= 'the line with the string "1. License Agreement").'; // git doesn't work yet on https
}
if($constitution || $license) {
@@ -67,14 +72,19 @@ if($constitution || $license) {
<p><a href="report.php<?php echo '?l=' . $l ?>">&laquo; back to the report page for <?php echo $langs[$l] ?></a></p>
<h1>Missing language file - <?php echo $file ?></h1>
-<p>Note that you can translate most of our web page resources online in <a href="http://www.transifex.com/organization/MageiaLinux/dashboard/all_resources/<?php echo $l ?>/#1/?c=Webpages">Transifex</a>.</p>
+<p>Note that you can translate most of our web page resources online in <a href="http://www.transifex.com/organization/MageiaLinux/dashboard/all_resources/<?php
+echo $tx_language_code;
+?>/#1/?c=Webpages&amp;o=priority">Transifex</a>.</p>
<p>Please take a look off the translation guide on the <a href="https://wiki.mageia.org/en/Internationalisation_Team_(i18n)#Website_translation">localization Wiki page</a> too.</p>
<p>So, <code><?php echo $file ?></code> language file is missing in <?php echo $langs[$l], ' (<code>', $l, '</code>)' ?>. What can you do to help us?</p>
<?php echo $constitution_or_license; ?>
<ol>
<?php
-echo ' <li>You can start translating the source file ' . $to_translate . ' in <a href="http://www.transifex.com/organization/MageiaLinux/dashboard/all_resources/' . $l . '/#1/?c=Webpages">Transifex</a> or any other gettext editor of your choice and rename it to <code>' . $file . '</code>.' . $note . '</li>' . PHP_EOL;
+echo ' <li>You can start translating the source file ' . $to_translate;
+echo ' in <a href="http://www.transifex.com/organization/MageiaLinux/dashboard/all_resources/';
+echo $tx_language_code . '/#1/?s=' . $tx_resource_name . '&amp;c=Webpages">Transifex</a> or any other gettext editor ';
+echo 'of your choice and rename it to <code>' . $file . '</code>.' . $note . '</li>' . PHP_EOL;
?>
<li>Then:
<ul>