aboutsummaryrefslogtreecommitdiffstats
path: root/langs/lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'langs/lib.php')
-rw-r--r--langs/lib.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/langs/lib.php b/langs/lib.php
index db1fc21f5..091883292 100644
--- a/langs/lib.php
+++ b/langs/lib.php
@@ -21,13 +21,14 @@ include '../langs.inc.php';
function _lang_diff($a, $b)
{
$fa = i18n::_lang_return($a);
- $fb = i18n::_lang_return($b);
+ $fb = i18n::_lang_return($b, true); // option to return duplicates
+ $duplicates = (isset($fb['duplicates']) ? array_pop($fb) : null);
- $ret = array(
+/* $ret = array(
'aCount' => count($fa),
'bCount' => count($fb),
'diff' => count($fa) - count($fb),
- );
+ ); unused var */
$missing = array();
$notrans = array();
@@ -53,7 +54,8 @@ function _lang_diff($a, $b)
'b' => count($fb),
'missing' => $missing,
'notrans' => $notrans,
- 'extra' => $extra
+ 'extra' => $extra,
+ 'dup_str' => $duplicates,
);
}