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 144767 - I18N - duplicate key/different value or multiple same
Summary: I18N - duplicate key/different value or multiple same
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: pslechta
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2008-08-21 20:28 UTC by Ken Frank
Modified: 2008-08-23 05:26 UTC (History)
1 user (show)

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:28:51 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 might not  know which module or which bundle in it
if its not mentioned below but
am assuming it can found in the source code

 - please review all bundles to make sure no others like
these - if separate issues are needed for these, please file them:

error.property.notfound=Property ''{1}'' not found
on {0}
error.property.notfound=Property ''{1}'' not found
on type: {0}
glassfish-jspparser-2.0

UI_EJB_PROJECT_OPENED=An ejb application was openedwith target server {0}.
UI_EJB_PROJECT_OPENED=An ejb application was opened.
Target server: {0}.
org-netbeans-modules-j2ee-ejbjarproject

MNE_Browse=B
MNE_Browse=r
org-netbeans-modules-j2ee-persistence

ACSD_description=Description of this servlet
ACSD_description=Servlet Filter Description
org-netbeans-modules-j2ee-dd


MSG_RecommendationSetJdk14=Recommendation: JDK 1.4
and
Source Level 1.4 should be used in J2EE 1.4
projects.
MSG_RecommendationSetJdk14=<html>Recommendation: JDK
1.4 and Source Level 1.4 should be used in J2EE 1.4projects.
org-netbeans-modules-j2ee-common

TXT_Encoding=&Encoding\:
TXT_Encoding=&Encoding\:

org-netbeans-modules-j2ee-clientproject
LBL_Profiling=Starting {0} in Profile Mode
LBL_Profiling=Starting {0} in Profile Mode
org-netbeans-modules-glassfish-common
Comment 1 pslechta 2008-08-23 00:08:37 UTC
Cannot fix glassfish-jspparser-2.0, it is external library, please file bug against Glassfish project.

Otherwise fixed.

http://hg.netbeans.org/main/rev/eeb4b750340d

I have suspicion that there are several keys in bundles that are never used. It would be interesting to analyze it
(probably source code analysis is needed).
Comment 2 Ken Frank 2008-08-23 04:05:19 UTC
I'd be glad to try source code analysis of it if new definite patterns
that would be true for all of nb or perhaps its more of a case by case
basis where patterns would not help ?

as to bundle files with keys but no value, I don't know if sometimes
some are needed anyway or if there is even impact on translation
process if such keys are there since nothing is to be translated.

But certainly the unused key/values in bundle files would be helpful
to find out and to remove.

ken.frank@sun.com
Comment 3 Quality Engineering 2008-08-23 05:26:42 UTC
Integrated into 'main-golden', available in build *200808230201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/eeb4b750340d
User: pslechta@netbeans.org
Log: #144767 I18N - duplicate key/different value or multiple same