Skip to content

Commit

Permalink
fix strings in updater ext
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpozdeev committed Sep 14, 2023
1 parent 6fec3ac commit d5dc74b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ext/updater/lang/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "Ошибка при загрузке",
Expand Down
2 changes: 1 addition & 1 deletion src/ext/updater/loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function settingsPage(): string
$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> ";
Expand Down

0 comments on commit d5dc74b

Please sign in to comment.