You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by mu...@fantasymail.de on 2007/06/29 15:49:19 UTC

[T4] Changing the Locale for subdomains

I have changed the method getLocale in BaseEngine:

@Override
public Locale getLocale() {

String domain = this.getInfrastructure().getRequest().getServerName();
		
		
	if (domain.startsWith("en.")){
		
		return new Locale("en", "");
	}
	else {
		return new Locale("de", "");
	}
}




If I access www.domain.com I get the MyApplication_en.properties and
with en.domain.com as well.....the MyApplication.properties are never picked.


Any ideas?

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org