Bug 134407

Summary: DBCS3.2: properties file support issue in the Java editor
Product: [Eclipse Project] JDT Reporter: Masayuki Fuse <fuse>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: camle, Karice_McIntyre, kitlo, steven.wasleski
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screenshot none

Description Masayuki Fuse CLA 2006-04-02 04:48:12 EDT
Description: We often add "_<Lang id"> to resource bundle properties file, please refer at getBundle in the Java API ref. If some properties files are on the java project, hover and Ctrl+Click don't work.
 Build date: M6, IBM JRE 5.0 SR-1
 OS: WindowsXP Japanese sp2
        Steps to recreate problem:
        1-Make a HelloWorld, and perform Externalize String 
        2-copy message.properties to message_ja.properties and translate it in Japanese
        3-rename messgae.properties to message_en.properties
        4-In the Java editor, try to show the hover and Ctrl+Click
         
 Expected output:
On Japanese locale, message_ja.propertiesw file should be read
Comment 1 Masayuki Fuse CLA 2006-04-02 04:49:18 EDT
Created attachment 37471 [details]
screenshot
Comment 2 Dani Megert CLA 2006-04-02 12:49:59 EDT
The current support is targeted for people writing Java code. We have to make sure that two people who work with different locale work on the same properties file. Otherwise new keys get added to different properties files depending on which locale the developer works. Therefore the current link and hover support is linked to the properties file that has no local information in the name.

Also note that when renaming the file, the string externalization wizard won't work any longer: it will issue "Entry is missing in property file." warnings and create a new properties file again.
Comment 3 Dani Megert CLA 2006-04-02 12:50:30 EDT

*** This bug has been marked as a duplicate of 113080 ***