Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Alternate Language Link

Started by Casper Labuschagne 9 years ago · 3 replies · 699 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 Jerry Hunt, 3 days ago
2 70 5 hours ago
General · by pamtbaau, 10 hours ago
1 45 9 hours ago
General · by Andy Miller, 22 hours ago
0 43 22 hours ago
General · by Marcel, 12 months ago
6 341 4 days ago
General · by Duc , 5 days ago
3 35 5 days ago