From b10002d1abbd129d7228f44eab5839e2b6adfaa6 Mon Sep 17 00:00:00 2001 From: Socialpranker <273312799+Socialpranker@users.noreply.github.com> Date: Sat, 26 Sep 2026 10:44:48 +0200 Subject: [PATCH] tr: word the -ds missing-operand hint the way GNU does --- src/uu/tr/locales/en-US.ftl | 2 +- src/uu/tr/locales/fr-FR.ftl | 2 +- tests/by-util/test_tr.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uu/tr/locales/en-US.ftl b/src/uu/tr/locales/en-US.ftl index 5203bc22623..c8a6fa6601f 100644 --- a/src/uu/tr/locales/en-US.ftl +++ b/src/uu/tr/locales/en-US.ftl @@ -13,7 +13,7 @@ tr-error-missing-operand = missing operand tr-error-missing-operand-translating = missing operand after { $set } Two strings must be given when translating. tr-error-missing-operand-deleting-squeezing = missing operand after { $set } - Two strings must be given when deleting and squeezing. + Two strings must be given when both deleting and squeezing repeats. tr-error-extra-operand-deleting-without-squeezing = extra operand { $operand } Only one string may be given when deleting without squeezing repeats. tr-error-extra-operand-simple = extra operand { $operand } diff --git a/src/uu/tr/locales/fr-FR.ftl b/src/uu/tr/locales/fr-FR.ftl index 31deed0ede3..b563485ba17 100644 --- a/src/uu/tr/locales/fr-FR.ftl +++ b/src/uu/tr/locales/fr-FR.ftl @@ -13,7 +13,7 @@ tr-error-missing-operand = opérande manquant tr-error-missing-operand-translating = opérande manquant après { $set } Deux chaînes doivent être données lors de la traduction. tr-error-missing-operand-deleting-squeezing = opérande manquant après { $set } - Deux chaînes doivent être données lors de la suppression et compression. + Deux chaînes doivent être données lors de la suppression et de la compression des répétitions. tr-error-extra-operand-deleting-without-squeezing = opérande supplémentaire { $operand } Une seule chaîne peut être donnée lors de la suppression sans compression des répétitions. tr-error-extra-operand-simple = opérande supplémentaire { $operand } diff --git a/tests/by-util/test_tr.rs b/tests/by-util/test_tr.rs index 1690d1be836..b1842b6a94b 100644 --- a/tests/by-util/test_tr.rs +++ b/tests/by-util/test_tr.rs @@ -307,7 +307,7 @@ fn test_delete_and_squeeze_one_set() { .args(&["-ds", "a-z"]) .fails() .stderr_contains("missing operand after 'a-z'") - .stderr_contains("Two strings must be given when deleting and squeezing."); + .stderr_contains("Two strings must be given when both deleting and squeezing repeats."); } #[test]