GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.
Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
by xristy » Wed Aug 13, 2008 3:32 pm
Hello,
I am using GWT-Designer 5.1.0 and need to create a locale for the Tibetan language in the Peoples Republic of China. It would be CN_bo. The problem is that I don't see how to define this since it doesn't seem to be provided in the language drop down of the "New Locale" dialogue. The current CLDR shows CN_bo, IN_bo and NP_bo as reasonable locales. I note that GWT-Designer 5.1.0 also does not include NP (Nepal) among the possible country codes
Thank you.
-
xristy
-
- Posts: 33
- Joined: Mon Aug 04, 2008 5:31 am
by Konstantin.Scheglov » Thu Aug 14, 2008 1:55 am
xristy wrote:Hello,
I am using GWT-Designer 5.1.0 and need to create a locale for the Tibetan language in the Peoples Republic of China. It would be CN_bo. The problem is that I don't see how to define this since it doesn't seem to be provided in the language drop down of the "New Locale" dialogue. The current CLDR shows CN_bo, IN_bo and NP_bo as reasonable locales. I note that GWT-Designer 5.1.0 also does not include NP (Nepal) among the possible country codes
Thank you.
Designer uses Locale.getAvailableLocales(), and it does not include CN_bo.
In latest build you will find in language/country combos all available items, including bo and NP.
-
Konstantin.Scheglov
- Moderator
-
- Posts: 186
- Joined: Tue Oct 18, 2005 8:11 pm
- Location: Russian Federation, Lipetsk
-
by xristy » Thu Aug 14, 2008 6:42 am
I downloaded and installed 5.1.0.200808140727 (Mac OS X). I see that bo - Tibetan and NP are now in the languages and countries as you indicated; however, when I tried to create a new locale (bo_CN) I get the following error:
- Code: Select all
!ENTRY com.swtdesigner 4 4 2008-08-14 09:55:04.823
!MESSAGE Designer [6.7.0.200808140649]: java.lang.NullPointerException
Product: GWT Designer Subscription
Version: 5.1.0.200808140727
Expected: Eclipse 3.4
Actual: Eclipse 3.4.0.v20080512
Actual Eclipse Build Name:
Actual Eclipse Build ID: I20080617-2000
IDE Actual Name: Eclipse
IDE Actual Version: 3.3.100.v200806172000
IDE Actual NL: en_US
Serial Number: GWTDesignerSubscription-01673-4891
Activation Key: GWTDesignerSubscription-DD0UF-KM1AZ-9WS3E
Physical Address: 00-1B-63-96-CB-39, HardwareAddress[00-1C-B3-FF-FE-87-39-8A], HardwareAddress[00-1C-B3-B7-BA-7E]
Code Gen: Flat Mode, Use Existing, First Assignment, Make Final
Events: Anonymous Class
GWT Home: /gwt-mac-1.5.1
Platform Product: Eclipse
Platform Version: 3.3.100.v200806172000
OS Name: Mac OS X
OS Architecture: i386
OS Version: 10.5.4
!STACK 0
java.lang.NullPointerException
at com.swtdesigner.gef.actions.nls.bundle.AbstractBundleSource.apply_addLocale(AbstractBundleSource.java:314)
at com.swtdesigner.gwt.model.nls.GWTSource.apply_addLocale(GWTSource.java:407)
at com.swtdesigner.gef.actions.nls.NLSSupport.applyEditable(NLSSupport.java:302)
at com.swtdesigner.gef.actions.nls.ui.NLS_Dialog.okPressed(NLS_Dialog.java:181)
at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:472)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3474)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3064)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at com.swtdesigner.gef.actions.nls.ExternalizeStringsContributionItem.runExternalizeDialog(ExternalizeStringsContributionItem.java:72)
at com.swtdesigner.gef.actions.nls.ExternalizeStringsContributionItem.access$100(ExternalizeStringsContributionItem.java:22)
at com.swtdesigner.gef.actions.nls.ExternalizeStringsContributionItem$1.widgetSelected(ExternalizeStringsContributionItem.java:64)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3474)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3064)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
- Attachments
-
- Picture 1.png (123.51 KiB) Viewed 662 times
-
xristy
-
- Posts: 33
- Joined: Mon Aug 04, 2008 5:31 am
by Eric Clayberg » Fri Aug 15, 2008 3:31 am
Try this again with the latest build.
-
Eric Clayberg
- Moderator
-
- Posts: 4503
- Joined: Tue Sep 30, 2003 6:39 am
- Location: Boston, MA USA
-
by xristy » Fri Aug 15, 2008 6:04 am
It works fine now. Thank you.
-
xristy
-
- Posts: 33
- Joined: Mon Aug 04, 2008 5:31 am
by Eric Clayberg » Fri Aug 15, 2008 9:05 am
Good. Thanks for the update.
-
Eric Clayberg
- Moderator
-
- Posts: 4503
- Joined: Tue Sep 30, 2003 6:39 am
- Location: Boston, MA USA
-
Return to GWT Designer
Who is online
Users browsing this forum: No registered users and 3 guests