From 1d9f9138fb1ab67866f611a92527304a937b9ad8 Mon Sep 17 00:00:00 2001 From: Andy Staudacher Date: Fri, 19 Jun 2009 03:35:07 +0800 Subject: Fix plural messages in l10n scanner - Bad typo lead to basically breaking all plural ("other") forms. Signed-off-by: --- modules/gallery/helpers/l10n_scanner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gallery/helpers') 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. -- cgit v1.2.3