Home  Forums  Blogs  Knowledge Base  FAQs  Documentation  Marketplace  Support 
When creating the new item of particular document type you may want to display a document fields caption translated to the currently selected UI culture. This article describes the way how you could achieve localization of document field caption for specific language.

If you wish to display the document field caption in the currently selected UI culture you need to use the localization macro expressions. Described bellow is the process of setting the ‘News’ document fields to use the localization.


Please follow these steps to localize captions of the 'News' document type fields into the Spanish:

1) Please go to the 'Site manager-> Development-> Document types-> News-> Edit-> Fields'. For each field listed there (except the 'NewsID' as the unique identifier) specify the localization macro expression for the 'Field caption' field as the '{$<customCultureString>$}'. The ‘<customCultureString>’ for the 'NewsTitle' field caption could looks like the '{$news.title$}', for the 'NewsReleaseDate' as the '{$news.releasedate$}', etc. The custom culture string could be specified as you wish.

2) Please go to the 'Site manager-> Development-> UI cultures-> es-es-> Edit'. You would need to add the previously specified custom culture strings there. Please click the 'New string'. For the 'Key' field specify a value of the custom culture string, for example as 'news.title' or 'news.releasedate' concerning the previous step. For the 'Text' field enter the current translation of the field caption and for the 'English text' specify the English version of the field caption that would be used as the default value.

3) Repeat the step no.2 until you translate all the custom culture strings specified in the step no.1.

Please note that the default English version of the field caption is used in the case you haven't translated it to the currently selected language version.

See also:

http://www.kentico.com/docs/devguide/appendix_a___macro_expressions.htm



Applies to: Kentico CMS 2.x/3.x
Created on 8/20/2008 4:06:33 AM
 


Sitemap | Copyright 2008 Kentico software | Powered by Kentico