diff options
author | Filip Komar <filip@mageia.org> | 2014-01-05 16:01:51 +0000 |
---|---|---|
committer | Filip Komar <filip@mageia.org> | 2014-01-05 16:01:51 +0000 |
commit | 268da1986e106fd8763beea61bfe0fff75ee97ee (patch) | |
tree | f752b22e123124fa5c31b2e4ac0ff51b3be99e63 /en/about/license/license.php | |
parent | a09e145791a75ca7b939fa5e4ee8062c263b0b5b (diff) | |
download | www-268da1986e106fd8763beea61bfe0fff75ee97ee.tar www-268da1986e106fd8763beea61bfe0fff75ee97ee.tar.gz www-268da1986e106fd8763beea61bfe0fff75ee97ee.tar.bz2 www-268da1986e106fd8763beea61bfe0fff75ee97ee.tar.xz www-268da1986e106fd8763beea61bfe0fff75ee97ee.zip |
some usability improvements
Diffstat (limited to 'en/about/license/license.php')
-rw-r--r-- | en/about/license/license.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/en/about/license/license.php b/en/about/license/license.php index f52f35d25..61431c067 100644 --- a/en/about/license/license.php +++ b/en/about/license/license.php @@ -41,6 +41,7 @@ function read_license_from_vcs($locale) { $num_of_untranslated_sentences = 0; $num_of_sentences_for_translation = 0; + $untranslated_sentences = array(); $search = array('\\"', '\n', ' '); $replace = array('"','<br>', ' '); foreach($license_strings as $value) { @@ -50,10 +51,11 @@ function read_license_from_vcs($locale) { $license_string = $po_file[$value[0]]["msgstr"][0]; } else { $num_of_untranslated_sentences += $count; + $untranslated_sentences[] = $value[0]; $license_string = $value[0]; } $license_string = str_replace('%s', (isset($value[2]) ? $value[2] : ''), $license_string); - $prepared_license_strings[] = array(str_replace($search, $replace, $license_string), (isset($value[1]) ? $value[1] : 'p'), 'untran' => $num_of_untranslated_sentences, 'all' => $num_of_sentences_for_translation); + $prepared_license_strings[] = array(str_replace($search, $replace, $license_string), (isset($value[1]) ? $value[1] : 'p'), 'untran' => $num_of_untranslated_sentences, 'all' => $num_of_sentences_for_translation, 'untranslated_sentences' => $untranslated_sentences); } return $prepared_license_strings; |