Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Different texts on diffrent languages of a site View modes: 
User avatar
Certified Developer 8
Certified Developer 8
rakopoulos - 5/7/2009 1:25:42 PM
   
Different texts on diffrent languages of a site
Hello,

We are developing a website in two languages (Greek/English). On all pages there are phrases (like the word search next to the search box or a phrase before the breadcrumbs). When I change a language those phrases remain the same. How would I make them change according to language?

I tried using a different part on the second language but the part is used on the first language as well.

Any ideas?

Thank you,
Dimitris

User avatar
Member
Member
ctaleck IPAGlobal - 5/7/2009 4:54:31 PM
   
RE:Different texts on diffrent languages of a site
Although I have not used them myself, I would try the "Localization macros" as detailed in Appendix A - Macro expressions of the Developer's Guide.

User avatar
Certified Developer 8
Certified Developer 8
rakopoulos - 5/8/2009 1:13:40 AM
   
RE:Different texts on diffrent languages of a site
I tried doing this:
{$Βρίσκεστε εδώ: |el-gr=Βρίσκεστε εδώ:|en-us=You are here: $}

It looks like the example on the Developer's Guide but nothing happens. I see the text only in Greek (even if I am on the English site).

Any ideas?

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 5/18/2009 5:36:38 AM
   
RE:Different texts on diffrent languages of a site
Hi Dimitris,

It seems you have mistake in your code, could you please try to use following code instead:
{$=Βρίσκεστε εδώ: |el-gr=Βρίσκεστε εδώ:|en-us=You are here: $}

Best Regards,

Martin Dobsicek

User avatar
Certified Developer 8
Certified Developer 8
rakopoulos - 5/18/2009 5:46:29 AM
   
RE:Different texts on diffrent languages of a site
Thank you Martin!

It worked!