refactor: add missing i18n for OpenBSD steps (#965)
This commit is contained in:
@@ -610,3 +610,15 @@ _version: 2
|
||||
en: "Windows Update"
|
||||
es: "Actualización de Windows"
|
||||
zh_TW: "Windows 更新"
|
||||
"Would check if OpenBSD is -current":
|
||||
en: "Would check if OpenBSD is -current"
|
||||
es: "Comprobaría si OpenBSD está en -current"
|
||||
zh_TW: "會檢查 OpenBSD 是否為 -current"
|
||||
"Would upgrade the OpenBSD system":
|
||||
en: "Would upgrade the OpenBSD system"
|
||||
es: "Actualizaría el sistema OpenBSD"
|
||||
zh_TW: "會升級 OpenBSD 系統"
|
||||
"Would upgrade OpenBSD packages":
|
||||
en: "Would upgrade OpenBSD packages"
|
||||
es: "Actualizaría los paquetes de OpenBSD"
|
||||
zh_TW: "會升級 OpenBSD 套件"
|
||||
@@ -10,7 +10,7 @@ fn is_openbsd_current(ctx: &ExecutionContext) -> Result<bool> {
|
||||
let motd_content = fs::read_to_string("/etc/motd")?;
|
||||
let is_current = motd_content.contains("-current");
|
||||
if ctx.config().dry_run() {
|
||||
println!("Would check if OpenBSD is -current");
|
||||
println!("{}", t!("Would check if OpenBSD is -current"));
|
||||
Ok(is_current)
|
||||
} else {
|
||||
Ok(is_current)
|
||||
@@ -24,7 +24,7 @@ pub fn upgrade_openbsd(ctx: &ExecutionContext) -> Result<()> {
|
||||
let is_current = is_openbsd_current(ctx)?;
|
||||
|
||||
if ctx.config().dry_run() {
|
||||
println!("Would upgrade the OpenBSD system");
|
||||
println!("{}", t!("Would upgrade the OpenBSD system"));
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ pub fn upgrade_packages(ctx: &ExecutionContext) -> Result<()> {
|
||||
let is_current = is_openbsd_current(ctx)?;
|
||||
|
||||
if ctx.config().dry_run() {
|
||||
println!("Would upgrade OpenBSD packages");
|
||||
println!("{}", t!("Would upgrade OpenBSD packages"));
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user