Page 1 of 1

i18n translation plug-in...HOW DO I TRANSLATE STRINGS PULLED FROM A DATABASE?

Posted: Sun Jun 21, 2015 3:26 am
by Avery Haskell

I am following the i18n plugin instructions and so far it's working fine.

https://devcenter.appery.io/tutorials...

My question is how can I translate tasks (strings) pulled from the database?

I populate a list of items that are pulled from my Appery DB, and I want to be able to translate these tasks. There are only a few tasks, so I can create the specific translations myself for each one, but not sure how to implement it insofar as the list item/label is different depending on which item is read from the database.

Hope that makes sense.

Thank you in advance.


i18n translation plug-in...HOW DO I TRANSLATE STRINGS PULLED FROM A DATABASE?

Posted: Mon Jun 22, 2015 6:12 am
by Serhii Kulibaba

Hello,

1) add column "lang" to the collection
2) add request parameter "where" for the service (https://devcenter.appery.io/documenta...)
3) set "where" value according to current language. It will return data only for this language