Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Localisation on ascx page layout View modes: 
User avatar
Member
Member
batchahaja-socpa.org - 7/10/2012 7:23:56 AM
   
Localisation on ascx page layout
Hi

In the page layout we have listed index with hyper links. we need the string should change between arabic and english . once change the language from language bar

the code as below

<li><a href="#">{$accounting.standards$}</a></li>

Created the custom string on both cultures with the key as "accounting.standards"

But it is giving the output as $accounting.standards$. Tried out the other way also

<li><asp:HyperLink ID="accountingstandards" NavigateUrl="#" runat="server"></asp:HyperLink></li>.

User avatar
Member
Member
batchahaja-socpa.org - 7/12/2012 6:15:02 AM
   
RE:Localisation on ascx page layout
If i am stating my problem clearly just tell me. Posted before 3 days still waiting for the solution. any help is highly appreciated.


User avatar
Member
Member
kentico_michal - 7/12/2012 9:13:00 AM
   
RE:Localisation on ascx page layout
Hi,

You can resolve the localization macros as shown here:

<%=CMS.GlobalHelper.ResHelper.LocalizeString("{$stringname$}")%>

or if you want to use API: Resolving macros using API.

Please note: The forums are currently intended for Kentico community. Although we monitor them time to time, we cannot guarantee a timely response. If you need a help with Kentico CMS and you have a valid maintenance, please feel free to send your message to support@kentico.com.

Best regards,
Michal Legen