summaryrefslogtreecommitdiff
path: root/core/libraries
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-02-12 07:11:24 +0000
committerAndy Staudacher <andy.st@gmail.com>2009-02-12 07:11:24 +0000
commit50b783e3a5af17485443f55e51aa57c9c67be7e2 (patch)
treebb71e36f73da465f92188bdc0831c262d3e1e653 /core/libraries
parent9bbe8053c73c875dca7c838e708a8829a80dacf6 (diff)
Change i18n message key to include the plural form (to ensure that it's truly unique).
Diffstat (limited to 'core/libraries')
-rw-r--r--core/libraries/I18n.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/libraries/I18n.php b/core/libraries/I18n.php
index a2d412f8..edf6a6ac 100644
--- a/core/libraries/I18n.php
+++ b/core/libraries/I18n.php
@@ -168,9 +168,8 @@ class I18n_Core {
}
public static function get_message_key($message) {
- // If message is an array (plural forms), use the first form as message id.
- $key = is_array($message) ? array_shift($message) : $message;
- return md5($key, true);
+ $as_string = is_array($message) ? implode('|', $message) : $message;
+ return md5($as_string, true);
}
private function interpolate($locale, $string, $values) {