Can't setup Portuguese language code


Portuguese ISO language code is “pt”. In Kirby v2, the translation file was always created as “pt.php” and the language code was always “pt”.

In V3, when I create a new language for European Portuguese, I need to force the language code to “pt” instead of the suggested “po”.

However, when I edit the newly created language, the code is back to “po”.
And if I try to change something, I got an error message when I click save…

Any ideas?




Just for information: I’ve created the issue Error on saving custom language #1381.
It’s marked as a bug.

At this time, I don’t know if it happens only for the Portuguese language.

1 Like