mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #8085 from sylvestre/l10n-dirname
l10n: port dirname to translation + add french
This commit is contained in:
commit
9c0eb00d13
3 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
7
src/uu/dirname/locales/fr-FR.ftl
Normal file
7
src/uu/dirname/locales/fr-FR.ftl
Normal file
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue