Skip to content
Closed
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
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/uu/numfmt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ clap = { workspace = true }
uucore = { workspace = true, features = ["parser", "ranges"] }
thiserror = { workspace = true }
fluent = { workspace = true }
libc = { workspace = true }
num-bigint = { workspace = true }
num-traits = { workspace = true }

[dev-dependencies]
divan = { workspace = true }
Expand Down
8 changes: 8 additions & 0 deletions src/uu/numfmt/locales/en-US.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ numfmt-help-debug = print warnings about invalid input
numfmt-help-delimiter = use X instead of whitespace for field delimiter
numfmt-help-field = replace the numbers in these input fields; see FIELDS below
numfmt-help-format = use printf style floating-point FORMAT; see FORMAT below for details
numfmt-help-grouping = use locale-specific grouping separators for output
numfmt-help-from = auto-scale input numbers to UNITs; see UNIT below
numfmt-help-from-unit = specify the input unit size
numfmt-help-to = auto-scale output numbers to UNITs; see UNIT below
Expand All @@ -49,6 +50,7 @@ numfmt-help-header = print (without converting) the first N header lines; N defa
numfmt-help-round = use METHOD for rounding when scaling
numfmt-help-suffix = print SUFFIX after each formatted number, and accept inputs optionally ending with SUFFIX
numfmt-help-unit-separator = use STRING to separate the number from any unit when printing; by default, no separator is used
numfmt-help-debug = print warnings about potential problems during processing
numfmt-help-invalid = set the failure mode for invalid input
numfmt-help-zero-terminated = line delimiter is NUL, not newline

