aboutsummaryrefslogtreecommitdiffstats
path: root/langs/diff.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/diff.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/diff.php')
-rw-r--r--langs/diff.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/langs/diff.php b/langs/diff.php
index 9986bf1b2..fcc0f93ff 100644
--- a/langs/diff.php
+++ b/langs/diff.php
@@ -70,7 +70,13 @@ $s = '<a href="report.php?l=' . $target_lang . '">&laquo; back to the report pag
$s .= sprintf('<h1>Differences between %s source and %s target</h1>',
$source_file, $target_lang);
-$s .= '<p>You can translate most of our web page resources online in <a href="http://www.transifex.com/organization/MageiaLinux/dashboard/all_resources/' . $target_lang . '/#1/?c=Webpages">Transifex</a>.</p>';
+$tx_resource_name = 'page-' . str_replace(array('../_nav/langs/en', '/'), array('nav', '-'), $resource);
+$tx_language_code = locale_hyphen_underscore($target_lang, true);
+$s .= '<p>You can translate most of our web page resources online in ';
+$s .= "<a href=\"http://www.transifex.com/organization/MageiaLinux/dashboard/all_resources/";
+$s .= "$tx_language_code/#1/?s=$tx_resource_name&amp;c=Webpages\">Transifex</a>.</p>";
+
+
$s .= '<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>';
$additional_file = '';
@@ -96,7 +102,9 @@ if($license) {
$num_of_untranslated_strings = $license_numbers["untran"]; // number of all license sentences
$diff['untranslated_sentences_in_license'] = $license_numbers['untranslated_sentences']; // add untranslated license sentences
$s .= '<h2 style="color: red;">Please translate <a href="http://gitweb.mageia.org/software/drakx/tree/perl-install/share/po/' . $target_lang . '.po">separate license file</a> fully into ' . $langs[$target_lang] . ' first</h2>';
- $s .= sprintf('<p>You can find it as a part of a separate <a href="http://gitweb.mageia.org/software/drakx/tree/perl-install/share/po/' . $target_lang . '.po">drakx translation file in git</a> or in <a href="https://www.transifex.com/organization/MageiaLinux/dashboard/all_resources/' . $target_lang . '/#1/?s=drakx_share">Transifex</a>. ', $target_lang); // git doesn't work yet on https
+ $s .= '<p>You can find it as a part of a separate <a href="http://gitweb.mageia.org/software/drakx/tree/perl-install/share/po/' . $target_lang . '.po">';
+ $s .= 'drakx translation file in git</a> or in <a href="https://www.transifex.com/organization/MageiaLinux/dashboard/all_resources/';
+ $s .= $tx_language_code . '/#1/?s=drakx_share">Transifex</a>. '; // git doesn't work yet on https
$issues['untranslated_sentences_in_license'] = 'untranslated msgid strings in ' . $num_of_untranslated_strings . ' license sentences as a part of a separate <a href="http://gitweb.mageia.org/software/drakx/tree/perl-install/share/po/' . $target_lang . '.po">drakx translation file</a> (it starts before the line with the string "1. License Agreement")';
}