Bug 92257 - pt_BR: {$netbeans.autoupdate.language} is not rewrited correctly
pt_BR: {$netbeans.autoupdate.language} is not rewrited correctly
Status: RESOLVED INVALID
Product: platform
Classification: Unclassified
Component: Autoupdate
5.x
All All
: P2 (vote)
: 5.x
Assigned To: Jiri Rechtacek
issues@platform
: I18N
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-10 19:22 UTC by Jan Lana
Modified: 2007-01-11 10:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lana 2007-01-10 19:22:37 UTC
Locele: pt_BR (brazilian portugues)

{$netbeans.autoupdate.language} in autoupdate url is rewrited to 'pt' instead of
'pt_BR'.

It is big problem for shortfin (aka visualweb pack) which is localized to pt_BR
but not to pt
Comment 1 Jiri Rechtacek 2007-01-11 09:08:51 UTC
The property {$netbeans.autoupdate.language} only reads the property
java.util.Locale.getDefault().getLanguage(), no other logic nor modification.
make sure that IDE is started with correct locale, if I start IDE with --locale
pt_Br option then the {$netbeans.autoupdate.language} is set correctly.
Comment 2 Jan Lana 2007-01-11 10:56:21 UTC
it is the problem! Locale.getLanguage() returns language name, not language
variant. We need the variant if it set, because Portuguese and Brazillian
Portuguese are different. The property should read
java.util.Locale.getDefault().toString()


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo