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 36678 - I18N - part of error msg can not be localized
Summary: I18N - part of error msg can not be localized
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Property Editors (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2003-10-20 05:30 UTC by mtsuruta
Modified: 2008-12-22 21:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mtsuruta 2003-10-20 05:30:46 UTC
Product:
IDE+sun_one_application_framework(build1015)

Part of message, "For input string", is not able
to be translated within following message, comes
up when inputting invalid value in
property sheet of Pagelet(Basic Tiled View).

"invalid value. The property Max Display Tiles
could not be set. Reason:For input string:"aa""
 
This message is bundled in following jar except
message "For input string" which comes from the
property editor in the Studio core.
/<ide installed dir>/lib/locale/openide_ja.jar
-
org/openide/explorer/propertysheet/Bundle_ja.properties
(line 25)

#PropertyDisplayer
--
# {0} - name of the property
# {1} - type (class) of the property (currently
unused)
# FMT_ErrorSettingProperty=Invalid value. The
property {1} could not be set. Reason:\n{0}
FMT_ErrorSettingProperty= THE PROPERTY{1} COULD
NOT BE SET.
REASON:\n{0}
<= Used capital letters to describe multibyte
characters.
Comment 1 _ tboudreau 2003-11-16 11:36:51 UTC
If I understand the issue correctly, the problem is that the error
string was including the message from the underlying exception, which
may or not be localized (in this case it is a NumberFormatException
defined in the JDK, which NetBeans will of course not be able to
localize).

In the current trunk, the underlying exception text is no longer
included in the error message, so this should no longer be a problem.
Comment 2 mtsuruta 2003-11-20 07:40:04 UTC
Verified in main trunk. The property key of "FMT_ErrorSettingProperty"
which was used to be set underlying exception message is no longer
used in the main trunk under following directory.

/org/openide/explorer/propertysheet/*

Tim, Oono-san, thank you for your advice.