When is the internationalization feature available?

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

When is the internationalization feature available?

Postby ihhur » Tue Mar 09, 2004 2:37 am

I've read on this forum as following;
----------------
Yes, Designer will support internationalization, but we don't know yet how. Here are some ideas:
1. It will not support complex expressions like you show, i.e. only single expression will be supported;
2. Most probably it will support "Externalize string" feature of Eclipse, i.e. will look for something like Messages.getString("Test.0"), parse class Messages and then read real strings from property file.
----------------

This is very enough for me, and I'm wondering when I will be able to use it!
ihhur
 
Posts: 5
Joined: Tue Mar 09, 2004 2:34 am

Re: When is the internationalization feature available?

Postby Eric Clayberg » Tue Mar 09, 2004 6:50 am

ihhur wrote:I've read on this forum as following;
----------------
Yes, Designer will support internationalization, but we don't know yet how. Here are some ideas:
1. It will not support complex expressions like you show, i.e. only single expression will be supported;
2. Most probably it will support "Externalize string" feature of Eclipse, i.e. will look for something like Messages.getString("Test.0"), parse class Messages and then read real strings from property file.
----------------

This is very enough for me, and I'm wondering when I will be able to use it!

It's been available for more than five months now. SWT Designer supports the standard string externalization tools provided with Eclipse. From the v1.2.0 release notes...

Support for externalized strings. If you used "Externalize strings"
action in Eclipse, Designer will parse access to method "getString",
parse class with messages for property file name and read needed
strings from property file.


Does that do what you want?
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

How does swt-designer get externalized string?

Postby ihhur » Wed Mar 10, 2004 10:47 pm

I tried to use Eclispe "externalize string" feature but it changed local strings(korean) into unicode which is not recognizable by developers.

So, I made a class which just stores key - value pairs hash map which extends ListResourceBundle. (which means I won't be using eclipse feature)

But I failed to see any strings stored in hash map from swt-designed dialogs.

Would you please explain how can I accomplish this?
ihhur
 
Posts: 5
Joined: Tue Mar 09, 2004 2:34 am

Re: How does swt-designer get externalized string?

Postby Eric Clayberg » Thu Mar 11, 2004 6:01 am

ihhur wrote:I tried to use Eclispe "externalize string" feature but it changed local strings(korean) into unicode which is not recognizable by developers.

Once the strcuture is created by the Externalize Strinsg wizard, can't you edit the strings to be anything you like? Did Designer show the extracted strings properly?
ihhur wrote:Would you please explain how can I accomplish this?

You would need to adapt the results of the Externalize Strings wizard as that is the only approach currently supported by Designer.
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

Postby pcarmichael » Mon May 03, 2004 11:57 am

I tried creating a Dialog, and added some buttons, then did the Eclipse Externalize Strings (in English). This put the strings into a property file, and put :
Messages.getString("foo.1")

in its place.
When I tried to view it in Designer it showed a button with
Messages.getString("foo.1")
as the button text, instead of the replacement string.
Peter Carmichael
pcarmichael
 
Posts: 1
Joined: Mon May 03, 2004 11:29 am
Location: Lexington, MA

Postby Eric Clayberg » Mon May 03, 2004 1:17 pm

pcarmichael wrote:When I tried to view it in Designer it showed a button with
Messages.getString("foo.1")
as the button text, instead of the replacement string.

Which version/build of Designer? That should work in the latest v2.0.0 build.
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 SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest