From 268da1986e106fd8763beea61bfe0fff75ee97ee Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Sun, 5 Jan 2014 16:01:51 +0000 Subject: some usability improvements --- en/about/license/license.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'en/about/license/license.php') 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('"','
', ' '); 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; -- cgit v1.2.1