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'); } /** 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'); } /**