mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge pull request #8146 from sylvestre/l10n-realpath
l10n: port realpath for translation + add french
This commit is contained in:
commit
b2968a9025
3 changed files with 33 additions and 15 deletions
|
@ -1,2 +1,13 @@
|
||||||
realpath-about = Print the resolved path
|
realpath-about = Print the resolved path
|
||||||
realpath-usage = realpath [OPTION]... FILE...
|
realpath-usage = realpath [OPTION]... FILE...
|
||||||
|
|
||||||
|
# Help messages
|
||||||
|
realpath-help-quiet = Do not print warnings for invalid paths
|
||||||
|
realpath-help-strip = Only strip '.' and '..' components, but don't resolve symbolic links
|
||||||
|
realpath-help-zero = Separate output filenames with \0 rather than newline
|
||||||
|
realpath-help-logical = resolve '..' components before symlinks
|
||||||
|
realpath-help-physical = resolve symlinks as encountered (default)
|
||||||
|
realpath-help-canonicalize-existing = canonicalize by following every symlink in every component of the given name recursively, all components must exist
|
||||||
|
realpath-help-canonicalize-missing = canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence
|
||||||
|
realpath-help-relative-to = print the resolved path relative to DIR
|
||||||
|
realpath-help-relative-base = print absolute paths unless paths below DIR
|
||||||
|
|
13
src/uu/realpath/locales/fr-FR.ftl
Normal file
13
src/uu/realpath/locales/fr-FR.ftl
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
realpath-about = Afficher le chemin résolu
|
||||||
|
realpath-usage = realpath [OPTION]... FICHIER...
|
||||||
|
|
||||||
|
# Messages d'aide
|
||||||
|
realpath-help-quiet = Ne pas afficher d'avertissements pour les chemins invalides
|
||||||
|
realpath-help-strip = Supprimer uniquement les composants '.' et '..', mais ne pas résoudre les liens symboliques
|
||||||
|
realpath-help-zero = Séparer les noms de fichiers de sortie avec \0 plutôt qu'avec un saut de ligne
|
||||||
|
realpath-help-logical = résoudre les composants '..' avant les liens symboliques
|
||||||
|
realpath-help-physical = résoudre les liens symboliques rencontrés (par défaut)
|
||||||
|
realpath-help-canonicalize-existing = canonicaliser en suivant récursivement chaque lien symbolique dans chaque composant du nom donné, tous les composants doivent exister
|
||||||
|
realpath-help-canonicalize-missing = canonicaliser en suivant récursivement chaque lien symbolique dans chaque composant du nom donné, sans exigences sur l'existence des composants
|
||||||
|
realpath-help-relative-to = afficher le chemin résolu relativement à RÉP
|
||||||
|
realpath-help-relative-base = afficher les chemins absolus sauf pour les chemins sous RÉP
|
|
@ -93,7 +93,7 @@ pub fn uu_app() -> Command {
|
||||||
Arg::new(OPT_QUIET)
|
Arg::new(OPT_QUIET)
|
||||||
.short('q')
|
.short('q')
|
||||||
.long(OPT_QUIET)
|
.long(OPT_QUIET)
|
||||||
.help("Do not print warnings for invalid paths")
|
.help(get_message("realpath-help-quiet"))
|
||||||
.action(ArgAction::SetTrue),
|
.action(ArgAction::SetTrue),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
|
@ -101,21 +101,21 @@ pub fn uu_app() -> Command {
|
||||||
.short('s')
|
.short('s')
|
||||||
.long(OPT_STRIP)
|
.long(OPT_STRIP)
|
||||||
.visible_alias("no-symlinks")
|
.visible_alias("no-symlinks")
|
||||||
.help("Only strip '.' and '..' components, but don't resolve symbolic links")
|
.help(get_message("realpath-help-strip"))
|
||||||
.action(ArgAction::SetTrue),
|
.action(ArgAction::SetTrue),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(OPT_ZERO)
|
Arg::new(OPT_ZERO)
|
||||||
.short('z')
|
.short('z')
|
||||||
.long(OPT_ZERO)
|
.long(OPT_ZERO)
|
||||||
.help("Separate output filenames with \\0 rather than newline")
|
.help(get_message("realpath-help-zero"))
|
||||||
.action(ArgAction::SetTrue),
|
.action(ArgAction::SetTrue),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(OPT_LOGICAL)
|
Arg::new(OPT_LOGICAL)
|
||||||
.short('L')
|
.short('L')
|
||||||
.long(OPT_LOGICAL)
|
.long(OPT_LOGICAL)
|
||||||
.help("resolve '..' components before symlinks")
|
.help(get_message("realpath-help-logical"))
|
||||||
.action(ArgAction::SetTrue),
|
.action(ArgAction::SetTrue),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
|
@ -123,27 +123,21 @@ pub fn uu_app() -> Command {
|
||||||
.short('P')
|
.short('P')
|
||||||
.long(OPT_PHYSICAL)
|
.long(OPT_PHYSICAL)
|
||||||
.overrides_with_all([OPT_STRIP, OPT_LOGICAL])
|
.overrides_with_all([OPT_STRIP, OPT_LOGICAL])
|
||||||
.help("resolve symlinks as encountered (default)")
|
.help(get_message("realpath-help-physical"))
|
||||||
.action(ArgAction::SetTrue),
|
.action(ArgAction::SetTrue),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(OPT_CANONICALIZE_EXISTING)
|
Arg::new(OPT_CANONICALIZE_EXISTING)
|
||||||
.short('e')
|
.short('e')
|
||||||
.long(OPT_CANONICALIZE_EXISTING)
|
.long(OPT_CANONICALIZE_EXISTING)
|
||||||
.help(
|
.help(get_message("realpath-help-canonicalize-existing"))
|
||||||
"canonicalize by following every symlink in every component of the \
|
|
||||||
given name recursively, all components must exist",
|
|
||||||
)
|
|
||||||
.action(ArgAction::SetTrue),
|
.action(ArgAction::SetTrue),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(OPT_CANONICALIZE_MISSING)
|
Arg::new(OPT_CANONICALIZE_MISSING)
|
||||||
.short('m')
|
.short('m')
|
||||||
.long(OPT_CANONICALIZE_MISSING)
|
.long(OPT_CANONICALIZE_MISSING)
|
||||||
.help(
|
.help(get_message("realpath-help-canonicalize-missing"))
|
||||||
"canonicalize by following every symlink in every component of the \
|
|
||||||
given name recursively, without requirements on components existence",
|
|
||||||
)
|
|
||||||
.action(ArgAction::SetTrue),
|
.action(ArgAction::SetTrue),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
|
@ -151,14 +145,14 @@ pub fn uu_app() -> Command {
|
||||||
.long(OPT_RELATIVE_TO)
|
.long(OPT_RELATIVE_TO)
|
||||||
.value_name("DIR")
|
.value_name("DIR")
|
||||||
.value_parser(NonEmptyStringValueParser::new())
|
.value_parser(NonEmptyStringValueParser::new())
|
||||||
.help("print the resolved path relative to DIR"),
|
.help(get_message("realpath-help-relative-to")),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(OPT_RELATIVE_BASE)
|
Arg::new(OPT_RELATIVE_BASE)
|
||||||
.long(OPT_RELATIVE_BASE)
|
.long(OPT_RELATIVE_BASE)
|
||||||
.value_name("DIR")
|
.value_name("DIR")
|
||||||
.value_parser(NonEmptyStringValueParser::new())
|
.value_parser(NonEmptyStringValueParser::new())
|
||||||
.help("print absolute paths unless paths below DIR"),
|
.help(get_message("realpath-help-relative-base")),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(ARG_FILES)
|
Arg::new(ARG_FILES)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue