diff options
| author | jhilden <jakobhilden@gmail.com> | 2009-06-29 16:03:45 -0400 |
|---|---|---|
| committer | jhilden <jakobhilden@gmail.com> | 2009-06-29 16:03:45 -0400 |
| commit | b31b3bd5bff4f8d5b5721e0fdd86579028a5b03a (patch) | |
| tree | 9baa2a301c1e26dcf872e0bbfbb09be34cb020d5 /modules/gallery/helpers/l10n_scanner.php | |
| parent | eb82f6a64a6b4e0b4e18ca92689bd467cba6e1bd (diff) | |
| parent | 5de6de6a133c6c906ee63b5a2ab1b08bc14ca17e (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/helpers/l10n_scanner.php')
| -rw-r--r-- | modules/gallery/helpers/l10n_scanner.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/helpers/l10n_scanner.php b/modules/gallery/helpers/l10n_scanner.php index 80b6f01c..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. @@ -149,6 +149,6 @@ class l10n_scanner_Core { } else { $str = strtr($str, array("\\'" => "'", "\\\\" => "\\")); } - return addcslashes($str, "\0..\37\\\""); + return $str; } } |
