From c1d9fc3c7da6c0ff996535f07e927c75e318bf8e Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 16 Oct 2025 06:13:54 -0400 Subject: [PATCH] od: translate some strings --- src/uu/od/locales/en-US.ftl | 15 +++++++++++++++ src/uu/od/locales/fr-FR.ftl | 15 +++++++++++++++ src/uu/od/src/od.rs | 26 +++++++++++++------------- 3 files changed, 43 insertions(+), 13 deletions(-) diff --git a/src/uu/od/locales/en-US.ftl b/src/uu/od/locales/en-US.ftl index 38bf1c577..208bd3333 100644 --- a/src/uu/od/locales/en-US.ftl +++ b/src/uu/od/locales/en-US.ftl @@ -66,6 +66,7 @@ od-help-address-radix = Select the base in which file offsets are printed. od-help-skip-bytes = Skip bytes input bytes before formatting and writing. od-help-read-bytes = limit dump to BYTES input bytes od-help-endian = byte order to use for multi-byte formats +od-help-strings = output strings of at least BYTES graphic chars. 3 is assumed when BYTES is not specified. od-help-a = named characters, ignoring high-order bit od-help-b = octal bytes od-help-c = ASCII characters or backslash escapes @@ -76,3 +77,17 @@ od-help-output-duplicates = do not use * to mark line suppression od-help-width = output BYTES bytes per output line. 32 is implied when BYTES is not specified. od-help-traditional = compatibility mode with one input, offset and label. +od-help-o = octal 2-byte units +od-help-capital-i = decimal 8-byte units +od-help-capital-l = decimal 8-byte units +od-help-i = decimal 4-byte units +od-help-l = decimal 8-byte units +od-help-x = hexadecimal 2-byte units +od-help-h = hexadecimal 2-byte units +od-help-capital-o = octal 4-byte units +od-help-s = decimal 2-byte units +od-help-capital-x = hexadecimal 4-byte units +od-help-capital-h = hexadecimal 4-byte units +od-help-e = floating point double precision (64-bit) units +od-help-f = floating point double precision (32-bit) units +od-help-capital-f = floating point double precision (64-bit) units diff --git a/src/uu/od/locales/fr-FR.ftl b/src/uu/od/locales/fr-FR.ftl index 712550667..cba433b64 100644 --- a/src/uu/od/locales/fr-FR.ftl +++ b/src/uu/od/locales/fr-FR.ftl @@ -67,6 +67,7 @@ od-help-address-radix = Sélectionner la base dans laquelle les décalages de fi od-help-skip-bytes = Ignorer les octets d'entrée avant le formatage et l'écriture. od-help-read-bytes = limiter le dump à OCTETS octets d'entrée od-help-endian = ordre des octets à utiliser pour les formats multi-octets +od-help-strings = afficher les chaînes d'au moins OCTETS caractères graphiques. 3 est supposé quand OCTETS n'est pas spécifié. od-help-a = caractères nommés, ignorant le bit d'ordre supérieur od-help-b = octets octaux od-help-c = caractères ASCII ou échappements antislash @@ -77,3 +78,17 @@ od-help-output-duplicates = ne pas utiliser * pour marquer la suppression de lig od-help-width = sortir OCTETS octets par ligne de sortie. 32 est impliqué quand OCTETS n'est pas spécifié. od-help-traditional = mode de compatibilité avec une entrée, décalage et étiquette. +od-help-o = unités octales 2-octets +od-help-capital-i = unités décimales 8-octets +od-help-capital-l = unités décimales 8-octets +od-help-i = unités décimales 4-octets +od-help-l = unités décimales 8-octets +od-help-x = unités hexadécimales 2-octets +od-help-h = unités hexadécimales 2-octets +od-help-capital-o = unités octales 4-octets +od-help-s = unités décimales 2-octets +od-help-capital-x = unités hexadécimales 4-octets +od-help-capital-h = unités hexadécimales 4-octets +od-help-e = unités virgule flottante double précision (64-bits) +od-help-f = unités virgule flottante double précision (32-bits) +od-help-capital-f = unités virgule flottante double précision (64-bits) diff --git a/src/uu/od/src/od.rs b/src/uu/od/src/od.rs index 1d4ade4bd..80e6893d1 100644 --- a/src/uu/od/src/od.rs +++ b/src/uu/od/src/od.rs @@ -350,43 +350,43 @@ pub fn uu_app() -> Command { .arg( Arg::new("o") .short('o') - .help("octal 2-byte units") + .help(translate!("od-help-o")) .action(ArgAction::SetTrue), ) .arg( Arg::new("I") .short('I') - .help("decimal 8-byte units") + .help(translate!("od-help-capital-i")) .action(ArgAction::SetTrue), ) .arg( Arg::new("L") .short('L') - .help("decimal 8-byte units") + .help(translate!("od-help-capital-l")) .action(ArgAction::SetTrue), ) .arg( Arg::new("i") .short('i') - .help("decimal 4-byte units") + .help(translate!("od-help-i")) .action(ArgAction::SetTrue), ) .arg( Arg::new("l") .short('l') - .help("decimal 8-byte units") + .help(translate!("od-help-l")) .action(ArgAction::SetTrue), ) .arg( Arg::new("x") .short('x') - .help("hexadecimal 2-byte units") + .help(translate!("od-help-x")) .action(ArgAction::SetTrue), ) .arg( Arg::new("h") .short('h') - .help("hexadecimal 2-byte units") + .help(translate!("od-help-h")) .action(ArgAction::SetTrue), ) .arg( @@ -398,37 +398,37 @@ pub fn uu_app() -> Command { .arg( Arg::new("s") .short('s') - .help("decimal 2-byte units") + .help(translate!("od-help-s")) .action(ArgAction::SetTrue), ) .arg( Arg::new("X") .short('X') - .help("hexadecimal 4-byte units") + .help(translate!("od-help-capital-x")) .action(ArgAction::SetTrue), ) .arg( Arg::new("H") .short('H') - .help("hexadecimal 4-byte units") + .help(translate!("od-help-capital-h")) .action(ArgAction::SetTrue), ) .arg( Arg::new("e") .short('e') - .help("floating point double precision (64-bit) units") + .help(translate!("od-help-e")) .action(ArgAction::SetTrue), ) .arg( Arg::new("f") .short('f') - .help("floating point double precision (32-bit) units") + .help(translate!("od-help-f")) .action(ArgAction::SetTrue), ) .arg( Arg::new("F") .short('F') - .help("floating point double precision (64-bit) units") + .help(translate!("od-help-capital-f")) .action(ArgAction::SetTrue), ) .arg(