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 152263 - I18N - UI label and template code use the same message
Summary: I18N - UI label and template code use the same message
Status: RESOLVED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Sergey Petrov
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2008-11-04 08:00 UTC by Ashizawa Kazunori
Modified: 2009-02-19 23:14 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 2008-11-04 08:00:41 UTC
I18N - UI label and template code use the same message

6.1 also has the same problem.

uml.codegen/src/org/netbeans/modules/uml/codegen/ui/Bundle.properties
VAL_ElementType_Class=Class
(just for example, other messages also have the same issue)

This message is used in two places (at least).

1. Tools > Options > UML
   Templates tab, select Basic Class for Domain Templates.
   "Class" in Element Type list comes from this message.

2. When you add a template for Class,
   ${USERDIR}/.uml/config/TemplateFamilies.etc is updated.
   The following "Class" comes from this message.
      <modelElement>Class</modelElement>

As UI label, the message should be localized.  The term itself
("Class" for this example) are widely localized throughout the
NetBeans IDE.  But if it is localized in TemplateFamilies.etc,
code generation fails.
Comment 1 Ken Frank 2008-11-04 17:23:10 UTC
This might not be an issue, since in uml functionality, certain words in certain usages
of them are not meant to be translated, and at least in past, the word Class was viewed
as a uml keyword and not meant to be tranlated, since it could confuse users who were used
to having it in english as keyword; it would be like not translating the programming
words "for" or "class"

developers can clarify if this applies to this situation.

also, in options, uml. templates there are some known and open issues on
some labels or msgs not coming from bundle files.

ken.frank@sun.com
Comment 2 Ashizawa Kazunori 2008-11-05 01:51:30 UTC
Thank you for your comment, and I think you are misinformed.

Class, Interface, Enumeration, and etc. in UML context are
really localizable, and are almost always localized.  (talking
about user visible area, not internal representation)

You can find localized terminology database here:
http://www.umtp-japan.org/modules/d3downloads/index.php?page=visit&cid=1&lid=1
All terms are well localized.  This site also provides
terminology database for ko and zh.

You can also take a look at UML topic on ja.wikipedia.org
  http://ja.wikipedia.org/wiki/統一モデリング言語
"統一モデリング言語" means "Unified Modeling Language", UML.
Here, you can not find the term "Class Diagram", which is
described as "クラス図".

I have several books on UML, and all use localized terminology.

> and at least in past, the word Class was viewed as a uml keyword
> and not meant to be tranlated, since it could confuse users who
> were used to having it in english as keyword;

As I wrote above, you are misinformed.  Most UML users here use
localized terminology.  They do not recognize the word "Class"
as a keyword.

Thanks
Comment 3 Sergey Petrov 2008-11-25 18:10:48 UTC
e27ba7eb51d8
Comment 4 Quality Engineering 2008-11-27 05:29:26 UTC
Integrated into 'main-golden', will be available in build *200811270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e27ba7eb51d8
User: sergeyp@netbeans.org
Log: fix #152263 it's now possible to localize items in template combobox. #??? - also fixed npe in getWindow.