Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Translation of texts built into the scout platform
Translation of texts built into the scout platform [message #1805834] Thu, 25 April 2019 07:55 Go to next message
Krzysztof Leja is currently offline Krzysztof LejaFriend
Messages: 22
Registered: April 2019
Junior Member
Hi,

I'm creating an application iwhose basic language is Polish. I use newest version 9.0 of Scout platform. I run the application on a computer with a location set on Poland. My own Polish texts are displayed correctly from file Texts_pl.properties. I have a problem with texts built into the Scout platform. A large part of them is displayed in English, not Polish. For example in Page with table widget: "Filter by...", "3 rows loaded", "Reload data", "No row selected", "Select all", and so on...

Does the Scout platform do not contain translations of these texts into Polish by default?
If so, how to inject their translation into my application?
Re: Translation of texts built into the scout platform [message #1805838 is a reply to message #1805834] Thu, 25 April 2019 08:55 Go to previous messageGo to next message
Matthias OtterbachFriend
Messages: 29
Registered: August 2015
Location: Munich
Junior Member
While several texts for Scout are available in Polish, e.g. see https://github.com/eclipse/scout.rt/blob/9.0/org.eclipse.scout.rt.shared/src/main/resources/org/eclipse/scout/rt/shared/texts/, the texts for the UI unfortunately have not yet been translated to Polish, see https://github.com/eclipse/scout.rt/tree/9.0/org.eclipse.scout.rt.ui.html/src/main/resources/org/eclipse/scout/rt/ui/html/texts.

As you probably want the texts as soon as possible: Do you have an yourproject.ui.html project? Maybe you could create your own UiTextProviderService there extending AbstractDynamicNlsTextProviderService and add the missing texts in Polish (I have not tested this idea yet). You would have to translate the texts contained in https://github.com/eclipse/scout.rt/blob/9.0/org.eclipse.scout.rt.ui.html/src/main/resources/org/eclipse/scout/rt/ui/html/texts/Texts.properties. In the end maybe you can even contribute your translations and open a change request for Scout, see https://wiki.eclipse.org/Scout/Contribution#Contributing_patches.

Re: Translation of texts built into the scout platform [message #1805839 is a reply to message #1805834] Thu, 25 April 2019 09:09 Go to previous messageGo to next message
Stephan Merkli is currently offline Stephan MerkliFriend
Messages: 26
Registered: April 2012
Junior Member
Hi Krzysztof

Scout has some translations for Polish, but not all available texts are translated.
The Scout texts are part of the shared module, see https://git.eclipse.org/c/scout/org.eclipse.scout.rt.git/tree/org.eclipse.scout.rt.shared/src/main/resources/org/eclipse/scout/rt/shared/texts/ScoutTexts_pl.properties?h=releases/9.0.x

You can add the translation in your own project by using the same key name as in Scout (and thus override the entry from Scout). Uncheck "Hide inherited rows" in the NLS editor to see the key names from Scout. The NLS editor forces you to add a default translation, but you can remove the added line in Texts.properties afterwards.

When you add translations for yet untranslated Scout texts, you could create a merge request to add them to Scout directly (or provide a file with key name and Polish translation instead). That would be really helpful.

edit: Matthias was first :-)

Kind regards
Stephan

[Updated on: Thu, 25 April 2019 09:13]

Report message to a moderator

Re: Translation of texts built into the scout platform [message #1805906 is a reply to message #1805839] Sat, 27 April 2019 13:00 Go to previous message
Krzysztof Leja is currently offline Krzysztof LejaFriend
Messages: 22
Registered: April 2019
Junior Member
Hi Matthias, Stephan

Thank you for quick and effective help.
Using your tips, I managed to solve the problem.
I added all missing translations to my Texts_pl.properties file in my shared module.

As for the addition of my translations as a "merge request":
I have not participated in the contribution of projects from the Eclipse family so far, but I will try to get through the indicated procedure and register such a request.
Previous Topic:Static class SQL is not initialized inside IPlatformListener
Next Topic:Viewing/rendering PDF file
Goto Forum:
  


Current Time: Fri Oct 18 01:03:51 GMT 2019

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

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

Back to the top