This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 60096

Summary: I18N - duplicate key and value in same bundle file
Product: javaee Reporter: Ken Frank <kfrank>
Component: Web ProjectAssignee: Radko Najman <rnajman>
Status: CLOSED FIXED    
Severity: blocker CC: jf4jbug, rkubacki
Priority: P2 Keywords: I18N
Version: 4.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: java class that does it

Description Ken Frank 2005-06-16 06:00:11 UTC
There are some modules that have, in the same bundle file, identical
keys but different values, so what user sees at runtime might vary.
There are also other duplicate key/same values in some same bundle files,
but these arent called out here probably should be reduced.
This list may not be complete so please check all bundle files for
dups.

org-netbeans-modules-web-project
 AD_jButtonManageLibraries=Manage Libraries Button
 AD_jButtonManageLibraries=N/A
Comment 1 Pavel Buzek 2005-07-25 13:46:18 UTC
Should be easy to detect and fix. 
Preferably find an ant task for cross checking bundles for duplicities and put
it into nbbuild.
Comment 2 _ rkubacki 2005-08-02 08:24:12 UTC
Should be enough to detect this from command line.

for i in `find web/project/build/classes -name Bundle.\* ` ; do echo $i; egrep
-v "^#" <$i | cut -d= -f1 | sort | uniq -c; done

gives some false alarms but it is easy to rule them out. BTW:
org/netbeans/modules/web/project/ui/customizer/Bundle.properties is really ugly
Comment 3 Pavel Buzek 2005-08-24 22:03:24 UTC
Created attachment 24200 [details]
java class that does it
Comment 4 Radko Najman 2005-09-07 14:59:19 UTC
Fixed.

Checking in Bundle.properties;
/cvs/web/project/src/org/netbeans/modules/web/project/ui/customizer/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.71; previous revision: 1.70
done
Comment 5 Radko Najman 2005-09-12 14:23:57 UTC
*** Issue 63940 has been marked as a duplicate of this issue. ***
Comment 6 Jaroslav Pospisil 2005-12-20 13:12:39 UTC
VERIFIED