summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/l10n_scanner.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-06-18 12:35:07 -0700
committerAndy Staudacher <andy.st@gmail.com>2009-06-18 12:35:07 -0700
commit926eab7168ee2f8de0a02ebbbe82ae8801a360a0 (patch)
treeaaa53a9ae49bd89b17b0be033cb060ba2488499f /modules/gallery/helpers/l10n_scanner.php
parentd7e6c71ede78bd0d38f14578f44a24fc00d56845 (diff)
Fix plural messages in l10n scanner - Bad typo lead to basically breaking all plural ("other") forms.
Diffstat (limited to 'modules/gallery/helpers/l10n_scanner.php')
-rw-r--r--modules/gallery/helpers/l10n_scanner.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/l10n_scanner.php b/modules/gallery/helpers/l10n_scanner.php
index bae455f2..a68aa28b 100644
--- a/modules/gallery/helpers/l10n_scanner.php
+++ b/modules/gallery/helpers/l10n_scanner.php
@@ -125,7 +125,7 @@ class l10n_scanner_Core {
&& is_array($first_param) && $first_param[0] == T_CONSTANT_ENCAPSED_STRING
&& is_array($second_param) && $second_param[0] == T_CONSTANT_ENCAPSED_STRING) {
$singular = self::_escape_quoted_string($first_param[1]);
- $plural = self::_escape_quoted_string($first_param[1]);
+ $plural = self::_escape_quoted_string($second_param[1]);
l10n_scanner::process_message(array("one" => $singular, "other" => $plural), $cache);
} else {
// t2() found, but inside is something which is not a string literal.