diff options
| author | mamouneyya <mamoun.diraneyya@gmail.com> | 2010-09-07 08:41:25 +0300 |
|---|---|---|
| committer | mamouneyya <mamoun.diraneyya@gmail.com> | 2010-09-07 08:41:25 +0300 |
| commit | ba950bec0c84a1467aa2545ca815d5af7b0b002b (patch) | |
| tree | 307cdacf0ece60ae9b2db94ad43fcf00d769dcfc /modules/gallery/libraries/Gallery_I18n.php | |
| parent | 9572c664d2bfff0877d4f2062eb0ef6665a109cf (diff) | |
| parent | 7c80bc0c3db1ca20ce424a36a05f1337de9e1e31 (diff) | |
Merge remote branch 'gallery3/master'
Diffstat (limited to 'modules/gallery/libraries/Gallery_I18n.php')
| -rw-r--r-- | modules/gallery/libraries/Gallery_I18n.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gallery/libraries/Gallery_I18n.php b/modules/gallery/libraries/Gallery_I18n.php index f8068eec..6cb36f07 100644 --- a/modules/gallery/libraries/Gallery_I18n.php +++ b/modules/gallery/libraries/Gallery_I18n.php @@ -44,7 +44,7 @@ function t($message, $options=array()) { */ function t2($singular, $plural, $count, $options=array()) { return Gallery_I18n::instance()->translate(array("one" => $singular, "other" => $plural), - array_merge($options, array("count" => $count))); + array_merge($options, array("count" => $count))); } class Gallery_I18n_Core { @@ -175,7 +175,7 @@ class Gallery_I18n_Core { ->execute() as $row) { $translations[$row->key] = unserialize($row->translation); } - + // Override incoming with outgoing... foreach (db::build() ->select("key", "translation") @@ -184,7 +184,7 @@ class Gallery_I18n_Core { ->execute() as $row) { $translations[$row->key] = unserialize($row->translation); } - + $cache->set($cache_key, $translations, array("translation"), 0); } return $translations; |
