From 2cd5ef6d8faa56a54b5f4bcea59b3973d2e9a535 Mon Sep 17 00:00:00 2001 From: filip Date: Tue, 2 Dec 2014 20:55:57 +0100 Subject: bugfix for dash languages in Transifex + more work focused link there --- langs/diff.php | 12 ++++++++++-- langs/missing.php | 16 +++++++++++++--- 2 files changed, 23 insertions(+), 5 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 = '« back to the report pag $s .= sprintf('

Differences between %s source and %s target

', $source_file, $target_lang); -$s .= '

You can translate most of our web page resources online in Transifex.

'; +$tx_resource_name = 'page-' . str_replace(array('../_nav/langs/en', '/'), array('nav', '-'), $resource); +$tx_language_code = locale_hyphen_underscore($target_lang, true); +$s .= '

You can translate most of our web page resources online in '; +$s .= "Transifex.

"; + + $s .= '

Please take a look off the translation guide on the localization Wiki page too.

'; $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 .= '

Please translate separate license file fully into ' . $langs[$target_lang] . ' first

'; - $s .= sprintf('

You can find it as a part of a separate drakx translation file in git or in Transifex. ', $target_lang); // git doesn't work yet on https + $s .= '

You can find it as a part of a separate '; + $s .= 'drakx translation file in git or in Transifex. '; // 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 drakx translation file (it starts before the line with the string "1. License Agreement")'; } 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 .= '

You can find it in git.'; } +$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 .= '

Please translate separate license file into ' . $langs[$l] . ' first

'; - $constitution_or_license .= '

You can find it as a part of a separate drakx translation file in git or in Transifex (it starts before the line with the string "1. License Agreement").'; // git doesn't work yet on https + $constitution_or_license .= '

You can find it as a part of a separate drakx translation file in git or in Transifex (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) {

« back to the report page for

Missing language file -

-

Note that you can translate most of our web page resources online in Transifex.

+

Note that you can translate most of our web page resources online in Transifex.

Please take a look off the translation guide on the localization Wiki page too.

So, language file is missing in ', $l, ')' ?>. What can you do to help us?

    You can start translating the source file ' . $to_translate . ' in Transifex or any other gettext editor of your choice and rename it to ' . $file . '.' . $note . '' . PHP_EOL; +echo '
  1. You can start translating the source file ' . $to_translate; +echo ' in Transifex or any other gettext editor '; +echo 'of your choice and rename it to ' . $file . '.' . $note . '
  2. ' . PHP_EOL; ?>
  3. Then:
      -- cgit v1.2.1