Agressive i18n string externalization

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

Agressive i18n string externalization

Postby alex.d » Wed Jun 24, 2009 4:01 am

Trying to set a cell height of a grid in the designer view causes following code:
Code: Select all
grid.getCellFormatter().setHeight(3, 1, CONSTANTS.btSearch_height());

I think externalizing height and width isn't necessary :D

Smth. else: when adding a new widget, let's say button, to a composite and giving it a caption, it will be automaticly externalized. And that's good except for the name of the key - my key names are having kind of a system and i'd like to enter key name myself. It also important if you have multiple buttons with the same name "btSearch" in different composites because GWT-Designer always generates the same key - btSearch_text.


Version: 7.0.0.200906220737
Expected: Eclipse 3.4
Actual: Eclipse 3.4.0.v20080512
alex.d
 
Posts: 35
Joined: Mon Jun 02, 2008 4:46 am

Re: Agressive i18n string externalization

Postby Eric Clayberg » Fri Jun 26, 2009 6:40 am

Try turning off the "WindowBuilder > GWT > Code Generation > Automatically externalize string properties" preference.

Image

You can then use the Externalize Strings dialog to control which strings are externalized and what keys are used.

Image Image

If you wish to reuse keys for multiple widgets, the String Property Editor allows this...

Image
Image
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
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 1 guest