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 117224 - I18N - duplicate key in same bundle file
Summary: I18N - duplicate key in same bundle file
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-10-01 07:30 UTC by Ashizawa Kazunori
Modified: 2007-10-01 07:58 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 Ashizawa Kazunori 2007-10-01 07:30:44 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).

projects/projectui/src/org/netbeans/modules/project/ui/actions/Bundle.properties:
LBL_CleanProjectAction_Name=Clean {0,choice,0#Project|1#"{1}" Project|1<{0} Projects}
LBL_CleanProjectAction_Name=Clean {0,choice,0#Project|1#"{1}" Project|1<{0} Projects}
projects/projectuiapi/src/org/netbeans/modules/project/uiapi/Bundle.properties:
ACSD_Project_Folder=N/A
ACSD_Project_Folder=N/A
ACSD_Project_Name=N/A
ACSD_Project_Name=N/A
ACSN_Project_Folder=Project Folder
ACSN_Project_Folder=Project Folder
ACSN_Project_Name=Project Name
ACSN_Project_Name=Project Name
Comment 1 Milos Kleint 2007-10-01 07:58:45 UTC
done.

Checking in Bundle.properties;
/cvs/projects/projectuiapi/src/org/netbeans/modules/project/uiapi/Bundle.properties,v  <--  Bundle.properties
new revision: 1.19; previous revision: 1.18
Checking in Bundle.properties;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/Bundle.properties,v  <--  Bundle.properties
new revision: 1.41; previous revision: 1.40