I don't understand your question. But if you change locale using PersistentLocale service it will be persisted in URL and be changed for next page request. The new localale should also be configured in "tapestry.supported-locales" symbol. If you want to chnge locale just for this request you can use ThreadLocale#setLocale(...) method. If you need both variants with safety and advantage of finding the closest supported locale use LocalizationSetter#setLocaleFromLocaleName("en")
All message catalogs will be accessed by tapestry with right choose. Just use .properties for default locale, _ro.properties to override properties for ro locale, _en.properties for en locale. If you want to change locale to default (not ro) use Locale.ROOT constant for java 6, and new Locale("") for older versions. On Mon, Nov 19, 2012 at 3:10 PM, o3005659 <o3005...@rtrtr.com> wrote: > I have made localization ro and en. Ro is by default, however I didn't > extend > my property files with_ro extension, but I simply put > thisispropertyfile.properties. Now I have implemented for English > > public String onActionFromGoEnglish() > { > persistentLocale.set(new Locale("en")); > return null; > } > > however, I don't know how to access property files that have no _ro > extension in example when user switches from en to ro. What to points my > persistenLocale then? > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Changing-to-default-localization-without-extension-for-the-language-tp5718092.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- BR Ivan