Bug 83351 - matisse - I18N of name properties should be configurable
matisse - I18N of name properties should be configurable
Status: NEW
Product: guibuilder
Classification: Unclassified
Component: Code
6.x
All Windows XP
: P2 (vote)
: 6.x
Assigned To: issues@guibuilder
issues@guibuilder
sp_review_61
: I18N
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-08-24 10:20 UTC by arittner
Modified: 2008-04-28 11:45 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arittner 2006-08-24 10:20:49 UTC
Hello!

The "Automatic I18N" internationalize all litaral strings including the name
properties. But the name property is typical a "internal litaral" (from a
programmers perspective). Not end user strings. Is it possible to customize this
behavior? 

best regards,
  josh.
Comment 1 Tomas Pavek 2006-08-24 10:37:55 UTC
You can check "Do not internationalize this string" in the property editor.

But you perhaps want to be able to specify that certain properties should not 
be internationalized by default.

Maybe we could at least hardcode this behavior for the 'name' property of 
visual components.
Comment 2 arittner 2006-08-24 11:58:17 UTC
Hello Tomas!

Thank your for your hint. Well, I create "big" data-aware forms with many input
fields. The connection between the DB and the input fields is the literal in the
"name" property. It's very time consuming to change any component property to
"Do not internationalize this string".

I mark all input field and click on the (...) button from the name property and
get a NPE:

java.lang.NullPointerException
	at
org.netbeans.beaninfo.editors.StringCustomEditor.<init>(StringCustomEditor.java:61)
	at org.netbeans.beaninfo.editors.StringEditor.getCustomEditor(StringEditor.java:68)
	at org.netbeans.modules.form.FormCustomEditor.<init>(FormCustomEditor.java:170)
	at
org.netbeans.modules.form.FormPropertyEditor.getCustomEditor(FormPropertyEditor.java:260)
	at
org.openide.explorer.propertysheet.PropUtils$DifferentValuesEditor.getCustomEditor(PropUtils.java:1688)
	at
org.openide.explorer.propertysheet.PropertyDialogManager.<init>(PropertyDialogManager.java:112)
	at
org.openide.explorer.propertysheet.CustomEditorAction.actionPerformed(CustomEditorAction.java:194)
	at org.openide.explorer.propertysheet.SheetTable.editCellAt(SheetTable.java:963)
	at
javax.swing.plaf.basic.BasicTableUI$Handler.adjustFocusAndSelection(BasicTableUI.java:953)
	at javax.swing.plaf.basic.BasicTableUI$Handler.mousePressed(BasicTableUI.java:920)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:222)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
	at java.awt.Component.processMouseEvent(Component.java:5485)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at
org.openide.explorer.propertysheet.SheetTable.processMouseEvent(SheetTable.java:696)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3889)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

So it's impossible to change all name-property "Do not internationalize this
string"-Checkboxes in a fly. I need to change any singe component property. 

Hardcoding is IMHO a possible solution, but it should be configuarable in the
Tools/Options. 

Thank you and best regards,
  josh.

I use NB 6.0 M2 with jdk 1.4.2 and swing-layout 1.0.1
Comment 3 Tomas Pavek 2006-08-25 11:24:29 UTC
Yes, you can only set "Do not internationalize this string" one by one. 
Regardless the exception, you can't multi-select more components because each 
has a different name I guess. With multi-selection you set the same value to 
all the properties.

As for the exception, could file a separate issue for it? Thanks.


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