mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Merge pull request #8085 from sylvestre/l10n-dirname
l10n: port dirname to translation + add french
This commit is contained in:
@@ -2,3 +2,5 @@ dirname-about = Strip last component from file name
|
||||
dirname-usage = dirname [OPTION] NAME...
|
||||
dirname-after-help = Output each NAME with its last non-slash component and trailing slashes
|
||||
removed; if NAME contains no /'s, output '.' (meaning the current directory).
|
||||
dirname-missing-operand = missing operand
|
||||
dirname-zero-help = separate output with NUL rather than newline
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
dirname-about = Supprimer le dernier composant du nom de fichier
|
||||
dirname-usage = dirname [OPTION] NOM...
|
||||
dirname-after-help = Afficher chaque NOM avec son dernier composant non-slash et les slashes finaux
|
||||
supprimés ; si NOM ne contient pas de '/', afficher '.' (signifiant le répertoire courant).
|
||||
dirname-missing-operand = opérande manquant
|
||||
dirname-zero-help = séparer la sortie avec NUL plutôt qu'avec un saut de ligne
|
||||
|
||||
@@ -32,7 +32,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||
.collect();
|
||||
|
||||
if dirnames.is_empty() {
|
||||
return Err(UUsageError::new(1, "missing operand"));
|
||||
return Err(UUsageError::new(1, get_message("dirname-missing-operand")));
|
||||
} else {
|
||||
for path in &dirnames {
|
||||
let p = Path::new(path);
|
||||
@@ -70,7 +70,7 @@ pub fn uu_app() -> Command {
|
||||
Arg::new(options::ZERO)
|
||||
.long(options::ZERO)
|
||||
.short('z')
|
||||
.help("separate output with NUL rather than newline")
|
||||
.help(get_message("dirname-zero-help"))
|
||||
.action(ArgAction::SetTrue),
|
||||
)
|
||||
.arg(
|
||||
|
||||
Reference in New Issue
Block a user