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 113227 - I18N - in options -> code templates - some messages/labels situations
Summary: I18N - in options -> code templates - some messages/labels situations
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: I18N
: 110962 (view as bug list)
Depends on:
Blocks: 110962 113231
  Show dependency tree
 
Reported: 2007-08-20 17:36 UTC by Ken Frank
Modified: 2007-11-05 13:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
image (103.32 KB, image/gif)
2007-08-20 18:10 UTC, Ken Frank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2007-08-20 17:36:54 UTC
some possible i18n situations:

 1. some choices of languages show no templates defined as mentioned in 110962 about DTD - is that ok ?
(want to be sure its not something needed to be localized that we don't know about)


2. for those with templates - is sometimes the description section empty ? 
that happens in ja locale
with pseudo localized; want to make sure its something that might happen regardless of locale.



3. when the templates window first comes up, if not invoked before in this session,
the col names do not come from pseudo localized bundles; but when choosing some other language
choice than default one chosen, it does show the col names from localized,  and then it keeps showing from pseudo
localized.  I've not seen this happen before in other parts of ide.
Comment 1 Ken Frank 2007-08-20 18:08:57 UTC
attached is gif showing from item 3 below - about the col names not coming from localized
bundles on first invocation of ide and showing editor options - templates
but after choosing some other lang dropdown, the columns do show from localized bundles.

also see 113231 on that the col headers of templates cannot be resized, even in en locale.

ken.frank@sun.com
Comment 2 Ken Frank 2007-08-20 18:10:12 UTC
Created attachment 46894 [details]
image
Comment 3 Vitezslav Stejskal 2007-08-21 10:40:41 UTC
re #1 - yes, there can be languages that have no code templates. I am not sure which ones define what templates, but as
a rule of thumb if a language has templates in EN locale it has to have the same templates in any other locale

re #2 - most of the code template don't have descriptions. AFAIK there is only a few of them in Java language that have
descriptions. Again, if a template has a description it has to have a localized version of this description. For
templates without descriptions, there are no bundle keys and there is nothing to localize.

re #3 - clearly a defect
Comment 4 Ken Frank 2007-10-03 19:35:54 UTC
as mentioned in 110962, i think DTD does have templates shown; I see them when choose other editor
then go back to DTD, then the listings appear.

ken.frank@sun.com
Comment 5 Vitezslav Stejskal 2007-10-08 16:42:57 UTC
Checking in CodeTemplatesPanel.java;
/cvs/editor/options/src/org/netbeans/modules/options/codetemplates/CodeTemplatesPanel.java,v  <--  CodeTemplatesPanel.java
new revision: 1.32; previous revision: 1.31
done
Checking in CodeTemplatesModel.java;
/cvs/editor/options/src/org/netbeans/modules/options/codetemplates/CodeTemplatesModel.java,v  <--  CodeTemplatesModel.java
new revision: 1.16; previous revision: 1.15
done
Comment 6 Vitezslav Stejskal 2007-10-08 16:46:25 UTC
*** Issue 110962 has been marked as a duplicate of this issue. ***
Comment 7 Ken Frank 2007-10-24 21:24:46 UTC
verifying.

ken.frank@sun.com