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 92257

Summary: pt_BR: {$netbeans.autoupdate.language} is not rewrited correctly
Product: platform Reporter: Jan Lana <jl149544>
Component: AutoupdateAssignee: Jiri Rechtacek <jrechtacek>
Status: RESOLVED INVALID    
Severity: blocker Keywords: I18N
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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()