fix strings in updater ext

This commit is contained in:
maxpozdeev 2023-09-14 12:55:59 +03:00
parent 6fec3aca77
commit 3633a31628
2 changed files with 2 additions and 2 deletions

View file

@ -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": "Ошибка при загрузке",

View file

@ -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> ";