In OU Annotate the Manager part of the system uses the SilverStripe language pack system so that we could potentially offer the user interface in other languages if we wanted to – or if we ever open-source it.
- in the definitions file
- in the views
- in the controllers
The first two are arguably OK, but the latter really got me. So I’d like to do something a bit more consistent about internationalization support for the toolbar. I’d like to have a language file and use code like _t(‘thing’) in the views and controllers to display the appropriately translated text.
Which leads me to my dilemma.
There’s only one in the JQuery plugins register. It’s only a couple of months old so its hard to tell if it is a flash in the pan, buggy etc.
I thought jquery-i18n-properties looked good at first. But the issues list has some nasties in it with problems like support in IE and on Android not resolved.
I did some more searching and found a handful of other libraries and DIY instructions that might be useful but I haven’t dug into in any detail yet.