diff options
author | fligtar@gmail.com <fligtar@gmail.com@4eb1ac78-321c-0410-a911-ec516a8615a5> | 2008-02-24 07:23:02 (GMT) |
---|---|---|
committer | fligtar@gmail.com <fligtar@gmail.com@4eb1ac78-321c-0410-a911-ec516a8615a5> | 2008-02-24 07:23:02 (GMT) |
commit | 9692d0ac2bfa7d4b289018828a133033a3343011 (patch) | |
tree | 70acdc3377f57d570f516dbbc8719704eeedb5b3 /site/app/controllers/statistics_controller.php | |
parent | 542254103a188204713042c865921a4a8d95dac0 (diff) |
first run through of stats dashboard localization
git-svn-id: http://svn.mozilla.org/addons/trunk@10647 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/controllers/statistics_controller.php')
-rw-r--r-- | site/app/controllers/statistics_controller.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/site/app/controllers/statistics_controller.php b/site/app/controllers/statistics_controller.php index 64970e2..ad9f70b 100644 --- a/site/app/controllers/statistics_controller.php +++ b/site/app/controllers/statistics_controller.php @@ -57,7 +57,7 @@ class StatisticsController extends AppController $this->Amo->clean($this->data); $this->layout = 'mozilla'; - $this->pageTitle = 'Statistics Dashboard'.' :: '.sprintf(_('addons_home_pagetitle'), APP_PRETTYNAME); + $this->pageTitle = _('statistics_pagetitle').' :: '.sprintf(_('addons_home_pagetitle'), APP_PRETTYNAME); $this->cssAdd = array('stats/stats'); $this->publish('cssAdd', $this->cssAdd); @@ -68,10 +68,10 @@ class StatisticsController extends AppController $prescriptJS = "var statsURL = '".$this->url('/statistics/')."';"; $this->set('prescriptJS', $prescriptJS); - $this->breadcrumbs = array('Statistics Dashboard' => '/statistics/index'); + $this->breadcrumbs = array(_('statistics_pagetitle') => '/statistics/index'); $this->publish('breadcrumbs', $this->breadcrumbs); - $this->publish('subpagetitle', 'Statistics Dashboard'); + $this->publish('subpagetitle', _('statistics_pagetitle')); } /** @@ -172,7 +172,7 @@ class StatisticsController extends AppController $this->publish('addon', $addon); $this->publish('addon_name', $addon['Translation']['name']['string']); - $this->breadcrumbs["{$addon['Translation']['name']['string']} Statistics"] = '/statistics/addon/'.$addon_id; + $this->breadcrumbs[sprintf(_('statistics_title_addon_stats'), $addon['Translation']['name']['string'])] = '/statistics/addon/'.$addon_id; $this->publish('breadcrumbs', $this->breadcrumbs); $prescriptJS = "var Simile_urlPrefix = '".SITE_URL.$this->base.'/js/simile'."';"; @@ -217,8 +217,8 @@ class StatisticsController extends AppController $this->render('addon', 'mozilla'); } else { - $this->publish('rss_title', "{$addon['Translation']['name']['string']} Statistics"); - $this->publish('rss_description', "Daily summary of statistics for {$addon['Translation']['name']['string']}"); + $this->publish('rss_title', sprintf(_('statistics_title_addon_stats'), $addon['Translation']['name']['string'])); + $this->publish('rss_description', sprintf(_('statistics_rss_description'), $addon['Translation']['name']['string'])); $this->render('rss/summary', 'rss'); } } |