From a2f57e4769115291bd78b33c1252930bc0ce6e9a Mon Sep 17 00:00:00 2001 From: Alexandre Franke Date: Wed, 16 Apr 2025 07:46:26 +0200 Subject: [PATCH] fix: correct GNOME spelling (#1124) Before this change, the spelling was inconsistent. Now it is consistent and follows the upstream spelling. GNOME is spelled all caps, because it is a trademark. (As an exception, it is spelled all lowercase in technical strings, such as identifiers and commands) --- locales/app.yml | 42 +++++++++++++++++++++--------------------- src/steps/os/unix.rs | 8 ++++---- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/locales/app.yml b/locales/app.yml index e86ae2cd..402d683c 100644 --- a/locales/app.yml +++ b/locales/app.yml @@ -654,29 +654,29 @@ _version: 2 zh_CN: "无法使用 `fish_update_completions`" zh_TW: "無法使用 `fish_update_completions`" de: "`fish_update_completions` ist nicht verfügbar" -"Desktop doest not appear to be gnome": - en: "Desktop doest not appear to be gnome" - lt: "Darbalaukis, matyt, nėra Gnome" - es: "El escritorio no parece ser Gnome" - fr: "Le bureau ne semble pas être Gnome" - zh_CN: "桌面环境不是 Gnome" - zh_TW: "桌面環境不是 Gnome" +"Desktop does not appear to be GNOME": + en: "Desktop does not appear to be GNOME" + lt: "Darbalaukis, matyt, nėra GNOME" + es: "El escritorio no parece ser GNOME" + fr: "Le bureau ne semble pas être GNOME" + zh_CN: "桌面环境不是 GNOME" + zh_TW: "桌面環境不是 GNOME" de: "Desktop scheint nicht GNOME zu sein" -"Gnome shell extensions are unregistered in DBus": - en: "Gnome shell extensions are unregistered in DBus" - lt: "Gnome Shell priedai nėra užregistruoti DBus'e" - es: "Las extensiones de Gnome Shell no están registradas en DBus" - fr: "Les extensions de Gnome Shell ne sont pas enregistrées dans DBus" - zh_CN: "Gnome Shell 扩展在 DBus中未被注册" - zh_TW: "Gnome Shell 擴充功能在 DBus 中未被註冊" +"GNOME shell extensions are unregistered in DBus": + en: "GNOME shell extensions are unregistered in DBus" + lt: "GNOME Shell priedai nėra užregistruoti DBus'e" + es: "Las extensiones de GNOME Shell no están registradas en DBus" + fr: "Les extensions de GNOME Shell ne sont pas enregistrées dans DBus" + zh_CN: "GNOME Shell 扩展在 DBus中未被注册" + zh_TW: "GNOME Shell 擴充功能在 DBus 中未被註冊" de: "GNOME-Shell-Erweiterungen sind im DBus nicht registriert" -"Gnome Shell extensions": - en: "Gnome Shell extensions" - lt: "Gnome Shell priedai" - es: "Extensiones de Gnome Shell" - fr: "Extensions de Gnome Shell" - zh_CN: "Gnome Shell 扩展" - zh_TW: "Gnome Shell 擴充功能" +"GNOME Shell extensions": + en: "GNOME Shell extensions" + lt: "GNOME Shell priedai" + es: "Extensiones de GNOME Shell" + fr: "Extensions de GNOME Shell" + zh_CN: "GNOME Shell 扩展" + zh_TW: "GNOME Shell 擴充功能" de: "GNOME-Shell-Erweiterungen" "Not a custom brew for macOS": en: "Not a custom brew for macOS" diff --git a/src/steps/os/unix.rs b/src/steps/os/unix.rs index 0e20ee39..daa82023 100644 --- a/src/steps/os/unix.rs +++ b/src/steps/os/unix.rs @@ -238,7 +238,7 @@ pub fn upgrade_gnome_extensions(ctx: &ExecutionContext) -> Result<()> { let gdbus = require("gdbus")?; require_option( var("XDG_CURRENT_DESKTOP").ok().filter(|p| p.contains("GNOME")), - t!("Desktop doest not appear to be gnome").to_string(), + t!("Desktop does not appear to be GNOME").to_string(), )?; let output = Command::new("gdbus") .args([ @@ -253,12 +253,12 @@ pub fn upgrade_gnome_extensions(ctx: &ExecutionContext) -> Result<()> { ]) .output_checked_utf8()?; - debug!("Checking for gnome extensions: {}", output); + debug!("Checking for GNOME extensions: {}", output); if !output.stdout.contains("org.gnome.Shell.Extensions") { - return Err(SkipStep(t!("Gnome shell extensions are unregistered in DBus").to_string()).into()); + return Err(SkipStep(t!("GNOME shell extensions are unregistered in DBus").to_string()).into()); } - print_separator(t!("Gnome Shell extensions")); + print_separator(t!("GNOME Shell extensions")); ctx.run_type() .execute(gdbus)