threadpanic/rustpg
1
0
Fork
You've already forked rustpg
0

View|Interface language setup #8

Open
opened 2026年05月08日 14:19:46 +02:00 by threadsafety · 0 comments

Hardcoded English as the default; additional languages are separate string files. Proposed layout:

src/i18n/
 strings_en_default.rs ← canonical source of all strings
 strings_nl.rs
 strings_de.rs
 strings_fr.rs
 ...

A language selector in Settings → writes the choice to rustpg.conf. On startup, i18n::load(lang) returns a Strings struct; all UI code goes through it instead of string literals. New strings are added to strings_en_default.rs first; translations follow.

Language list from original request — EU official languages plus a wider set:
Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Irish, Italian, Latvian, Lithuanian, Maltese, Polish, Portuguese, Romanian, Slovak, Slovenian, Spanish, Swedish;
French, German, Hindi, Indonesian, Italian, Chinese, Korean, Portuguese, Spanish (Latin America), Spanish (Spain), Japanese, Arabic.

Hardcoded English as the default; additional languages are separate string files. Proposed layout: ``` src/i18n/ strings_en_default.rs ← canonical source of all strings strings_nl.rs strings_de.rs strings_fr.rs ... ``` A language selector in `Settings →` writes the choice to `rustpg.conf`. On startup, `i18n::load(lang)` returns a `Strings` struct; all UI code goes through it instead of string literals. New strings are added to `strings_en_default.rs` first; translations follow. Language list from original request — EU official languages plus a wider set: Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Irish, Italian, Latvian, Lithuanian, Maltese, Polish, Portuguese, Romanian, Slovak, Slovenian, Spanish, Swedish; French, German, Hindi, Indonesian, Italian, Chinese, Korean, Portuguese, Spanish (Latin America), Spanish (Spain), Japanese, Arabic.
Sign in to join this conversation.
No Branch/Tag specified
main
alpha-0.4.1
alpha-0.4.0
alpha-0.3.3
alpha-0.3.2
alpha-0.3.1
v0.3.1
alpha-1
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
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
threadpanic/rustpg#8
Reference in a new issue
threadpanic/rustpg
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?