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 - I18N - duplicate key and value in same bundle file
Summary: I18N - duplicate key and value in same bundle file
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 4.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Radko Najman
URL:
Keywords: I18N
: 63940 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-16 06:00 UTC by Ken Frank
Modified: 2006-03-24 12:53 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
java class that does it (2.27 KB, text/plain)
2005-08-24 22:03 UTC, Pavel Buzek
Details

Note You need to log in before you can comment on or make changes to this bug.
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