Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Truly Multilingual Biz Form View modes: 
User avatar
Member
Member
ZachW - 2/8/2012 9:42:58 AM
   
Truly Multilingual Biz Form
I have a biz form that I'd like to present in both English and Spanish. I can get the field captions to switch via the resx files but there are still two parts of the form that aren't multilingual. I need to change the submit button image and I need to change the contents of my dropdown boxes. Is there a way to make these elements multilingual?

User avatar
Kentico Support
Kentico Support
kentico_janh - 2/9/2012 1:45:07 AM
   
RE:Truly Multilingual Biz Form
Hello,

You can use localization macros in the File type definiton of your drop-down list like this:

1;{$=Hello|cs-CZ=Ahoj$}
2;{$=Hello2|cs-CZ=Ahoj2$}
3;{$=Hello3|cs-CZ=Ahoj3$}


But regrettably, as you can see on this link, it is possible to use localization macros only for Submit button text, so it won't work for the Submit button image field.

Best regards,
Jan Hermann

User avatar
Member
Member
ZachW - 2/9/2012 7:48:06 AM
   
RE:Truly Multilingual Biz Form
Thanks. Couple more questions...

1. Could I set the submit button as an image of my old one without the text and then set the Submit Button Text?

2. Could I clone the Biz Form web part or module to include a 'Spanish Button Image' field?

User avatar
Kentico Support
Kentico Support
kentico_janh - 2/9/2012 9:52:02 AM
   
RE:Truly Multilingual Biz Form
Hello,

1) Yes, but not with your approach. You need to set the image through the css styles and then fill the Submit button text field with a localization macro. Bizform generates FormButton class for the submit button, so you just specify that bizform by filling its Content before/after properties:

Content before: <div id="mybiz">
Content after: </div>


and then you can define css class for the submit button image like this:

.mybiz .FormButton {
background-image: url(...);
width: ...
height: ...
}


2) No, the logic of bizforms is hardcoded in the source code, so you wouldn't be able to process that new field, so you would have to develop a whole new module for that kind of functionality.

Best regards,
Jan Hermann