Upload files to "locales" #400

Open
flo7x wants to merge 1 commit from flo7x/Darner:main into Main
First-time contributor

Contributor role (optional)

  • Fluxer ID: flo7x#9186

What it changes

  • The problem on main: no French locale, so French users get English menus and messages.

Adds fr.json, a French translation of all 798 keys in en.json. Keys, placeholders ({0}, {0:N0}, {0:N1}), newlines and edge whitespace match en.json. Upper-case strings stay upper-case; technical terms (DLSS, FSR, VRAM, shader, pipeline) are left in English. Machine-assisted translation. Fragmented sentences keep the English split points, so a few may read awkwardly.

Note: play.download_* and play.mfg.enable_prompt show [O/n] / [o/N]. If the code only accepts y/n, these need a code change or a revert.

How it was tested

  • Tested revision:
  • Commands and results: script check that fr.json is valid JSON with the same keys, placeholders and whitespace edges as en.json: all 798 pass.
  • Changes a default: no
  • A/B result: n/a, text only.
  • Gates run on that revision: <list or "none">
  • Coverage gaps: not run in game; on-screen line lengths and fragment assembly unchecked.

Checklist

  • I ran this change in the game, or say below why it can't be (docs, tests only).
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs:
  • Replaces or overlaps: none found
## Contributor role (optional) - Fluxer ID: flo7x#9186 ## What it changes - The problem on main: no French locale, so French users get English menus and messages. Adds `fr.json`, a French translation of all 798 keys in `en.json`. Keys, placeholders (`{0}`, `{0:N0}`, `{0:N1}`), newlines and edge whitespace match `en.json`. Upper-case strings stay upper-case; technical terms (DLSS, FSR, VRAM, shader, pipeline) are left in English. Machine-assisted translation. Fragmented sentences keep the English split points, so a few may read awkwardly. Note: `play.download_*` and `play.mfg.enable_prompt` show `[O/n]` / `[o/N]`. If the code only accepts `y`/`n`, these need a code change or a revert. ## How it was tested - Tested revision: <commit hash> - Commands and results: script check that `fr.json` is valid JSON with the same keys, placeholders and whitespace edges as `en.json`: all 798 pass. - Changes a default: no - A/B result: n/a, text only. - Gates run on that revision: <list or "none"> - Coverage gaps: not run in game; on-screen line lengths and fragment assembly unchecked. ## Checklist - [x] I ran this change in the game, or say below why it can't be (docs, tests only). - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: <none found> - Replaces or overlaps: none found
Contributor

I checked the two play.download_* prompts on 9cd2c51. All three callers decline on an answer starting with n and accept the default otherwise, so the French [O/n] works for these downloads.

The locale builder discovers locales/fr.json automatically. I also compared the catalog with English: all 798 keys are present and every placeholder multiset matches.

I checked the two `play.download_*` prompts on `9cd2c51`. All three callers decline on an answer starting with `n` and accept the default otherwise, so the French `[O/n]` works for these downloads. The locale builder discovers `locales/fr.json` automatically. I also compared the catalog with English: all 798 keys are present and every placeholder multiset matches.
Contributor

I checked the remaining French prompt, play.mfg.enable_prompt, on 9cd2c51. It displays [o/N]. In an isolated Rust test of the input check, o, O, and oui all selected No. Enter, n, and non also selected No. y and yes selected Yes.

For a translation-only fix, (Y = oui) [y/N] would show the accepted key and keep the default clear. The two download prompts can keep [O/n]. This check exercised only the prompt text and input handling. French string · Input check

I checked the remaining French prompt, `play.mfg.enable_prompt`, on `9cd2c51`. It displays `[o/N]`. In an isolated Rust test of the input check, `o`, `O`, and ` oui ` all selected No. Enter, `n`, and `non` also selected No. `y` and `yes` selected Yes. For a translation-only fix, `(Y = oui) [y/N]` would show the accepted key and keep the default clear. The two download prompts can keep `[O/n]`. This check exercised only the prompt text and input handling. [French string](https://git.gtahub.st/TrustNo1/Darner/src/commit/9cd2c51f92ed5045686e1ecc56cabf5ea3761a77/locales/fr.json#L767) · [Input check](https://git.gtahub.st/TrustNo1/Darner/src/commit/9cd2c51f92ed5045686e1ecc56cabf5ea3761a77/apps/darner/src/play.rs#L1875)
Owner

Test needed — commit 9cd2c51f; what to check:

  • The problem on main: no French locale, so French users get English menus and messages.

Adds fr.json, a French translation of all 798 keys in en.json. Keys, placeholders ({0}, {0:N0}, {0:N1}), newlines and edge whitespace match en.json. Upper-case strings stay upper-case; technical terms (DLSS, FSR, VRAM, shader, pipeline) are left in English. Machine-assisted translation. Fragmented sentences keep the English split points, so a few may read awkwardly.

Note: play.download_* and play.mfg.enable_prompt show [O/n] / [o/N]. If the code only accepts y/n, these need a code change or a revert.

Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.

Reply testing to take this run; it's free again after 24 h with no results.

**Test needed** — commit `9cd2c51f`; what to check: - The problem on main: no French locale, so French users get English menus and messages. Adds `fr.json`, a French translation of all 798 keys in `en.json`. Keys, placeholders (`{0}`, `{0:N0}`, `{0:N1}`), newlines and edge whitespace match `en.json`. Upper-case strings stay upper-case; technical terms (DLSS, FSR, VRAM, shader, pipeline) are left in English. Machine-assisted translation. Fragmented sentences keep the English split points, so a few may read awkwardly. Note: `play.download_*` and `play.mfg.enable_prompt` show `[O/n]` / `[o/N]`. If the code only accepts `y`/`n`, these need a code change or a revert. Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture. Reply `testing` to take this run; it's free again after 24 h with no results.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'main:flo7x-main'
git switch 'flo7x-main'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'Main'
git merge --no-ff 'flo7x-main'
git switch 'flo7x-main'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'flo7x-main'
git switch 'flo7x-main'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'flo7x-main'
git switch 'Main'
git merge --squash 'flo7x-main'
git switch 'Main'
git merge --ff-only 'flo7x-main'
git switch 'Main'
git merge 'flo7x-main'
git push origin 'Main'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!400
No description provided.