mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
fix strings in updater ext
This commit is contained in:
parent
6fec3aca77
commit
3633a31628
2 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@
|
|||
"updater.last_version": "Актуальная версия: %s",
|
||||
"updater.current_version": "Текущая версия",
|
||||
"updater.last_checked": "Последняя проверка",
|
||||
"updater.updated_version_available": "Доступно обновление",
|
||||
"updater.new_version_available": "Доступно обновление",
|
||||
"updater.update": "Обновить",
|
||||
"updater.updated": "Обновление завершено",
|
||||
"updater.download_error": "Ошибка при загрузке",
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ class UpdaterExtension extends MTTExtension implements MTTExtensionSettingsInter
|
|||
$warning = '';
|
||||
if ($version != '') {
|
||||
if ( version_compare($version, mytinytodo\Version::VERSION) > 0 ) {
|
||||
$updateStr = "<br> {$e('updater.updated_version_available')}: ". htmlspecialchars($version);
|
||||
$updateStr = "<br> {$e('updater.new_version_available')}: ". htmlspecialchars($version);
|
||||
# allow update to v1.7.x and 1.8.x only
|
||||
if ( in_array(substr($version, 0, 4), ["1.7.", "1.8."]) ) {
|
||||
$updateStr .= "<br><br>\n <a href=\"#\" data-ext-settings-action=\"post:update\" data-ext=\"$ext\">{$e('updater.update')}</a> ";
|
||||
|
|
|
|||
Loading…
Reference in a new issue