Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Alternate Language Link

Started by Casper Labuschagne 9 years ago · 3 replies · 1008 views
9 years ago

Hi,

This question is related to the problem on /forum/general/base-url-again-t7391

Is there a plugin or method to easily implement a link to switch to the alternate language for that page. In other words something that says read this page in xyz language?

I can create absolute links http://mysite/en/mypage but that is not ideal in a localhost vs production server environment. And it is tedious to do this on every page and error prone.

It seems like a plugin needs to exist to do this?

Thanks in advance

9 years ago

Thanks a million, I will try it immediately and get it working.

Regarding the flags, it is ok for English and German or English and French. But in South Africa, we have one flag and 11 different languages. I will figure something out...

9 years ago

Thanks, it is exactly what I wanted. I ended up using the LangSwitcher plugin that displays the available languages as text links only, since all 11 South African languages are supported by only one flag.

Suggested topics

Topic Participants Replies Views Activity
General · by jeremycherfas, 4 days ago
3 95 2 hours ago
General · by Old Man Umby, 2 days ago
1 60 2 days ago
General · by Sebastian, 4 days ago
1 81 4 days ago
General · by Andy Miller, 2 weeks ago
0 216 2 weeks ago
General · by ready-4-IT, 6 months ago
1 716 3 weeks ago