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 117227

Summary: I18N - duplicate key in same bundle file
Product: editor Reporter: Ashizawa Kazunori <kasha>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: RESOLVED FIXED    
Severity: blocker CC: jf4jbug
Priority: P3 Keywords: I18N
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Ashizawa Kazunori 2007-10-01 07:33:53 UTC
The same key appears multiple times in a bundle file.  If each
messages should be different or should be used independently,
then each messages should have different keys.  If the message
is used at a single place, then multiple occurrences should be
unified.

This duplication means that it's not known at runtime which
message will be used.  This issue also increases translation
cost (time and effort).

refactoring/api/src/org/netbeans/modules/refactoring/spi/impl/Bundle.properties:
LBL_Error=error
LBL_Error=Error
refactoring/java/src/org/netbeans/modules/refactoring/java/plugins/Bundle.properties:
ERR_InnerToOuter_FieldNameClash=Field named <b>{0}</b> already exists in this class.
ERR_InnerToOuter_FieldNameClash=Field named <b>{0}</b> already exists in this class.
ERR_InvalidIdentifier="{0}" is not a valid Java identifier.
ERR_InvalidIdentifier="{0}" is not a valid Java identifier.
ERR_MethodClash=Cannot rename. Method {0} with the same signature already exists in class {1}.
ERR_MethodClash=Cannot rename. Method {0} with the same signature already exists in class {1}.
Comment 1 Jan Becicka 2007-10-01 16:26:59 UTC
Checking in java/src/org/netbeans/modules/refactoring/java/plugins/Bundle.properties;
/cvs/refactoring/java/src/org/netbeans/modules/refactoring/java/plugins/Bundle.properties,v  <--  Bundle.properties
new revision: 1.23; previous revision: 1.22
done
Checking in api/src/org/netbeans/modules/refactoring/spi/impl/Bundle.properties;
/cvs/refactoring/api/src/org/netbeans/modules/refactoring/spi/impl/Bundle.properties,v  <--  Bundle.properties
new revision: 1.23; previous revision: 1.22
done