summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/l10n_client.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-07-23 23:00:57 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-07-23 23:00:57 -0700
commit9534a1c82a8ebc5cc56ba4cc256ce33570701a16 (patch)
tree1cc106049ce393f51a52c0fb45c33769353841a3 /modules/gallery/helpers/l10n_client.php
parentf699d2b38593311089d1636bf41bf91c1bd467f8 (diff)
parent108fff735cd0882f4b1ced4c2352fcd44247467e (diff)
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/helpers/l10n_client.php')
-rw-r--r--modules/gallery/helpers/l10n_client.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gallery/helpers/l10n_client.php b/modules/gallery/helpers/l10n_client.php
index 52c13c78..43cc2036 100644
--- a/modules/gallery/helpers/l10n_client.php
+++ b/modules/gallery/helpers/l10n_client.php
@@ -194,12 +194,15 @@ class l10n_client_Core {
// @todo Batch requests (max request size)
// @todo include base_revision in submission / how to handle resubmissions / edit fights?
+ $request = new stdClass();
foreach (db::build()
->select("key", "message", "locale", "base_revision", "translation")
->from("outgoing_translations")
->execute() as $row) {
$key = $row->key;
if (!isset($request->{$key})) {
+ $request->{$key} = new stdClass();
+ $request->{$key}->translations = new stdClass();
$request->{$key}->message = json_encode(unserialize($row->message));
}
$request->{$key}->translations->{$row->locale} = json_encode(unserialize($row->translation));