Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/uu/ls/locales/en-US.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ ls-help-escape-quoting-style = Use escape quoting style. Equivalent to `--quotin
ls-help-c-quoting-style = Use C quoting style. Equivalent to `--quoting-style=c`
ls-help-replace-control-chars = Replace control characters with '?' if they are not escaped.
ls-help-show-control-chars = Show control characters 'as is' if they are not escaped.
ls-help-show-time-field = Show time in `<field>`:
ls-help-time-type = If the long listing format (e.g., -l, -o) is being used, print the time corresponding to `<type>`.
When explicitly sorting by time (--sort=time or -t) or when not using a long listing format, sort according to `<type>` (newest first).
access time (-u): atime, access, use;
change time (-t): ctime, status.
modification time: mtime, modification.
change time (-c): ctime, status;
modification time (default): mtime, modification;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the last item should end with "." instead of ";", no?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, is it possible this is a French convention I wasn't aware of?

To my eye, no punctuation at the end of the line looks more natural, and Oxford agrees with me.

(Although, below there, it does say that that style can be used for full sentences.)

I think I'll remove the ending punctuation, how's that?

birth time: birth, creation;
ls-help-time-change = If the long listing format (e.g., -l, -o) is being used, print the
status change time (the 'ctime' in the inode) instead of the modification
Expand All @@ -74,7 +75,7 @@ ls-help-ignore-pattern = do not list implied entries matching shell PATTERN
ls-help-ignore-backups = Ignore entries which end with ~.
ls-help-sort-by-field = Sort by `<field>`: name, none (-U), time (-t), size (-S), extension (-X) or width
ls-help-sort-by-size = Sort by file size, largest first.
ls-help-sort-by-time = Sort by modification time (the 'mtime' in the inode), newest first.
ls-help-sort-by-time = Sort by time (see --time, mtime by default), newest first.
ls-help-sort-by-version = Natural sort of (version) numbers in the filenames.
ls-help-sort-by-extension = Sort alphabetically by entry extension.
ls-help-sort-none = Do not sort; list the files in whatever order they are stored in the
Expand Down
13 changes: 7 additions & 6 deletions src/uu/ls/locales/fr-FR.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ ls-help-escape-quoting-style = Utiliser le style de citation d'échappement. Éq
ls-help-c-quoting-style = Utiliser le style de citation C. Équivalent à `--quoting-style=c`
ls-help-replace-control-chars = Remplacer les caractères de contrôle par '?' s'ils ne sont pas échappés.
ls-help-show-control-chars = Afficher les caractères de contrôle 'tels quels' s'ils ne sont pas échappés.
ls-help-show-time-field = Afficher l'heure dans `<champ>` :
heure d'accès (-u) : atime, access, use ;
heure de changement (-t) : ctime, status.
heure de modification : mtime, modification.
heure de création : birth, creation ;
ls-help-time-type = Si le format d'affichage long (par ex. -l, -o) est utilisé, afficher l'heure correspondant à `<champ>`.
Lors d'un tri explicite par date (--sort=time ou -t) ou si le format d'affichage long n'est pas utilisé, trier selon `<champ>` (les plus récents en premier). :
Comment thread
majaha marked this conversation as resolved.
Resolved
heure d'accès (-u) : atime, access, use;
Comment thread
majaha marked this conversation as resolved.
Resolved
heure de changement (-t) : ctime, status;
Comment thread
majaha marked this conversation as resolved.
Resolved
heure de modification (défaut) : mtime, modification;
heure de création : birth, creation;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sylvestre Should the final entry of this list end in a "."?

ls-help-time-change = Si le format de liste long (par ex., -l, -o) est utilisé, afficher
l'heure de changement de statut (le 'ctime' dans l'inode) au lieu de l'heure
de modification. Lors du tri explicite par heure (--sort=time ou -t) ou lors
Expand All @@ -72,7 +73,7 @@ ls-help-ignore-pattern = ne pas lister les entrées implicites correspondant au
ls-help-ignore-backups = Ignorer les entrées qui se terminent par ~.
ls-help-sort-by-field = Trier par `<champ>` : name, none (-U), time (-t), size (-S), extension (-X) ou width
ls-help-sort-by-size = Trier par taille de fichier, le plus grand en premier.
ls-help-sort-by-time = Trier par heure de modification (le 'mtime' dans l'inode), le plus récent en premier.
ls-help-sort-by-time = Trier par date (voir --time, mtime par défaut), les plus récents en premier.
ls-help-sort-by-version = Tri naturel des numéros (de version) dans les noms de fichiers.
ls-help-sort-by-extension = Trier alphabétiquement par extension d'entrée.
ls-help-sort-none = Ne pas trier ; lister les fichiers dans l'ordre où ils sont stockés dans le
Expand Down
4 changes: 2 additions & 2 deletions src/uu/ls/src/ls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@ pub fn uu_app() -> Command {
.arg(
Arg::new(options::TIME)
.long(options::TIME)
.help(translate!("ls-help-show-time-field"))
.value_name("field")
.help(translate!("ls-help-time-type"))
.value_name("type")
.value_parser(ShortcutValueParser::new([
PossibleValue::new("atime").alias("access").alias("use"),
PossibleValue::new("ctime").alias("status"),
Expand Down
Loading