uutils / uutils/coreutils

[LOCALIZATION] Handling of big numbers

Open
#9,294 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
24.1k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
365

Description

Right now, messages which include big numbers cannot be localized, due to the use of fluent::FluentArgs in the translate! macro. There is an open bug upstream but it seems to have stalled: https://github.com/projectfluent/fluent-rs/issues/337.

A workaround should be developed in the meantime, as the loss of precision printing messages implies not being able to follow GNU coreutils error messages in some corner cases.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the translate! macro in src/uucore/lib/mods/locale.rs, especially its use of fluent::FluentArgs, and review upstream fluent-rs issue 337. Develop a workaround for localized messages containing big numbers, then verify that message formatting preserves numeric precision and remains consistent with GNU coreutils output.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, localization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.