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 204419 - IllegalArgumentException: unknown format type at
Summary: IllegalArgumentException: unknown format type at
Status: RESOLVED FIXED
Alias: None
Product: nblocalization
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Masaki Katakai
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-30 21:24 UTC by romilsonpc
Modified: 2011-11-01 08:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 182039


Attachments
stacktrace (5.90 KB, text/plain)
2011-10-30 21:24 UTC, romilsonpc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description romilsonpc 2011-10-30 21:24:49 UTC
Build: NetBeans IDE Dev (Build 201110300600)
VM: Java HotSpot(TM) Client VM, 17.0-b17, Java(TM) SE Runtime Environment, 1.6.0_21-b07
OS: Windows 7

User Comments:
romilsonpc: Fazendo pesquisa no projeto todo

GUEST: fazendo uma busca de um arguivo

GUEST: est
Comment 1 romilsonpc 2011-10-30 21:24:53 UTC
Created attachment 112576 [details]
stacktrace
Comment 2 Jaroslav Havlin 2011-10-31 11:07:02 UTC
Problem is caused by incorrect message format in localization files.

See JAR ide/modules/locale/org-netbeans-module-utilities_pt_BR.jar, file org/netbeans/modules/search/Bundle_pt_BR.properties, key TEXT_NUM_MATCHES_IN_NODE.

The MessageFormat keyword "choice" should not be translated:

Is:
({0} {0,escolha,1#correspond\u00eancia|1<correspond\u00eancias})

Should be:
({0} {0,choice,1#correspond\u00eancia|1<correspond\u00eancias})


Similarly in Russian locale (ru):

Is:
({0} {0,\u0432\u044b\u0431\u043e\u0440,1#\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435|1<\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439})

Should be:
({0} {0,choice,1#\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435|1<\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439})
Comment 3 Masaki Katakai 2011-11-01 06:42:14 UTC
Thank you very much for finding!

These have been fixed as

http://hg.netbeans.org/releases/l10n/rev/3a2010ce62d7
Comment 4 Jaroslav Havlin 2011-11-01 08:22:12 UTC
Thank you very much for fixing! :-)