Change Form Language with Managed Code

D

Deniz Yalman

Hi,

I'm trying to do multilanguage infopath 2007 forms via forms services. So i
will publish these forms over browser.

There are different ways to do multilanguage capable forms. My method is
adding a querystring (ie: Lang=en-US) to form url and handle it with managed
code. Then change form's view programmatically according to handled
querystring.

But i have a problem. I can change custom texts but cannot change forms
language (tools > form options > browser category > [Form language])
programmatically. This situation cause to half-translated forms. I want to
create fully translated forms via managed code.

Is there any way to do this?
Thanks in advance.
 
S

S.Y.M. Wong-A-Ton

I don't think you can programmatically change the Form Language setting. In
addition, this language setting is used when the form is initialized. So even
if you change the culture of the thread that a form is running on after the
form has been opened, the language of the form in toolbars and dialog boxes
will not change, since the Initialize event already took place. The only way
I currently see possible is to create a separate site for each language you
want to localize the form in and publish the form to each site. To switch
between languages, switch between sites. If you find a better solution, let
us know!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top