Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/controllers/statistics_controller.php
diff options
context:
space:
mode:
authorfligtar@gmail.com <fligtar@gmail.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2008-02-24 09:35:20 (GMT)
committer fligtar@gmail.com <fligtar@gmail.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2008-02-24 09:35:20 (GMT)
commitf313c76566e4258297375bc03daf121741a72854 (patch)
tree3de9a4da8f7cf97032bd2d4087f326f6b1dbeb3e /site/app/controllers/statistics_controller.php
parent9692d0ac2bfa7d4b289018828a133033a3343011 (diff)
stats dashboard l10n part 2: javascript strings
git-svn-id: http://svn.mozilla.org/addons/trunk@10651 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/controllers/statistics_controller.php')
-rw-r--r--site/app/controllers/statistics_controller.php39
1 files changed, 30 insertions, 9 deletions
diff --git a/site/app/controllers/statistics_controller.php b/site/app/controllers/statistics_controller.php
index ad9f70b..b147065 100644
--- a/site/app/controllers/statistics_controller.php
+++ b/site/app/controllers/statistics_controller.php
@@ -214,6 +214,36 @@ class StatisticsController extends AppController
$this->set('stats', $stats);
if (!$rss) {
+ $this->publish('jsLocalization', array(
+ 'statistics_js_dropdowns_removeplot' => _('statistics_js_dropdowns_removeplot'),
+ 'statistics_js_dropdowns_none' => _('statistics_js_dropdowns_none'),
+ 'statistics_js_plotselection_selector_summary' => _('statistics_js_plotselection_selector_summary'),
+ 'statistics_js_plotselection_selector_downloads' => _('statistics_js_plotselection_selector_downloads'),
+ 'statistics_js_plotselection_selector_adu' => _('statistics_js_plotselection_selector_adu'),
+ 'statistics_js_plotselection_selector_version' => _('statistics_js_plotselection_selector_version'),
+ 'statistics_js_plotselection_selector_application' => _('statistics_js_plotselection_selector_application'),
+ 'statistics_js_plotselection_selector_status' => _('statistics_js_plotselection_selector_status'),
+ 'statistics_js_plotselection_selector_os' => _('statistics_js_plotselection_selector_os'),
+ 'statistics_js_plotselection_selector_custom' => _('statistics_js_plotselection_selector_custom'),
+ 'statistics_js_plotselection_foundinrange' => _('statistics_js_plotselection_foundinrange'),
+ 'statistics_js_plotselection_options_count_name_checked' => _('statistics_js_plotselection_options_count_name_checked'),
+ 'statistics_js_plotselection_options_count_name_unchecked' => _('statistics_js_plotselection_options_count_name_unchecked'),
+ 'statistics_js_plotselection_options_count_tooltip' => _('Sstatistics_js_plotselection_options_count_tooltip'),
+ 'statistics_js_plotselection_options_events_firefox_name_checked' => _('statistics_js_plotselection_options_events_firefox_name_checked'),
+ 'statistics_js_plotselection_options_events_firefox_name_unchecked' => _('statistics_js_plotselection_options_events_firefox_name_unchecked'),
+ 'statistics_js_plotselection_options_events_firefox_tooltip' => _('statistics_js_plotselection_options_events_firefox_tooltip'),
+ 'statistics_js_plotselection_options_events_addon_name_checked' => _('statistics_js_plotselection_options_events_addon_name_checked'),
+ 'statistics_js_plotselection_options_events_addon_name_unchecked' => _('statistics_js_plotselection_options_events_addon_name_unchecked'),
+ 'statistics_js_plotselection_options_events_addon_tooltip' => _('statistics_js_plotselection_options_events_addon_tooltip'),
+ 'statistics_js_plotselection_options_addplot_name' => _('statistics_js_plotselection_options_addplot_name'),
+ 'statistics_js_plotselection_options_addplot_tooltip' => _('statistics_js_plotselection_options_addplot_tooltip'),
+ 'statistics_js_plotselection_options_resize_name_checked' => _('statistics_js_plotselection_options_resize_name_checked'),
+ 'statistics_js_plotselection_options_resize_name_unchecked' => _('statistics_js_plotselection_options_resize_name_unchecked'),
+ 'statistics_js_plotselection_options_resize_tooltip' => _('statistics_js_plotselection_options_resize_tooltip'),
+ 'statistics_js_plotselection_options_csv_name' => _('statistics_js_plotselection_options_csv_name'),
+ 'statistics_js_plotselection_options_csv_tooltip' => _('statistics_js_plotselection_options_csv_tooltip')
+ ));
+
$this->render('addon', 'mozilla');
}
else {
@@ -239,9 +269,6 @@ class StatisticsController extends AppController
$csv = $this->Stats->historicalPlot($addon_id, $plot);
$this->set('csv', $csv);
-
- // NO_MICROTIME suppresses the Cake page generation time output
- define('NO_MICROTIME', true);
$this->render('csv', 'ajax');
}
@@ -261,9 +288,6 @@ class StatisticsController extends AppController
$json = $this->Stats->getSummary($addon_id);
$this->set('json', $json);
-
- // NO_MICROTIME suppresses the Cake page generation time output
- define('NO_MICROTIME', true);
$this->render('json', 'ajax');
}
@@ -288,9 +312,6 @@ class StatisticsController extends AppController
}
$this->set('xml', $xml);
-
- // NO_MICROTIME suppresses the Cake page generation time output
- define('NO_MICROTIME', true);
$this->render('xml', 'ajax');
}