diff options
author | filip <filip.komar@gmail.com> | 2016-07-27 10:39:59 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2016-07-27 10:39:59 +0200 |
commit | 185432b0fc983c9803c2614fb3b3b44990055d25 (patch) | |
tree | 82f380b040ac7f5ee90e6270e07384a2d24227d8 | |
parent | a382f0102954d9c6ebc45cc63aa88cefaa10121f (diff) | |
download | www-185432b0fc983c9803c2614fb3b3b44990055d25.tar www-185432b0fc983c9803c2614fb3b3b44990055d25.tar.gz www-185432b0fc983c9803c2614fb3b3b44990055d25.tar.bz2 www-185432b0fc983c9803c2614fb3b3b44990055d25.tar.xz www-185432b0fc983c9803c2614fb3b3b44990055d25.zip |
adjusting the l10n lib for report regarding changed structure in l10n array
-rw-r--r-- | langs/lib.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/langs/lib.php b/langs/lib.php index 73ef44ced..ddbfff733 100644 --- a/langs/lib.php +++ b/langs/lib.php @@ -111,9 +111,9 @@ function _po_diff($locale, $resource, $source_l = NULL, $path = NULL) if (FALSE != $source_l) { foreach ($source_l as $escaped_string => $subarray) { - if (!empty($subarray["msgid"])) { // filter out header + if (!empty($escaped_string)) { // filter out header $msgctxt = array(); - foreach ($subarray["msgstr"] as $key => $unused) { + foreach ($subarray[0] as $key => $unused) { if (isset($subarray["msgctxt"][$key])) { $msgctxt[$key] = $subarray["msgctxt"][$key]; } else { @@ -131,8 +131,8 @@ function _po_diff($locale, $resource, $source_l = NULL, $path = NULL) if (FALSE != $target_l) { foreach ($target_l as $escaped_string => $subarray) { - if (!empty($subarray["msgid"])) { // filter out header - foreach ($subarray["msgstr"] as $key => $msgstr) { + if (!empty($escaped_string)) { // filter out header + foreach ($subarray[0] as $key => $msgstr) { // remove present string unset($fuzzy_or_missing[$escaped_string][$key]); if (!empty($msgstr)) { |