aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,
);