Hi,

I have the following files for static string internationalization of
constants:

Constants.java
Constants_en.properties
Constants_de.properties

I would like to omit the @DefaultStringValue in Constants.java. The
defaults should be the EN-strings.

How can I do this?

If I omit the annotations, I get an exception (see below).

Thanks,
Magnus

-----


21:55:54.123 [ERROR] [bcs] No resource found for key 'moves'
com.google.gwt.i18n.rebind.AbstractResource$MissingResourceException:
No resource found for key 'moves'
    at com.google.gwt.i18n.rebind.AbstractResource
$ResourceList.getRequiredStringExt(AbstractResource.java:290)
    at
com.google.gwt.i18n.rebind.SimpleValueMethodCreator.createMethodFor(SimpleValueMethodCreator.java:
95)
    at
com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.delegateToCreator(AbstractLocalizableImplCreator.java:
313)
    at
com.google.gwt.i18n.rebind.ConstantsImplCreator.emitMethodBody(ConstantsImplCreator.java:
163)
    at
com.google.gwt.user.rebind.AbstractGeneratorClassCreator.genMethod(AbstractGeneratorClassCreator.java:
273)
    at
com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitMethods(AbstractGeneratorClassCreator.java:
234)
    at
com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitClass(AbstractGeneratorClassCreator.java:
117)
    at
com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.generateConstantOrMessageClass(AbstractLocalizableImplCreator.java:
133)
    at
com.google.gwt.i18n.rebind.LocalizableGenerator.generate(LocalizableGenerator.java:
114)
    at
com.google.gwt.i18n.rebind.LocalizableGenerator.generate(LocalizableGenerator.java:
97)
    at
com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
427)
    at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
39)
    at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:115)
    at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:58)
    at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
161)
    at
com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:
124)
    at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:
585)
    at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
455)
    at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
    at com.google.gwt.core.client.GWT.create(GWT.java:97)
    at bcs.client.itn.itn.<clinit>(itn.java:19)
    at bcs.client.apl.Menu.createMenu(Menu.java:72)
    at bcs.client.apl.Menu.init(Menu.java:62)
    at bcs.client.apl.Menu.<init>(Menu.java:55)
    at bcs.client.apl.Display.init(Display.java:92)
    at bcs.client.apl.Display.<init>(Display.java:66)
    at bcs.client.Application.onModuleLoad(Application.java:95)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
    at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183)
    at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
    at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
    at java.lang.Thread.run(Thread.java:636)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to