[T5] Localization problem (PageTester) on Linux

2008-11-30 Thread Daniel Kleine-Albers

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

2008-11-30 Thread Daniel Kleine-Albers

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]