Expand All @@ -58,6 +60,7 @@ numfmt-error-invalid-unit-size = invalid unit size: { $size }
numfmt-error-invalid-padding = invalid padding value { $value }
numfmt-error-invalid-header = invalid header value { $value }
numfmt-error-grouping-cannot-be-combined-with-to = grouping cannot be combined with --to
numfmt-error-grouping-cannot-be-combined-with-format = --grouping cannot be combined with --format
numfmt-error-delimiter-must-be-single-character = the delimiter must be a single character
numfmt-error-invalid-number-empty = invalid number: ''
numfmt-error-invalid-specific-suffix = invalid suffix in input { $input }: { $suffix }
Expand All @@ -68,13 +71,18 @@ numfmt-error-rejecting-suffix = rejecting suffix in input: '{ $number }{ $suffix
numfmt-error-suffix-unsupported-for-unit = This suffix is unsupported for specified unit
numfmt-error-unit-auto-not-supported-with-to = Unit 'auto' isn't supported with --to options
numfmt-error-number-too-big = Number is too big and unsupported
numfmt-error-value-too-large-to-be-converted = value too large to be converted: { $input }
numfmt-error-value-too-large-to-be-printed = value too large to be printed: { $value } (consider using --to)
numfmt-error-value-precision-too-large-to-be-printed = value/precision too large to be printed: { $value } (consider using --to)
numfmt-error-value-too-large-to-be-printed-max = value too large to be printed: { $value } (cannot handle values > 999Q)
numfmt-error-format-no-percent = format '{ $format }' has no % directive
numfmt-error-format-ends-in-percent = format '{ $format }' ends in %
numfmt-error-invalid-format-directive = invalid format '{ $format }', directive must be %[0]['][-][N][.][N]f
numfmt-error-invalid-format-width-overflow = invalid format '{ $format }' (width overflow)
numfmt-error-invalid-precision = invalid precision in format '{ $format }'
numfmt-error-format-too-many-percent = format '{ $format }' has too many % directives
numfmt-error-unknown-invalid-mode = Unknown invalid mode: { $mode }
numfmt-error-multiple-field-specifications = multiple field specifications

# Debug messages
numfmt-debug-no-conversion = no conversion option specified
Expand Down
9 changes: 9 additions & 0 deletions src/uu/numfmt/locales/fr-FR.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ numfmt-after-help = Options d'UNITÉ :
numfmt-help-delimiter = utiliser X au lieu d'espaces pour le délimiteur de champ
numfmt-help-field = remplacer les nombres dans ces champs d'entrée ; voir FIELDS ci-dessous
numfmt-help-format = utiliser le FORMAT à virgule flottante de style printf ; voir FORMAT ci-dessous pour les détails
numfmt-help-grouping = utiliser les séparateurs de groupement de la locale pour la sortie
numfmt-help-from = mettre automatiquement à l'échelle les nombres d'entrée vers les UNITÉs ; voir UNIT ci-dessous
numfmt-help-from-unit = spécifier la taille de l'unité d'entrée
numfmt-help-to = mettre automatiquement à l'échelle les nombres de sortie vers les UNITÉs ; voir UNIT ci-dessous
Expand All @@ -47,7 +48,9 @@ numfmt-help-padding = remplir la sortie à N caractères ; N positif alignera à
numfmt-help-header = imprimer (sans convertir) les N premières lignes d'en-tête ; N vaut 1 par défaut si non spécifié
numfmt-help-round = utiliser METHOD pour l'arrondi lors de la mise à l'échelle
numfmt-help-suffix = imprimer SUFFIX après chaque nombre formaté, et accepter les entrées se terminant optionnellement par SUFFIX
numfmt-help-unit-separator = utiliser STRING pour séparer le nombre de toute unité lors de l'affichage ; par défaut, aucun séparateur n'est utilisé
numfmt-help-invalid = définir le mode d'échec pour les entrées invalides
numfmt-help-debug = afficher des avertissements sur d'éventuels problèmes de traitement
numfmt-help-zero-terminated = le délimiteur de ligne est NUL, pas retour à la ligne

# Messages d'erreur
Expand All @@ -56,6 +59,7 @@ numfmt-error-invalid-unit-size = taille d'unité invalide : { $size }
numfmt-error-invalid-padding = valeur de remplissage invalide { $value }
numfmt-error-invalid-header = valeur d'en-tête invalide { $value }
numfmt-error-grouping-cannot-be-combined-with-to = le groupement ne peut pas être combiné avec --to
numfmt-error-grouping-cannot-be-combined-with-format = --grouping ne peut pas être combiné avec --format
numfmt-error-delimiter-must-be-single-character = le délimiteur doit être un seul caractère
numfmt-error-invalid-number-empty = nombre invalide : ''
numfmt-error-invalid-suffix = suffixe invalide dans l'entrée : { $input }
Expand All @@ -66,10 +70,15 @@ numfmt-error-rejecting-suffix = rejet du suffixe dans l'entrée : '{ $number }{
numfmt-error-suffix-unsupported-for-unit = Ce suffixe n'est pas supporté pour l'unité spécifiée
numfmt-error-unit-auto-not-supported-with-to = L'unité 'auto' n'est pas supportée avec les options --to
numfmt-error-number-too-big = Le nombre est trop grand et non supporté
numfmt-error-value-too-large-to-be-converted = valeur trop grande pour être convertie : { $input }
numfmt-error-value-too-large-to-be-printed = valeur trop grande pour être affichée : { $value } (envisagez d'utiliser --to)
numfmt-error-value-precision-too-large-to-be-printed = valeur/précision trop grande pour être affichée : { $value } (envisagez d'utiliser --to)
numfmt-error-value-too-large-to-be-printed-max = valeur trop grande pour être affichée : { $value } (valeurs > 999Q non prises en charge)
numfmt-error-format-no-percent = le format '{ $format }' n'a pas de directive %
numfmt-error-format-ends-in-percent = le format '{ $format }' se termine par %
numfmt-error-invalid-format-directive = format invalide '{ $format }', la directive doit être %[0]['][-][N][.][N]f
numfmt-error-invalid-format-width-overflow = format invalide '{ $format }' (débordement de largeur)
numfmt-error-invalid-precision = précision invalide dans le format '{ $format }'
numfmt-error-format-too-many-percent = le format '{ $format }' a trop de directives %
numfmt-error-unknown-invalid-mode = Mode invalide inconnu : { $mode }
numfmt-error-multiple-field-specifications = plusieurs spécifications de champs
Loading
Loading