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.
Summary: | I18N - feature descriptions not from bundle in ja locale | ||
---|---|---|---|
Product: | installer | Reporter: | Ken Frank <kfrank> |
Component: | NBI | Assignee: | dlipin <dlipin> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | Keywords: | I18N |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Ken Frank
2007-10-28 05:31:40 UTC
The problems is actually that getting the localized message works not as good as expected. We store the specific localized messages (description, name, some properties) as a hashmap <Locale,String>. We put them there for each of the bundled locale : map.put(default, "default name"); map.put(ja,"ja name"); map.put(zh_CN,"zh_CN name"); When we get the localized messages we just try to do map.get(Locale) : if we are actually in ja_JP locale (not just ja) then we receive message from the default locale which is wrong. related problem here: we put the default message in this map using Locale.getDefault() but we don`t think here that Locale.getDefault() can be the same as Locale("zh","CN"). In that case only one message would exist in the map. Possible the right variant of storing the default message would be using object Locale("","","")... Hope that is fixed now. Checking in product/components/Group.java; /cvs/nbi/engine/src/org/netbeans/installer/product/RegistryNode.java,v <-- RegistryNode.java new revision: 1.21; previous revision: 1.20 done Checking in product/components/Group.java; /cvs/nbi/engine/src/org/netbeans/installer/product/components/Group.java,v <-- Group.java new revision: 1.7; previous revision: 1.6 done Checking in utils/StringUtils.java; /cvs/nbi/engine/src/org/netbeans/installer/utils/StringUtils.java,v <-- StringUtils.java new revision: 1.44; previous revision: 1.43 done Checking in utils/XMLUtils.java; /cvs/nbi/engine/src/org/netbeans/installer/utils/XMLUtils.java,v <-- XMLUtils.java new revision: 1.47; previous revision: 1.46 done Checking in utils/helper/Feature.java; /cvs/nbi/engine/src/org/netbeans/installer/utils/helper/Feature.java,v <-- Feature.java new revision: 1.4; previous revision: 1.3 done Checking in utils/system/shortcut/Shortcut.java; /cvs/nbi/engine/src/org/netbeans/installer/utils/system/shortcut/Shortcut.java,v <-- Shortcut.java new revision: 1.6; previous revision: 1.5 done it looks good so far on solaris; will do on windows soon. will not do on mac now since that will await the separate mac installer. ken.frank@sun.com looks ok on windows in the ja and zh (PRC) regional settings. will verify. ken.frank@sun.com |