Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Plugin internationalization problem on Tomcat
Plugin internationalization problem on Tomcat [message #507874] Thu, 14 January 2010 23:23 Go to next message
Lothar Werzinger is currently offline Lothar WerzingerFriend
Messages: 153
Registered: July 2009
Location: Bay Area
Senior Member
Hi,

I internationalized a plugin of my POC RAP app.

When I run it from a RAP launch configuration it shows the correct view
titles for the locale that I select. :-) So far so good.

But when I deploy the RAP app on Tomcat (via WAR) then the view shows the
name of the key that refers to the title (like "%view_title").
I did add the org.eclipse.rap.equinox.registry to the app as you can see in
the OSGI console print here:

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.6.0.v20091204
Fragments=32
1 ACTIVE com.ibm.icu.base_4.0.1.v20090822
2 ACTIVE org.eclipse.core.commands_3.5.0.I20090525-2000
3 ACTIVE org.eclipse.core.contenttype_3.4.100.v20091109
4 ACTIVE org.eclipse.core.databinding_1.3.0.I20090825-0800
5 ACTIVE
org.eclipse.core.databinding.observable_1.3.0.I20090901-0800
6 ACTIVE
org.eclipse.core.databinding.property_1.2.100.I20090825-0800
7 ACTIVE org.eclipse.core.expressions_3.4.100.v20091203
8 ACTIVE org.eclipse.core.jobs_3.5.0.v20091125-1620
9 ACTIVE org.eclipse.core.runtime_3.6.0.v20091204
10 ACTIVE org.eclipse.equinox.app_1.2.100.v20091203
11 ACTIVE org.eclipse.equinox.common_3.6.0.v20091203
12 ACTIVE org.eclipse.equinox.http.registry_1.0.200.v20090520-1800
13 ACTIVE
org.eclipse.equinox.http.servletbridge_1.0.200.201001141512
14 ACTIVE org.eclipse.equinox.http.servlet_1.0.200.v20090520-1800
15 ACTIVE org.eclipse.equinox.preferences_3.3.0.v20091203
16 ACTIVE org.eclipse.equinox.registry_3.5.0.v20100114-1500
Fragments=19
17 ACTIVE org.eclipse.osgi.services_3.2.0.v20090520-1800
18 ACTIVE org.eclipse.help_3.5.0.v20091130
19 RESOLVED org.eclipse.rap.equinox.registry_1.3.0.201001141512
Master=16
20 ACTIVE org.eclipse.rap.jface.databinding_1.3.0.20091214-1156
21 ACTIVE org.eclipse.rap.jface_1.3.0.20091214-1156
22 RESOLVED org.eclipse.rap.rwt.q07_1.3.0.20091214-1156
Master=23
23 ACTIVE org.eclipse.rap.rwt_1.3.0.20091214-1156
Fragments=22
24 ACTIVE org.eclipse.rap.ui.views_1.3.0.20091214-1156
25 ACTIVE org.eclipse.rap.ui.workbench_1.3.0.20091214-1156
26 ACTIVE org.eclipse.rap.ui_1.3.0.20091214-1156
27 ACTIVE org.eclipse.rap.demo_1.3.0.20091214-1156
28 ACTIVE biz.tradescape.compatibility_1.0.0.201001141512
Fragments=29
29 RESOLVED biz.tradescape.compatibility.rap_1.0.0.201001141512
Master=28
30 ACTIVE biz.tradescape.mmt.rap_1.0.0.201001141512
31 ACTIVE biz.tradescape.mmt.marketplace_1.0.0.201001141512
32 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.2.0
Master=0

Any help is much appreciated.

Lothar
Re: Plugin internationalization problem on Tomcat [message #508363 is a reply to message #507874] Mon, 18 January 2010 09:58 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
On 15.01.2010 00:23, Lothar Werzinger wrote:
> Hi,
>
> I internationalized a plugin of my POC RAP app.
>
> When I run it from a RAP launch configuration it shows the correct view
> titles for the locale that I select. :-) So far so good.
>
> But when I deploy the RAP app on Tomcat (via WAR) then the view shows the
> name of the key that refers to the title (like "%view_title").
Is the bundle that contains the (translated) text also deployed?
Are the plugin.properties files listed in the build.properties file?

Make also sure to avoid the usual pitfalls when deploying
(http://wiki.eclipse.org/RAP/FAQ#Deployment)

> I did add the org.eclipse.rap.equinox.registry to the app as you can see in
> the OSGI console print here:
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.6.0.v20091204
> Fragments=32
> 1 ACTIVE com.ibm.icu.base_4.0.1.v20090822
> 2 ACTIVE org.eclipse.core.commands_3.5.0.I20090525-2000
> 3 ACTIVE org.eclipse.core.contenttype_3.4.100.v20091109
> 4 ACTIVE org.eclipse.core.databinding_1.3.0.I20090825-0800
> 5 ACTIVE
> org.eclipse.core.databinding.observable_1.3.0.I20090901-0800
> 6 ACTIVE
> org.eclipse.core.databinding.property_1.2.100.I20090825-0800
> 7 ACTIVE org.eclipse.core.expressions_3.4.100.v20091203
> 8 ACTIVE org.eclipse.core.jobs_3.5.0.v20091125-1620
> 9 ACTIVE org.eclipse.core.runtime_3.6.0.v20091204
> 10 ACTIVE org.eclipse.equinox.app_1.2.100.v20091203
> 11 ACTIVE org.eclipse.equinox.common_3.6.0.v20091203
> 12 ACTIVE org.eclipse.equinox.http.registry_1.0.200.v20090520-1800
> 13 ACTIVE
> org.eclipse.equinox.http.servletbridge_1.0.200.201001141512
> 14 ACTIVE org.eclipse.equinox.http.servlet_1.0.200.v20090520-1800
> 15 ACTIVE org.eclipse.equinox.preferences_3.3.0.v20091203
> 16 ACTIVE org.eclipse.equinox.registry_3.5.0.v20100114-1500
> Fragments=19
> 17 ACTIVE org.eclipse.osgi.services_3.2.0.v20090520-1800
> 18 ACTIVE org.eclipse.help_3.5.0.v20091130
> 19 RESOLVED org.eclipse.rap.equinox.registry_1.3.0.201001141512
> Master=16
> 20 ACTIVE org.eclipse.rap.jface.databinding_1.3.0.20091214-1156
> 21 ACTIVE org.eclipse.rap.jface_1.3.0.20091214-1156
> 22 RESOLVED org.eclipse.rap.rwt.q07_1.3.0.20091214-1156
> Master=23
> 23 ACTIVE org.eclipse.rap.rwt_1.3.0.20091214-1156
> Fragments=22
> 24 ACTIVE org.eclipse.rap.ui.views_1.3.0.20091214-1156
> 25 ACTIVE org.eclipse.rap.ui.workbench_1.3.0.20091214-1156
> 26 ACTIVE org.eclipse.rap.ui_1.3.0.20091214-1156
> 27 ACTIVE org.eclipse.rap.demo_1.3.0.20091214-1156
> 28 ACTIVE biz.tradescape.compatibility_1.0.0.201001141512
> Fragments=29
> 29 RESOLVED biz.tradescape.compatibility.rap_1.0.0.201001141512
> Master=28
> 30 ACTIVE biz.tradescape.mmt.rap_1.0.0.201001141512
> 31 ACTIVE biz.tradescape.mmt.marketplace_1.0.0.201001141512
> 32 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.2.0
> Master=0
>
> Any help is much appreciated.
>
> Lothar
>
>


--
Rüdiger Herrmann
http://eclipsesource.com
Re: Plugin internationalization problem on Tomcat [message #508438 is a reply to message #508363] Mon, 18 January 2010 19:48 Go to previous messageGo to next message
Lothar Werzinger is currently offline Lothar WerzingerFriend
Messages: 153
Registered: July 2009
Location: Bay Area
Senior Member
Rüdiger Herrmann wrote:

> On 15.01.2010 00:23, Lothar Werzinger wrote:
>> When I deploy the RAP app on Tomcat (via WAR) then the view shows the
>> name of the key that refers to the title (like "%view_title").
> Is the bundle that contains the (translated) text also deployed?
> Are the plugin.properties files listed in the build.properties file?

Good catch, I did indeed miss to add the plugin.properties files to the
build.properties file. Thanks!

As the plugin.properties files are so critical I wish that Eclipse added
them automatically to the build.properties when they are created.

Thanks!
Lothar
Re: Plugin internationalization problem on Tomcat [message #508792 is a reply to message #508438] Wed, 20 January 2010 05:54 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
On 18.01.2010 20:48, Lothar Werzinger wrote:
> Rüdiger Herrmann wrote:
>
>> On 15.01.2010 00:23, Lothar Werzinger wrote:
>>> When I deploy the RAP app on Tomcat (via WAR) then the view shows the
>>> name of the key that refers to the title (like "%view_title").
>> Is the bundle that contains the (translated) text also deployed?
>> Are the plugin.properties files listed in the build.properties file?
>
> Good catch, I did indeed miss to add the plugin.properties files to the
> build.properties file. Thanks!
>
> As the plugin.properties files are so critical I wish that Eclipse added
> them automatically to the build.properties when they are created.
Feel free to forward this idea to PDE
(https://bugs.eclipse.org/bugs/enter_bug.cgi?product=PDE)

>
> Thanks!
> Lothar


--
Rüdiger Herrmann
http://eclipsesource.com
Previous Topic:launch RAP application in right-to-left orientation
Next Topic:How do I make remote calls to EJB3's deployed on Jboss 5.0.1 AS
Goto Forum:
  


Current Time: Tue Oct 08 00:39:19 GMT 2024

Powered by FUDForum. Page generated in 0.05053 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top