Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some texts were not translatable (continue) #22

Open
wants to merge 2 commits into
base: 1.0-master
Choose a base branch
from
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