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 117228

Summary: I18N - duplicate key in same bundle file
Product: ruby Reporter: Ashizawa Kazunori <kasha>
Component: CodeAssignee: Martin Krauskopf <mkrauskopf>
Status: RESOLVED FIXED    
Severity: blocker CC: jf4jbug
Priority: P3 Keywords: I18N, SIMPLEFIX
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Ashizawa Kazunori 2007-10-01 07:35:17 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).

ruby/railsprojects/src/org/netbeans/modules/ruby/railsprojects/ui/wizards/Bundle.properties:
TXT_JavaApplication=RubyApplication{0}
TXT_JavaApplication=RailsApplication{0}
ruby/refactoring/src/org/netbeans/modules/refactoring/ruby/plugins/Bundle.properties:
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 Martin Krauskopf 2007-10-26 14:08:46 UTC
Yes, bundles need some clean-up. They are copy-pasted from Java projects. Mentioned problem fixed.

railsprojects/src/org/netbeans/modules/ruby/railsprojects/ui/wizards/Bundle.properties;
new revision: 1.15; previous revision: 1.14
railsprojects/src/org/netbeans/modules/ruby/railsprojects/ui/wizards/PanelProjectLocationExtSrc.java;
new revision: 1.3; previous revision: 1.2
railsprojects/src/org/netbeans/modules/ruby/railsprojects/ui/wizards/PanelProjectLocationVisual.java;
new revision: 1.6; previous revision: 1.5
refactoring/src/org/netbeans/modules/refactoring/ruby/plugins/Bundle.properties;
new revision: 1.4; previous revision: 1.3