Any thoughts on adding i18n support for drupalgap?
Drupal native jquery has support for i18n via the Drupal.t() function but this doesn't work in drupalgap and not entirely sure how it would.
I think it would be something like a remote call to get "translated" string from the server and then display that value rather than a value hard coded in to the app.
also, i use the idea of i18n and translated loosely since as drupal devs know it is possible to modify t() wrapped strings outside of i18n (see string overrides module). in dgap this would give the ability to change things like button labels, etc without having to recompile, submit to itunes, etc the app.
Comments
Comment #1
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedAs a relative n00b with multi lingual Drupal sites, I have some general thoughts about how this could be supported into DrupalGap. This ideally needs a serious conversation in #drupal-drupalgap on IRC if anyone is interested.
Comment #2
liquidcms CreditAttribution: liquidcms commentedi'm english; the app (our first) we are doing is for the city of montreal.. and is (oddly) only in french.
so, although i am coding strings in EN; this is only to ease dev and we will eventually go back and change them all to FR. so, we don't really need i18n. but the next app we may. :) i don't know dgap too well; but pretty familiar with i18n so just thought it would be a pretty useful feature to have translatable/overridable strings support.
i'll add myself to the irc channel.
Comment #3
g089h515r806 CreditAttribution: g089h515r806 commentedI use it in Chinese, I need translate the English label into Chinese.
Comment #4
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedFrom another user: