aboutsummaryrefslogtreecommitdiffstats
path: root/langs/lib.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2015-06-28 16:15:05 +0200
committerfilip <filip.komar@gmail.com>2015-06-28 16:15:05 +0200
commitfa8c21e1cd67ecea286f9e8bd8f652be338d61a6 (patch)
treeec93adaeea1845a4868386449ddc1776763a60ab /langs/lib.php
parentc1573e85c3369fee65cb33c8504d50657d65bade (diff)
downloadwww-fa8c21e1cd67ecea286f9e8bd8f652be338d61a6.tar
www-fa8c21e1cd67ecea286f9e8bd8f652be338d61a6.tar.gz
www-fa8c21e1cd67ecea286f9e8bd8f652be338d61a6.tar.bz2
www-fa8c21e1cd67ecea286f9e8bd8f652be338d61a6.tar.xz
www-fa8c21e1cd67ecea286f9e8bd8f652be338d61a6.zip
properly count selfclosed xml translation strings
Diffstat (limited to 'langs/lib.php')
-rw-r--r--langs/lib.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/langs/lib.php b/langs/lib.php
index 5fd5f50d3..f28ae30f9 100644
--- a/langs/lib.php
+++ b/langs/lib.php
@@ -180,11 +180,11 @@ function _ts_diff($locale, $resource, $source_l = NULL, $path = NULL)
$source_strings[] = $source_string[2];
}
// count <translation type="unfinished"></translation> lines
- if (false !== strpos($line, '<translation type="unfinished">')) {
+ if (false !== strpos($line, '<translation type="unfinished"')) {
$untranslated_strings[] = $source_string[2];
}
// count <translation type="obsolete"></translation> lines
- if (false !== strpos($line, '<translation type="obsolete">')) {
+ if (false !== strpos($line, '<translation type="obsolete"')) {
array_pop($source_strings); // subtract obsoleted source strings
$obsoleted_strings[] = $source_string[2];
}