TL;DR — Texts are Project Fluent messages in i18n/<language>/quick_video_transcoder.ftl,
embedded in the executable and read with tr!("id"). English is the reference and the fallback; regional
files (fr-CA, en-GB…) hold only what differs from their language. Numbers are formatted by the NUM
function (ICU4X, CLDR data compiled in). View → Language picks Automatic or a regional variant.
Design and rules: the doc comment of src/i18n.rs. Spikes behind the choices (2026-11-23):
ICU4X adds about 93 KB with every locale's number data; OS regional customizations are not followed (as
Firefox does by default), the chosen variant's CLDR formats are.
- Every text a user reads:
crate::tr!("area-element", name = value). Never a literal, neverformat!to build a sentence, never two messages glued together: word order differs between languages. - Numbers are passed as numbers (
mb = 25.0), formatted in the message:{ NUM($mb, decimals: 1) } MB. Counts too, so plurals work:{ $count -> [one] 1 video *[other] { NUM($count) } videos }. - Names (files, codecs, encoder names, profile names) are passed as variables and never translated: they are
data. The built-in profile names stay as they are in every language (they are stored in
profiles.toml). - Symbols-only labels (
⏮,▶) stay in code; their tooltip is a message. - Logs (
log::info!…) and technical details (FFmpeg's stderr,anyhowchains) stay in English: they are for support. A message shown to the user wraps them:encode-failed = Encoding failed: { $detail }. - Time codes (
00:01:02.500) and technical units that are identifiers (kbit/s,fpsin a codec label) are formatted bytimecodeand passed as variables when they are data; a unit in a sentence belongs to the message, so a translator can writei/s. - One message per sentence or label, with an id
area-element[-detail](-tooltipfor hover texts), in the section of its source file in the English file. A comment above a message explains it when the English alone is ambiguous (where it shows, what a variable holds). cargo testchecks that every file parses, that translations use only English ids and variables, and that every English message is used.- Debug builds:
QVT_PSEUDO=1elongates and brackets every text ([Ŝţàŕţ ĥéŕé~~~]): a text left in code shows unbracketed, a layout that cannot take a longer language shows clipped.
The application is for people who share game captures in chats (Messenger, Discord): gamers, not video engineers. It should read like a well-made native app of that language, never like a translation:
- Translate the meaning in this context, not the words. Read the code around a message when the id and comment are not enough. Prefer the term the platform and well-known apps of that language use (Windows, Explorer, Discord, OBS, HandBrake, VLC in that language).
- Short. Buttons and menu items are commands; tooltips are one line. French runs about 20 % longer than English: when a label would not fit, rephrase rather than abbreviate.
- Consistent. One concept, one word, everywhere (glossary below).
- Keep variables and markup exactly:
{ $name },{ NUM(...) }, selectors; reorder them freely. - Keyboard keys are named as that language's keyboards and Windows name them (
Début,Fin,Espace,Gauche…); letter shortcuts (I,O,M) do not change.
- Typography: a no-break space (U+00A0) before
:,;,!,?,%and inside« »; a narrow no-break space (U+202F) is also correct before;!?(fr-FR). Ellipsis…. Apostrophe’. Capital only on the first word of a label (Ajouter des vidéos, notAjouter Des Vidéos). - Units:
Mo,Go,kbit/s,i/s(images par seconde),Hz. A no-break space between a number and its unit. - Commands in the infinitive (
Encoder,Ajouter des vidéos…), not the imperative. fr-CA: Québec usage, Office québécois de la langue française terminology where it is what people actually say and what Windows in Canadian French shows (courriel,clavarderare not needed here). Only messages that really differ go ini18n/fr-CA/.fr-BE,fr-CH: same texts asfrunless a term really differs; their number formats differ anyway (CLDR).
Each variant was reviewed message by message by a translator briefed as a native professional of that region, who kept only real differences:
| Variant | File | What differs from its base |
|---|---|---|
fr-CA |
i18n/fr-CA/ |
Canadian French keyboard names (Origine, Pg préc / Pg suiv); Québec typography: no space before ; ? ! (still a no-break space before : and %, inside « »). Vocabulary: none — the base already reads naturally in Québec. |
fr-BE |
none | Nothing: Windows and software in Belgium use the same terms and Microsoft's typography. |
fr-CH |
none | Nothing for now: same terms; Swiss usage before ; ! ? is mixed, so the base is kept until a reliable source says otherwise. |
en-GB |
i18n/en-GB/ |
colour, licence. |
Numbers differ in every region anyway, from CLDR (fr-CA and fr-CH group with a no-break space, fr with
a narrow one). A regional file copies whole messages from its base: when a base message changes, update the
same message in the regional files (they hold few).
Translations are made by subagents with a strong native persona each (a translator writes, another reviews
cold, a regional localizer per variant), working from this guide, the English comments, the code around each
message and a screenshot of the window in their language (shot-lang.ps1-style: QVT_LANGUAGE=fr-CA and
QVT_SCREENSHOT). The orchestrator merges, checks the screenshots and fixes what the translators report
about the English source or the code.
- Add its regional variants to
LANGUAGESinsrc/i18n.rs(named in that language). - Write
i18n/<language>/quick_video_transcoder.ftl(complete), then regional files with only what differs. Check the script is covered by egui's fonts (Latin, Greek, Cyrillic are; CJK falls back to the system's fonts; right-to-left scripts are not laid out by egui). - A completeness test like
french_is_completefor a language the project commits to keep complete.
enis US English.en-GBholds only British spellings and terms that differ (licence as a noun, colour, optimise…), nothing else.
| English | French (fr) |
Notes |
|---|---|---|
| video (a queued file) | vidéo | |
| queue | file d’attente | « la file » once the context is clear |
| kept part (trimmed range) | partie conservée | the range between the two handles |
| trim / trim handle | découper / poignée | |
| start / end (of the kept part) | début / fin | |
| frame (a picture) | image | « trame » is interlaced fields: never |
| frame rate | fréquence d’images | 30 i/s in values |
| resolution | résolution | |
| size limit | taille maximale | |
| bitrate | débit | |
| estimate (noun) | estimation | |
| encode (verb) / encoding | encoder / encodage | |
| encoder (NVENC, x265…) | encodeur | |
| profile | profil | |
| preview | aperçu | |
| tone mapping | mappage tonal | HDR → SDR |
| sound / audio track | son / piste audio | |
| microphone | micro | |
| quality bounds | limites de qualité | |
| Send to (Explorer menu) | Envoyer vers | Windows’ own French name |
| log | journal | |
| output folder | dossier de sortie |