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 144760 - 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: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: rmatous
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2008-08-21 20:05 UTC by Ken Frank
Modified: 2008-08-28 06:34 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:05:33 UTC
a specific bundle file should not have either a :

duplicate key/value that is the same since costs more for
duplicate translation

or

same key with 2 different values

items below were found during scan of bundle files,
but don't know which module or which bundle in it - it
am assuming it can found in the source code


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

LBL_ConnectionName=Connection Name
LBL_ConnectionName=Connection Name:
Comment 1 Martin Krauskopf 2008-08-26 15:31:57 UTC
This script might helps:

  for i in `find php* -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 'php.project/src/org/netbeans/modules/php/project/connections/Bundle.properties' contains duplicates:
  LBL_ConnectionName

  Bundle 'php.refactoring/src/org/netbeans/modules/refactoring/php/findusages/Bundle.properties' contains duplicates:
  LBL_WhereUsed

  Bundle 'php.rt/src/org/netbeans/modules/php/rt/providers/impl/local/Bundle.properties' contains duplicates:
  LBL_DocumentRoot

Comment 2 Tomas Mysik 2008-08-26 15:58:20 UTC
> Bundle 'php.project/src/org/netbeans/modules/php/project/connections/Bundle.properties' contains duplicates:
> LBL_ConnectionName

Already fixed.

> Bundle 'php.refactoring/src/org/netbeans/modules/refactoring/php/findusages/Bundle.properties' contains duplicates:
> LBL_WhereUsed

Reassigning to Radek.

> Bundle 'php.rt/src/org/netbeans/modules/php/rt/providers/impl/local/Bundle.properties' contains duplicates:
> LBL_DocumentRoot

This module is obsolete and not part of the build.
Comment 4 Quality Engineering 2008-08-28 06:34:21 UTC
Integrated into 'main-golden', available in build *200808280201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/9b574f416777
User: Radek Matous <rmatous@netbeans.org>
Log: #144760 I18N - duplicate key/different value or multiple same key/value in bundle file