I added messages.en and messages.fi files to conf folder (deleted original messages file). Then I added En and Fi buttons together with a router call, which call following Action in my controller.
public static Result change(String langCode) {
currentLanguage = langCode;
changeLang(langCode);
return GO_HOME;
}
I use following structure in scala view files: @Messages("color.explanation"). I tried also importing internationalization in scala view files with following: @Messages.get("color.explanation").
I added the environment variable, which is mentioned in another stackoverflow article and another stackoverflow article. But this didn't help.
Translations work perfectly by clicking except Finnish special characters. I get "N�ytet��n" instead of "Näytetään". What can be the reason, do you know any solution to this problem?