diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-08 09:08:15 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-08 09:08:15 -0700 |
commit | ac797e609c8c319ca77f9b746a7cecad8dd69004 (patch) | |
tree | fe3d53ab4b63c1bc3b03a6b12866dbdca6b3bf27 /modules/gallery/helpers/l10n_client.php | |
parent | 43c63362575264f473e8bba3345524fa7e58afe1 (diff) |
Add task logging to the Update translations
Diffstat (limited to 'modules/gallery/helpers/l10n_client.php')
-rw-r--r-- | modules/gallery/helpers/l10n_client.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/gallery/helpers/l10n_client.php b/modules/gallery/helpers/l10n_client.php index e153532c..5b14abec 100644 --- a/modules/gallery/helpers/l10n_client.php +++ b/modules/gallery/helpers/l10n_client.php @@ -101,8 +101,7 @@ class l10n_client_Core { throw new Exception("@todo TRANSLATIONS_FETCH_REQUEST_FAILED " . $response_status); } if (empty($response_data)) { - log::info("translations", "Translations fetch request resulted in an empty response"); - return; + return array(t("Translations fetch request resulted in an empty response")); } $response = json_decode($response_data); @@ -112,9 +111,8 @@ class l10n_client_Core { // {key:<key_2>, ...} // ] $count = count($response); - log::info("translations", - t2("Installed 1 new / updated translation message", - "Installed %count new / updated translation messages", $count)); + $message[] = t2("Installed 1 new / updated translation message", + "Installed %count new / updated translation messages", $count); foreach ($response as $message_data) { // @todo Better input validation @@ -152,6 +150,7 @@ class l10n_client_Core { $entry->translation = $translation; $entry->save(); } + return $message; } static function submit_translations() { |