From 036644b8087a506d899ae85b0802c0e2efd0933c Mon Sep 17 00:00:00 2001 From: mixon Date: Thu, 26 Jan 2012 16:49:58 +0400 Subject: [PATCH 1/2] Some texts were not translatable --- src/classes/XLite/Controller/Admin/Upgrade.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/classes/XLite/Controller/Admin/Upgrade.php b/src/classes/XLite/Controller/Admin/Upgrade.php index 696559315e..2bdcd1b9c9 100644 --- a/src/classes/XLite/Controller/Admin/Upgrade.php +++ b/src/classes/XLite/Controller/Admin/Upgrade.php @@ -83,19 +83,19 @@ protected function run() public function getTitle() { if ($this->isCoreSelection()) { - $result = 'Upgrade core'; + $result = static::t('Upgrade core'); } elseif ($this->isDownload()) { - $result = 'Downloading updates'; + $result = static::t('Downloading updates'); } else { $version = \XLite\Upgrade\Cell::getInstance()->getCoreMajorVersion(); if (\XLite::getInstance()->checkVersion($version, '<')) { - $result = 'Upgrade to version ' . $version; + $result = static::t('Upgrade to version') . ' ' . $version; } else { - $result = 'Updates for your version (' . $version . ')'; + $result = static::t('Updates for your version') . ' (' . $version . ')'; } } @@ -174,7 +174,7 @@ public function getCoreVersionsList() */ protected function getLocation() { - return $this->isUpdate() ? 'Updates available' : 'Upgrade'; + return $this->isUpdate() ? static::t('Updates available') : static::t('Upgrade'); } /** From 7f8b99ea365a6fedf1d3d219bc9d1327a4ad2c17 Mon Sep 17 00:00:00 2001 From: mixon Date: Thu, 26 Jan 2012 19:11:57 +0400 Subject: [PATCH 2/2] Some texts were not translatable --- src/classes/XLite/View/ModulesManager/UploadAddons.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/XLite/View/ModulesManager/UploadAddons.php b/src/classes/XLite/View/ModulesManager/UploadAddons.php index 93b5a34f1d..ce14b662d2 100644 --- a/src/classes/XLite/View/ModulesManager/UploadAddons.php +++ b/src/classes/XLite/View/ModulesManager/UploadAddons.php @@ -87,7 +87,7 @@ public function getJSFiles() */ protected function getHead() { - return 'Upload add-on'; + return static::t('Upload add-on'); } /**