You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Daniel Kleine-Albers <dk...@dka-edv.net> on 2008/11/30 12:22:04 UTC
[T5] Localization problem (PageTester) on Linux
Hi everyone,
I'm experiencing a strange behaviour regarding localization. As usual
I've got two localization catalogs in my WEB-INF directory:
app.properties
app_de.properties
I've got some unit tests using the PageTester initialized like this:
tester = new PageTester(appPackage, appName, "src/main/webapp");
tester.setPreferedLanguage(Locale.GERMANY);
When running the tests and rendering a page with a localized message
in it, on my development machine (running Mac OS X) the german message
is rendered as expected.
However on the integration machine (using Linux) only [[missing key:
*]] errors are rendered in the unit tests (not even falling back to
the default catalog). Any ideas why this happens? (Java and Maven
versions are identical)
Cheers
Daniel
Re: [T5] Localization problem (PageTester) on Linux
Posted by Daniel Kleine-Albers <dk...@dka-edv.net>.
Hi guys,
solved it myself.
I had the appName for the PageTester as "App". After changing it to
"app" everything works as expected on both platforms. However I wonder
if this is a bug (as Mac OS X is case-sensitive as well) or if this is
the expected behaviour?
Thanks,
Daniel
On 30.11.2008, at 12:22, Daniel Kleine-Albers wrote:
> Hi everyone,
>
> I'm experiencing a strange behaviour regarding localization. As
> usual I've got two localization catalogs in my WEB-INF directory:
>
> app.properties
> app_de.properties
>
> I've got some unit tests using the PageTester initialized like this:
> tester = new PageTester(appPackage, appName, "src/main/webapp");
> tester.setPreferedLanguage(Locale.GERMANY);
>
> When running the tests and rendering a page with a localized message
> in it, on my development machine (running Mac OS X) the german
> message is rendered as expected.
>
> However on the integration machine (using Linux) only [[missing key:
> *]] errors are rendered in the unit tests (not even falling back to
> the default catalog). Any ideas why this happens? (Java and Maven
> versions are identical)
>
> Cheers
> Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org