Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Problem with translations of product Fields. View modes: 
User avatar
Member
Member
magnus-tenk - 1/19/2012 10:32:04 AM
   
Problem with translations of product Fields.
I get problems when trying to localize a site that has Swedish, not English, as default culture. Version 6.0.13, Installation Corporate Site sample Site. Add Swedish culture, change default culture with translate all documents checked == true;

Given that (Ah = AmpereTimmar = AmpereHours)

I create a new documenttype and new Attribute
Column name: AH
Field caption: AmpereTimmar
-> Clicking the Localize Filed -> Create new Resource String custom.AmpereTimmar
-> Clicking Localize field again and get a dialog with one language availible English (Default). My default culture is Swedish. Any way, I continue....

When I "translate" my string, this will update the Field Caption to the new value, overwriting the Swedish string with the translated English text.

Also...if I try to generate a default transformation I will get the expression {$custom.AmpereTimmar$}. This will not get evaluated. I suspect for the simple reason that there is no (and should not exist) Swedish translation.

I assume that this will work if I have English as the default language and translate to Swedish, but that is not how I would like to work. My users expect to write in swedish. Translation to other languages will be done in a later stage. I am just testing this now to be thorough and plan ahead.

How do we solve this problem?

Best regards, Magnus Hammar

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 1/23/2012 5:45:23 AM
   
RE:Problem with translations of product Fields.
Hi,

if you would like to have Swedish culture as a default one, please add following key to your web config file:
<add key="CMSDefaultUICulture" value="sv-SE"/>

Then in the Site Manager - Development - UI Cultures - should be created a new culture with sv-SE code name.

Now you should see the sw culture as a default one if you click on the Localize button. Also please make sure that the administrator uses Swedish or default UI culture in his settings in the Site Manager - Administration - Users - <user> - General tab.

As for the transformation - the default transformation has a type ASCX. If the transformation contains the macro, you should change the type of transformation to List/XML. Then the localization macros will be resolved correctly.

I hope that description makes sense.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
magnus-tenk - 1/23/2012 6:25:44 AM
   
RE:Problem with translations of product Fields.
Great. Works like a charm.

Thanks
/Magnus