diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-06-16 23:51:39 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-16 23:51:39 -0700 |
| commit | 2531f679902e5e4bc5237017debb468c722d6b15 (patch) | |
| tree | b7ee122cbb75babc4e1d7d6ebaba2f38d98b7c65 /modules/gallery/controllers/l10n_client.php | |
| parent | 5eeb6296a12127cda3c43e749c2bd854a251f94a (diff) | |
| parent | 1dccc0286f3d983352e21f8148fdf4d9e9bc205d (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/controllers/l10n_client.php')
| -rw-r--r-- | modules/gallery/controllers/l10n_client.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/modules/gallery/controllers/l10n_client.php b/modules/gallery/controllers/l10n_client.php index aa93a758..831c79c1 100644 --- a/modules/gallery/controllers/l10n_client.php +++ b/modules/gallery/controllers/l10n_client.php @@ -106,7 +106,19 @@ class L10n_Client_Controller extends Controller { } public static function l10n_form() { - $calls = I18n::instance()->call_log(); + if (Input::instance()->get("show_all_l10n_messages")) { + $calls = array(); + foreach (Database::instance() + ->select("key", "message") + ->from("incoming_translations") + ->where(array("locale" => 'root')) + ->get() + ->as_array() as $row) { + $calls[$row->key] = array(unserialize($row->message), array()); + } + } else { + $calls = I18n::instance()->call_log(); + } $locale = I18n::instance()->locale(); if ($calls) { |
