Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/classes/XLite/Controller/Admin/Upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 . ')';
}
}

Expand Down Expand Up @@ -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');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/classes/XLite/View/ModulesManager/UploadAddons.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function getJSFiles()
*/
protected function getHead()
{
return 'Upload add-on';
return static::t('Upload add-on');
}

/**
Expand Down