Fix launcher strings (#4375)

* Fix launcher strings

* Add prompt to press enter for installation

* Prompt should appear after ensuring that the OS is supported
This commit is contained in:
user1823 2025-10-02 20:20:44 +05:30 committed by GitHub
parent 969c2b43b5
commit 1ba4512011
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,6 @@
launcher-title = Anki Launcher launcher-title = Anki Launcher
launcher-press-enter-to-start = Press the Enter/Return key on your keyboard to install or update Anki. launcher-press-enter-to-install = Press the Enter/Return key on your keyboard to install or update Anki.
launcher-press-enter-to-start = Press enter to start Anki.
launcher-anki-will-start-shortly = Anki will start shortly. launcher-anki-will-start-shortly = Anki will start shortly.
launcher-you-can-close-this-window = You can close this window. launcher-you-can-close-this-window = You can close this window.
launcher-updating-anki = Updating Anki... launcher-updating-anki = Updating Anki...
@ -13,7 +14,7 @@ launcher-on = on
launcher-off = off launcher-off = off
launcher-cache-downloads = Cache downloads: { $state } launcher-cache-downloads = Cache downloads: { $state }
launcher-download-mirror = Download mirror: { $state } launcher-download-mirror = Download mirror: { $state }
launcher-uninstall = Uninstall launcher-uninstall = Uninstall Anki
launcher-invalid-input = Invalid input. Please try again. launcher-invalid-input = Invalid input. Please try again.
launcher-latest-releases = Latest releases: { $releases } launcher-latest-releases = Latest releases: { $releases }
launcher-enter-the-version-you-want = Enter the version you want to install: launcher-enter-the-version-you-want = Enter the version you want to install:

View file

@ -173,6 +173,8 @@ fn run() -> Result<()> {
ensure_os_supported()?; ensure_os_supported()?;
println!("{}\n", state.tr.launcher_press_enter_to_install());
check_versions(&mut state); check_versions(&mut state);
main_menu_loop(&state)?; main_menu_loop(&state)?;