Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-11-19 09:40:22 +0300
committermattab <matthieu.aubry@gmail.com>2014-11-19 09:40:22 +0300
commit13c730f35381b441b1b02b22e3990f3f5148de59 (patch)
tree2fda22585deb5baedd2c2a415221d18cf25c4036 /core
parenta1cce15ab1f2eecbea3a087ea287d252bb3d6b89 (diff)
test do not fail when english string is deleted and translation not yet deleted
Diffstat (limited to 'core')
-rw-r--r--core/Translate/Filter/ByParameterCount.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Translate/Filter/ByParameterCount.php b/core/Translate/Filter/ByParameterCount.php
index 74be50d26d..357ab5ba33 100644
--- a/core/Translate/Filter/ByParameterCount.php
+++ b/core/Translate/Filter/ByParameterCount.php
@@ -43,7 +43,8 @@ class ByParameterCount extends FilterAbstract
if (isset($this->baseTranslations[$pluginName][$key])) {
$baseTranslation = $this->baseTranslations[$pluginName][$key];
} else {
- $baseTranslation = '';
+ // english string was deleted, do not error
+ continue;
}
// ensure that translated strings have the same number of %s as the english source strings