diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-03-26 04:36:00 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-26 04:36:00 +0000 |
commit | 78943402b27bc5afb0736089b25a020cd33024b6 (patch) | |
tree | d9e5311d7b2a301e76374e585df5acf3872ba380 /core/controllers | |
parent | 75d98701ae64100a0e444a0caaa14efbc1b2028d (diff) |
Convert the L10n scanner from a library to a helper.
In order to make the class static, I had to remove the index cache.
I'll restore that and cache the index keys in the task context in a
subsequent change. For now, I've put in a @todo to add the caching
back in.
Diffstat (limited to 'core/controllers')
-rw-r--r-- | core/controllers/admin_languages.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/controllers/admin_languages.php b/core/controllers/admin_languages.php index 1439f9c8..72a01bc3 100644 --- a/core/controllers/admin_languages.php +++ b/core/controllers/admin_languages.php @@ -42,10 +42,10 @@ class Admin_Languages_Controller extends Admin_Controller { } public function fetch_updates() { - // TODO: Convert this to AJAX / progress bar. + // @todo Convert this to AJAX / progress bar. $form = $this->_translation_updates_form(); if ($form->validate()) { - L10n_Scanner::instance()->update_index(); + l10n_scanner::update_index(); l10n_client::fetch_updates(); message::success(t("Translations installed/updated")); } @@ -95,7 +95,7 @@ class Admin_Languages_Controller extends Admin_Controller { $this->index($form); } } - + private function _languages_form() { $all_locales = locale::available(); $installed_locales = locale::installed(); |