Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 303779

Summary: RWT.NLS resolves to wrong locale
Product: [RT] RAP Reporter: Ralf Ebert <ralf>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
example project none

Description Ralf Ebert CLA 2010-02-24 10:59:53 EST
Build Identifier: RAP 1.3.0.20100201-1223

Run the attached sample application with browser locale "en". It will show "en PLZ" showing that it resolved to "messages_de.properties" and not to "messages.properties".

Reproducible: Always
Comment 1 Ralf Ebert CLA 2010-02-24 11:00:17 EST
Created attachment 160082 [details]
example project
Comment 2 Ralf Ebert CLA 2010-02-24 11:09:20 EST
This depends on the '-nl' flag, if the application locale matches the default locale of the 'messages.properties', I get correct behaviour. Is this intentional?
Comment 3 RĂ¼diger Herrmann CLA 2010-03-03 04:47:43 EST
This behavior is explained in the JavaDoc of the NLS class.
  BUNDLE_NAME contains the name of a properties file (without file extension)
  that follows the conventions of standard {@link ResourceBundle} property
  files. For each field (in the example 'MyMessage') there has to be a

Please reopen if you disagree.