ZenphotoCMS Forum
Custom Links - Multilingual - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Translating (https://forum.zenphoto.org/forum-8.html)
+--- Thread: Custom Links - Multilingual (/thread-11907.html)



Custom Links - Multilingual - Ralf - 01-03-2015

Hi,

maybe someone can help me here:
I have added a link to the 'Impressum' to the footer of my site:
http://ralf-kerkhoff.de
which looks like:
'href="http://ralf-kerkhoff.de/seiten/impressum">'

Gettext works fine. In german 'Impressum' is displayed - if you choose english as the language 'Legal Notice' is displayed.

My problem is:
the link itself points to the german page 'Impressum'. How must I modify the link that if site language is set to english the link points to the english version of the page?

I did not find a hint in the documentation.

Ralf




Custom Links - Multilingual - acrylian - 01-03-2015

This is by the way no custom link actually as it is a Zenpage page. A custom link would be an outside link somewhere else technically.

If you added the link statically you would have to check the locale manually. Try the actual template functions for Zenpage pages: get/printPageURL().




Custom Links - Multilingual - Ralf - 01-03-2015

Hi Acrylian,

after 2 coffees it was pretty simple.
Note to myself:
Dink a few coffees before start thinking:-)
The problöem was the domain name in front of the link.
Replacing:
http://ralf-kerkhoff.de/seiten/impressum
with
/seiten/impressum

works without problems.




Custom Links - Multilingual - acrylian - 01-03-2015

Yeah, coffee helps :-)