Issue with rainlab translate URl

Hello,

There is an issue with the translate plugin.

I have the following page

url = "/schulungen"
layout = "default"
title = "pos Shop System"
meta_title = "Welcome"

[viewBag]
localeUrl[en] = "/trainings"

if i go to

/schulungen 

it works. same goes for

/en/schulungen 

but the following gives me a 404.

/en/trainings
/trainings

any help will be appreciated.

UPDATE:

it has only problems with EN (english) also with en-gb

regards,
Ibrar

I find the issue.

The prefix β€œen” is reserved for en-us.

I was using the same prefix for en-gb.

Normally the united stated iso 4 Alpha is en-us.

The International english is en.

@daft may be in future versions this can be improved.

Hey @ibrarartisan

In your site definition, scroll to the bottom and select Use Custom, then enter en-us as the locale.

Hopefully this helps.

1 Like