summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-06-16 20:25:01 -0700
committerAndy Staudacher <andy.st@gmail.com>2009-06-16 20:25:01 -0700
commitbe226b9baa8ce21431e35c32277fda2e8c94a216 (patch)
tree19279d400b098df85df3fcd1daf6e53afcc9d5f3 /modules/gallery/controllers
parent7ad5e9ee2c6c912932e8c38c992c9b1194c9107a (diff)
Add option to list *all* l10n messages (that have been indexed) in l10n UI
TODO: The "Show All" link is almost invisible (link color ~= background)
Diffstat (limited to 'modules/gallery/controllers')
-rw-r--r--modules/gallery/controllers/l10n_client.php14
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) {