From 6acfbf229da03df31d0063ba043cc632ca090172 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 5 Aug 2025 13:12:38 +0200 Subject: [PATCH] mv: move a string in fluent --- src/uu/mv/locales/en-US.ftl | 1 + src/uu/mv/locales/fr-FR.ftl | 1 + src/uu/mv/src/mv.rs | 4 +--- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uu/mv/locales/en-US.ftl b/src/uu/mv/locales/en-US.ftl index 9f3f5fd08fc..fda4ea2246e 100644 --- a/src/uu/mv/locales/en-US.ftl +++ b/src/uu/mv/locales/en-US.ftl @@ -16,6 +16,7 @@ mv-after-help = When specifying more than one of -i, -f, -n, only the final one - older This is the default operation when --update is specified, and results in files being replaced if they’re older than the corresponding source file. # Error messages +mv-error-insufficient-arguments = The argument '<{$arg_files}>...' requires at least 2 values, but only 1 was provided mv-error-no-such-file = cannot stat {$path}: No such file or directory mv-error-cannot-stat-not-directory = cannot stat {$path}: Not a directory mv-error-same-file = {$source} and {$target} are the same file diff --git a/src/uu/mv/locales/fr-FR.ftl b/src/uu/mv/locales/fr-FR.ftl index 25d82631418..2288e95f51a 100644 --- a/src/uu/mv/locales/fr-FR.ftl +++ b/src/uu/mv/locales/fr-FR.ftl @@ -16,6 +16,7 @@ mv-after-help = Lors de la spécification de plus d'une option parmi -i, -f, -n, - older C'est l'opération par défaut quand --update est spécifié, et résulte en des fichiers étant remplacés s'ils sont plus anciens que le fichier source correspondant. # Messages d'erreur +mv-error-insufficient-arguments = L'argument '<{$arg_files}>...' nécessite au moins 2 valeurs, mais seulement 1 a été fournie mv-error-no-such-file = impossible de lire {$path} : Aucun fichier ou répertoire de ce nom mv-error-cannot-stat-not-directory = impossible de lire {$path} : N'est pas un répertoire mv-error-same-file = {$source} et {$target} sont le même fichier diff --git a/src/uu/mv/src/mv.rs b/src/uu/mv/src/mv.rs index bcc8de2c33f..948e486c9f8 100644 --- a/src/uu/mv/src/mv.rs +++ b/src/uu/mv/src/mv.rs @@ -163,9 +163,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { if files.len() == 1 && !matches.contains_id(OPT_TARGET_DIRECTORY) { app.error( ErrorKind::TooFewValues, - format!( - "The argument '<{ARG_FILES}>...' requires at least 2 values, but only 1 was provided" - ), + translate!("mv-error-insufficient-arguments", "arg_files" => ARG_FILES), ) .exit(); }