uProxy-p2p icon indicating copy to clipboard operation
uProxy-p2p copied to clipboard

Need internationalization for user-facing text

Open matthild opened this issue 12 years ago • 3 comments

Various parts of the uProxy code currently construct user-facing messages using hard-coded English text directly in the source code. For example, in src/generic_core/remote-instance.ts:

ui.sendNotification(this.user.name + ' is requesting access.');

Ultimately, we will need some kind of internationalization layer so that the UI can support multiple languages.

Ideally, only the UI layer would deal with user-facing text. The core could pass status codes etc. to the UI layer, and the UI could deal with presenting state information to the user.

matthild avatar Jun 11 '14 21:06 matthild

I believe the last time this discussion occurred we deferred it until we had understanding of how internationalization is expected to work in both firefox and chrome.

I think we have a reasonable sense of the chrome API, can anyone comment on the firefox API?

https://developer.chrome.com/extensions/i18n

willscott avatar Jun 11 '14 21:06 willscott

As discussed just now:

  • We would probably do well to use a plain-javascript internationalization mechanism rather than relying on platform-specific mechanisms.
  • Determining the current UI language, though, might be platform-specific.

matthild avatar Jun 11 '14 22:06 matthild

Closing this issue because it's a duplicate of #52.

matthild avatar Sep 12 '14 14:09 matthild