diff options
author | Andy Staudacher <andy.st@gmail.com> | 2009-02-23 06:33:10 +0000 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2009-02-23 06:33:10 +0000 |
commit | 8bba897a46e773c0155419abc7b0d9a1fb5fd7aa (patch) | |
tree | 80245386374d25d124e498fd38b09525870421ce | |
parent | ad7b066f483533b593bd991f7ac33ed20f4ccb7a (diff) |
Changing from binary(16) to char(32) as translation message key.
Although less efficient as a storage / transmission / comparison format, it's friendlier on the eyes and universally supported.
-rw-r--r-- | core/libraries/I18n.php | 2 | ||||
-rw-r--r-- | installer/install.sql | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/libraries/I18n.php b/core/libraries/I18n.php index edf6a6ac..546919b9 100644 --- a/core/libraries/I18n.php +++ b/core/libraries/I18n.php @@ -169,7 +169,7 @@ class I18n_Core { public static function get_message_key($message) { $as_string = is_array($message) ? implode('|', $message) : $message; - return md5($as_string, true); + return md5($as_string); } private function interpolate($locale, $string, $values) { diff --git a/installer/install.sql b/installer/install.sql index 153057f1..349f0354 100644 --- a/installer/install.sql +++ b/installer/install.sql @@ -99,7 +99,7 @@ SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `incoming_translations` ( `id` int(9) NOT NULL auto_increment, - `key` binary(16) NOT NULL, + `key` char(32) NOT NULL, `locale` char(10) NOT NULL, `message` text NOT NULL, `translation` text, @@ -201,7 +201,7 @@ SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `outgoing_translations` ( `id` int(9) NOT NULL auto_increment, - `key` binary(16) NOT NULL, + `key` char(32) NOT NULL, `locale` char(10) NOT NULL, `message` text NOT NULL, `translation` text, |