aboutsummaryrefslogtreecommitdiffstats
path: root/langs
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2014-01-12 21:41:42 +0000
committerFilip Komar <filip@mageia.org>2014-01-12 21:41:42 +0000
commit144b636e1b234e56fd847c9663edc2331b38a234 (patch)
tree049f55f3433afdfd4b73a2ecc858f74950737ea7 /langs
parent3a2f4b84559d12dcf2e73fdf97d14337876e069c (diff)
downloadwww-144b636e1b234e56fd847c9663edc2331b38a234.tar
www-144b636e1b234e56fd847c9663edc2331b38a234.tar.gz
www-144b636e1b234e56fd847c9663edc2331b38a234.tar.bz2
www-144b636e1b234e56fd847c9663edc2331b38a234.tar.xz
www-144b636e1b234e56fd847c9663edc2331b38a234.zip
small fix in l10n report
Diffstat (limited to 'langs')
-rw-r--r--langs/diff.php1
-rw-r--r--langs/lib.php6
2 files changed, 3 insertions, 4 deletions
diff --git a/langs/diff.php b/langs/diff.php
index cdaf6b8f2..c7a2cb368 100644
--- a/langs/diff.php
+++ b/langs/diff.php
@@ -72,7 +72,6 @@ if($constitution) {
$unique_lines_in_eng_constitution = $constitution_results['unique_lines_in_constitution'];
$lang_constitution_results = aproximate_number_of_untranslated_constitution_lines(APP_ROOT, $target_lang, $unique_lines_in_eng_constitution);
$constitution_readable = $lang_constitution_results['constitution_readable'];
- $num_of_untranslated_lines = $lang_constitution_results['aproximate_number_of_untranslated_lines'];
if ($constitution_readable) {
$diff['untranslated_lines_in_constitution'] = $lang_constitution_results['untranslated_lines_in_constitution']; // add untranslated license sentences
} else {
diff --git a/langs/lib.php b/langs/lib.php
index f93e53777..b75fb280b 100644
--- a/langs/lib.php
+++ b/langs/lib.php
@@ -126,13 +126,13 @@ function get_other_langs()
function aproximate_number_of_untranslated_constitution_lines($app_root, $lang, $unique_lines_in_eng_constitution = array())
{
- $constitution_is_readable = FALSE;
+ $constitution_readable = FALSE;
$dest_constitution = sprintf('%s/%s/%s/%s_%s.md', $app_root, $lang, 'about/constitution', 'mageia.org_statutes', $lang);
$number_of_unique_lines_in_eng_constitution = count($unique_lines_in_eng_constitution);
if(is_readable($dest_constitution)) {
$unique_lines_in_constitution = array_unique(file($dest_constitution));
$number_of_unique_lines_in_constitution = count($unique_lines_in_constitution);
- $constitution_is_readable = TRUE;
+ $constitution_readable = TRUE;
if ($lang == 'en') {
$aproximate_number_of_untranslated_lines = $number_of_unique_lines_in_constitution;
$untranslated_lines_in_constitution = array();
@@ -154,7 +154,7 @@ function aproximate_number_of_untranslated_constitution_lines($app_root, $lang,
return array(
'unique_lines_in_constitution' => $unique_lines_in_constitution,
- 'constitution_readable' => $constitution_is_readable,
+ 'constitution_readable' => $constitution_readable,
'untranslated_lines_in_constitution' => $untranslated_lines_in_constitution,
'aproximate_number_of_untranslated_lines' => $aproximate_number_of_untranslated_lines,
);