I have my project which has two language (en,fi). But when I try to access a file which has a url without locale it points me to the en page. But onActiavat
I forced persistentLocale
to be fi if user has not selected any. This will make all my links in the page to point into fi pages, but not the current page. Any suggestions on how to make this happen. I don’t want browser language to be default or anything else. System will force the language on user login by reading user profile. But before login if user has not selected any language preference (in case of persistentLocale.get() == null
) I want to display fi pages.
Using Locale in Tapestry
646 Views Asked by dinesh707 At
2
Drop this in your module. This code decorates the ThreadLocale and it sets the threadLocale to your prefered locale if it's not set already (URLs without locale).