mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
replace more hardcoded strings in the launcher with translations
This commit is contained in:
parent
f5f60548db
commit
abc9306eab
2 changed files with 8 additions and 4 deletions
|
|
@ -31,3 +31,7 @@ launcher-mirror-no-mirror = No mirror
|
|||
launcher-mirror-china = China
|
||||
launcher-mirror-disabled = Mirror disabled.
|
||||
launcher-mirror-china-enabled = China mirror enabled.
|
||||
launcher-beta-releases-enabled = Beta releases enabled.
|
||||
launcher-beta-releases-disabled = Beta releases disabled.
|
||||
launcher-download-caching-enabled = Download caching enabled.
|
||||
launcher-download-caching-disabled = Download caching disabled and cache cleared.
|
||||
|
|
|
|||
|
|
@ -390,10 +390,10 @@ fn main_menu_loop(state: &State) -> Result<()> {
|
|||
// Toggle beta prerelease file
|
||||
if state.prerelease_marker.exists() {
|
||||
let _ = remove_file(&state.prerelease_marker);
|
||||
println!("Beta releases disabled.");
|
||||
println!("{}", state.tr.launcher_beta_releases_disabled());
|
||||
} else {
|
||||
write_file(&state.prerelease_marker, "")?;
|
||||
println!("Beta releases enabled.");
|
||||
println!("{}", state.tr.launcher_beta_releases_enabled());
|
||||
}
|
||||
println!();
|
||||
continue;
|
||||
|
|
@ -402,14 +402,14 @@ fn main_menu_loop(state: &State) -> Result<()> {
|
|||
// Toggle cache disable file
|
||||
if state.no_cache_marker.exists() {
|
||||
let _ = remove_file(&state.no_cache_marker);
|
||||
println!("Download caching enabled.");
|
||||
println!("{}", state.tr.launcher_download_caching_enabled());
|
||||
} else {
|
||||
write_file(&state.no_cache_marker, "")?;
|
||||
// Delete the cache directory and everything in it
|
||||
if state.uv_cache_dir.exists() {
|
||||
let _ = anki_io::remove_dir_all(&state.uv_cache_dir);
|
||||
}
|
||||
println!("Download caching disabled and cache cleared.");
|
||||
println!("{}", state.tr.launcher_download_caching_disabled());
|
||||
}
|
||||
println!();
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue