diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-11-19 09:40:22 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-11-19 09:40:22 +0300 |
commit | 13c730f35381b441b1b02b22e3990f3f5148de59 (patch) | |
tree | 2fda22585deb5baedd2c2a415221d18cf25c4036 /core | |
parent | a1cce15ab1f2eecbea3a087ea287d252bb3d6b89 (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.php | 3 |
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 |