You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the landing of #35789 I noticed that there are hardcoded English strings in Servo itself. This is likely not exhaustive, but the <input> element actually relies on a few strings:
I also introduced some English hardcoding in the about:memory page.
Instead we need to chose a i18n / l10n framework to make it possible to properly localize Servo itself - embedders may use the same solution or not.
Gecko & Firefox use Fluent (https://projectfluent.org/) which has implementations available both for Rust and Javascript. I'm not sure if there are other solutions that would fit our needs.
We should:
Agree on which framework to use.
Expose the l10n bundles to Rust code, both in main and content processes (shared memory?).
Expose the l10n bundles to Servo internal pages (either through a chrome://locale/ path or a new locale:// protocol?)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
After the landing of #35789 I noticed that there are hardcoded English strings in Servo itself. This is likely not exhaustive, but the
<input>element actually relies on a few strings:servo/components/script/dom/htmlinputelement.rs
Line 90 in 459aee2
and
servo/components/script/dom/htmlinputelement.rs
Line 1093 in 459aee2
I also introduced some English hardcoding in the
about:memorypage.Instead we need to chose a i18n / l10n framework to make it possible to properly localize Servo itself - embedders may use the same solution or not.
Gecko & Firefox use Fluent (https://projectfluent.org/) which has implementations available both for Rust and Javascript. I'm not sure if there are other solutions that would fit our needs.
We should:
chrome://locale/path or a newlocale://protocol?)Beta Was this translation helpful? Give feedback.
All reactions