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 176509 - IllegalArgumentException: can't parse argument number 0/
Summary: IllegalArgumentException: can't parse argument number 0/
Status: RESOLVED FIXED
Alias: None
Product: nblocalization
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: issues@nblocalization
URL:
Keywords:
: 185699 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-11 04:49 UTC by msh1
Modified: 2010-06-04 13:24 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 161810


Attachments
stacktrace (2.72 KB, text/plain)
2009-11-11 04:49 UTC, msh1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description msh1 2009-11-11 04:49:32 UTC
Build: NetBeans IDE 6.8 Beta (Build 200910221137)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Windows XP, 5.1, x86

Stacktrace: 
java.lang.IllegalArgumentException: can't parse argument number 0/
        at java.text.MessageFormat.makeFormat(MessageFormat.java:1339)
        at java.text.MessageFormat.applyPattern(MessageFormat.java:458)
        at java.text.MessageFormat.<init>(MessageFormat.java:350)
        at java.text.MessageFormat.format(MessageFormat.java:811)
        at org.openide.util.NbBundle.getMessage(NbBundle.java:728)
        at org.openide.util.NbBundle.getMessage(NbBundle.java:650)
Comment 1 msh1 2009-11-11 04:49:35 UTC
Created attachment 90786 [details]
stacktrace
Comment 2 dlipin 2009-11-11 07:20:14 UTC
Seems to be the issue in "ar" translation.

Masaki, could you please check?

I see at least the following strings that looks weird:
http://hg.netbeans.org/main/l10n/file/tip/src/ar/platform11/autoupdate-ui/autoupdate-ui/org/netbeans/modules/autoupdate/ui/actions/Bundle_ar.properties
keys:
UnitTab_TooltipCheckBox_UPDATE
UnitTab_TooltipCheckBox_INSTALLED
UnitTab_TooltipCheckBox_AVAILABLE
UnitTab_TooltipCheckBox_LOCAL

http://hg.netbeans.org/main/l10n/file/tip/src/ar/platform11/autoupdate-ui/autoupdate-ui/org/netbeans/modules/autoupdate/ui/Bundle_ar.properties
keys:
AutoupdateCheckScheduler_UpdatesFound_ToolTip
AutoupdateCheckScheduler_UpdateFound_ToolTip

Probably there are some more issues with improper "{0}" usage in other files so please check the whole "ar" translation as well.

Do we have scripts to catch such issues before integration to the repository?
Comment 3 Exceptions Reporter 2010-05-18 13:43:57 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=161810
Comment 4 Masaki Katakai 2010-05-18 13:55:28 UTC
Thank you Dmitry,

Yes, we have a script. We will fix in 6.9.
Comment 5 Masaki Katakai 2010-06-04 13:21:48 UTC
Fixed in http://hg.netbeans.org/main/l10n/rev/2ea61c45e9b6 at 6.9.
Comment 6 Masaki Katakai 2010-06-04 13:24:25 UTC
*** Bug 183409 has been marked as a duplicate of this bug. ***
Comment 7 Masaki Katakai 2010-06-04 13:24:53 UTC
*** Bug 185699 has been marked as a duplicate of this bug. ***