diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-03-26 02:50:50 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-26 02:50:50 +0000 |
commit | e3aab08f8d4e0a4016c073d1a9c2a760ce0b9a2e (patch) | |
tree | 383ddbcd9f067353b1d55e8885035214ec4ce09e /core/helpers | |
parent | ab787233d65f8b20ac081ae78aa8257b363efaa3 (diff) |
Fix typo, whitespace.
Diffstat (limited to 'core/helpers')
-rw-r--r-- | core/helpers/l10n_client.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/helpers/l10n_client.php b/core/helpers/l10n_client.php index 03a6cda9..af46f8c1 100644 --- a/core/helpers/l10n_client.php +++ b/core/helpers/l10n_client.php @@ -23,7 +23,7 @@ class l10n_client_Core { private static function _server_url() { return "http://gallery.menalto.com/index.php"; } - + static function server_api_key_url() { return self::_server_url() . "?q=translations/userkey/" . self::client_token(); @@ -50,7 +50,7 @@ class l10n_client_Core { $api_key = $api_key == null ? self::api_key() : $api_key; return md5($api_key . $payload . self::client_token()); } - + static function validate_api_key($api_key) { $version = "1.0"; $url = self::_server_url() . "?q=translations/status"; @@ -69,7 +69,7 @@ class l10n_client_Core { static function fetch_updates() { $request->locales = array(); $request->messages = new stdClass(); - + $locales = locale::installed(); foreach ($locales as $locale => $locale_data) { $request->locales[] = $locale; @@ -101,7 +101,7 @@ class l10n_client_Core { throw new Exception("Translations fetch request failed with: " . $response_status); } if (empty($response_data)) { - log::info(t("translations"), t("Translations fetch request resulted in an emptyu response.")); + log::info(t("translations"), t("Translations fetch request resulted in an empty response.")); return; } @@ -163,7 +163,7 @@ class l10n_client_Core { * <key_2>: {...} * } */ - + // TODO: Batch requests (max request size) // TODO: include base_revision in submission / how to handle resubmissions / edit fights? foreach (Database::instance() |