Page MenuHomePhabricator

The CodeEditor interface (options available from toolbar) should be translatable
Open, Needs TriagePublic

Description

Currently, most of the CodeEditor interface is not localizable at all.

It would be great if we could translate the interface into languages other than English.

Event Timeline

I'm not sure, but I think that the position of Ace on this is that any UI that is available is only a demonstration of what you can do with Ace. Thus if you need translations, you need to build your own translatable UI elements.

@Nemo_bis i suspect the user refers to either the find/replace widget, or the errors and/or warnings of the linters.

@Guycn2: Can you please clarify?

I meant to the toolbar, such as the search-and-replace function which is currently not translated to any language.

Aklapper renamed this task from The CodeEditor interface should be translatable to The CodeEditor interface (options available from toolbar) should be translatable.Nov 19 2016, 8:31 PM

Ace supports i18n since v1.20.0 (and improved in the just released v1.33.0) so we can just propagate wgUserLanguage to Ace when CodeEditor sets it up, though the translations need to be submitted and merged into Ace first, of course, and propagating the fallback chain can be a challenge (another option is to build it into CodeEditor and make it translatable via TranslateWiki). (And I wonder if it works with RTL...)