Have you seen our video tutorials? Check 'em out!

Change the locale on the front page

cchinopoulos - 3 weeks ago

How to change the locale manually on the front page in order to see the site in other languages?

Answer

ryanthompson - 3 weeks ago

There are a couple ways you can do this - check out the control panel in the bottom - the dropdown (note the URL it loads). You can do that:

yoursite.com/?_locale=fr

This will reload the main path but set a session to that locale.

You can also use URI hints:

yoursite.com/fr/example // prefixes will remain in calculated links

And lastly you can use subdomain hints:

fr.yoursite.com/example

Hope this helps!

ryanthompson - 3 weeks ago

There are a couple ways you can do this - check out the control panel in the bottom - the dropdown (note the URL it loads). You can do that:

yoursite.com/?_locale=fr

This will reload the main path but set a session to that locale.

You can also use URI hints:

yoursite.com/fr/example // prefixes will remain in calculated links

And lastly you can use subdomain hints:

fr.yoursite.com/example

Hope this helps!

cchinopoulos - 3 weeks ago

Never mind i found it!

cchinopoulos - 3 weeks ago

THX

ryanthompson - 3 weeks ago

Mark as answered if you would helps others find information faster ^_^

cchinopoulos - 3 weeks ago

This applies to subdomains also like: sudomain.domain.com/fr/pagename ?

ryanthompson - 3 weeks ago

Indeed @cchinopoulos should work just the same

cchinopoulos - 3 weeks ago

I'm doing something wrong here...

I've managed to change the locale by using the '?_locale=el' http://pyro.chinopoulos.com/demo?_locale=el http://pyro.chinopoulos.com/demo?_locale=en

...but URI hint is not working http://pyro.chinopoulos.com/el/demo http://pyro.chinopoulos.com/en/demo

I use pyro 3.1 clean installation

cchinopoulos - 3 weeks ago

BTW my php version is 7.0.12