Need internationalization for user-facing text
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.
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
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.
Closing this issue because it's a duplicate of #52.