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 144759 - I18N - duplicate key/different value or multiple same key/value in bundle file
Summary: I18N - duplicate key/different value or multiple same key/value in bundle file
Status: RESOLVED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: martin_adamek
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2008-08-21 20:00 UTC by Ken Frank
Modified: 2008-10-30 14:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2008-08-21 20:00:59 UTC
a specific bundle files should not have either 
duplicate key/value that is the same since costs more for duplicate translation
or

same key with 2 different values 

 - please review all bundles to make sure no others like these

org-netbeans-modules-groovy-support

 LBL_loaderName=Groovy Objects
 LBL_loaderName=Scripting Objects
Comment 1 Martin Krauskopf 2008-08-26 15:42:42 UTC
This script might helps:

  for i in `find groovy* -name Bundle.properties | grep \/src\/`; do
    r=`cat "$i" | grep -v '^#.*' | sed -e 's/\(.*\)=.*/\1/' | sort | uniq -d`
    [ -n "$r" ] && (echo "Bundle '$i' contains duplicates:$r\n")
  done

run it from hg root. The output on the current trunk is:

  Bundle 'groovy.refactoring/src/org/netbeans/modules/groovy/refactoring/ui/Bundle.properties' contains duplicates:
  ACSD_usages
  LBL_FindUsages

  Bundle 'groovy.support/src/org/netbeans/modules/groovy/support/Bundle.properties' contains duplicates:
  LBL_loaderName
Comment 2 Ken Frank 2008-08-26 17:44:01 UTC
Martin,

thanks for the script !

ken.frank@sun.com
Comment 3 martin_adamek 2008-09-18 18:03:50 UTC
Fixed.
http://hg.netbeans.org/main/rev/d2b00843598e
Comment 4 Quality Engineering 2008-09-19 17:26:30 UTC
Integrated into 'main-golden', will be available in build *200809191401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d2b00843598e
User: Martin Adamek <martin_adamek@netbeans.org>
Log: #144759: I18N - duplicate key/different value or multiple same key/value in bundle file