This topic is locked
[SOLVED]

 Radiobutton multilanguage

6/18/2010 6:02:13 PM
PHPRunner General questions
D
ddefrain author

Hi again.

Is it possible to make/put a radiobutton multilanguage option?
Thanks in advance.

A
ann 6/22/2010

Hi,
I'm not sure that I understand your question. Please re-phrase it.

D
ddefrain author 6/22/2010



Hi,
I'm not sure that I understand your question. Please re-phrase it.


Hi Ann; Thanks for your reply.

I put a snippet into a php page with a multilanguage option, works just fine; but some radio buttons are filled with a list of values; those list of values are only in one language. <<i can't add another language>>.

Is it possible to change those list of values <<in another language >> when the user choose another language in the snippet?
Thanks in advance.

J
Jane 6/23/2010

Hi,
unfortunately it's not possible to translate values from 'list of values' in the radio buttons automatically.

As workaround you can use 'Lookup table' option on the"Edit as" settings dialog and select values from lookup table. Then add field where language for each label will be stored and filter values in the radiobutton using WHEREstatement:

"`language`='".$_SESSION["language"]."'"
D
ddefrain author 6/23/2010



Hi,
unfortunately it's not possible to translate values from 'list of values' in the radio buttons automatically.

As workaround you can use 'Lookup table' option on the"Edit as" settings dialog and select values from lookup table. Then add field where language for each label will be stored and filter values in the radiobutton using WHEREstatement:

"`language`='".$_SESSION["language"]."'"



Thanks Jane; I'll check it out.

Regards.

D
ddefrain author 6/25/2010



Thanks Jane; I'll check it out.

Regards.


Thank you so much Jane. Works just fine.
With a table with 3 fields on it 1-language 2-type 3-Description
WHEREstatement:

"`language`='".$_SESSION["language"]."' and `type`='yourradiobuttontype'"


Problem Solved!

Best Regards <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=50783&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' />