This topic is locked

Translation of hard-coded dropdown options

3/20/2014 3:29:34 PM
PHPRunner General questions
S
Stucco author

Hi,
I have a lookup table with hard coded options, but can't translate these. I see a work around by making it a dynamic table, but then the same option isn't even linked for reporting purposes. I really need the actual answers to be translated.
My idea would be to allow me to enter a translation key such as @@ before an option I want translated, and then I can put the key in the string table with the different translations. So my list of options and values stored in the DB would look like @@option1, @@option2, but the user would see the translation for @@option1 and @@option2 in their particular language of preference.
If there is some other way to accomplish this I'd appreciate knowing.
Thanks!

Sergey Kornilov admin 3/21/2014

I don't think I understand. One way or another you need to store translated entries in the database. Why don't use the database-based lookup wizard that offers a relatively straightforward localization options: http://xlinesoft.com/phprunner/docs/localizing_phprunner_application.htm

S
Stucco author 3/21/2014

Is there no way to make this multilingual?


Couldn't these labels just be tied into the string table for translation before display? This means I can just send the translation file for complete translation as usual.
Thanks!

Sergey Kornilov admin 3/21/2014

No, you cannot do this. I do understand what you saying and it may work well in certain situations when you have a small number of options in dropdown box. In most general case it's easier to export data from the database to Excel, translate it and then import it back.