Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » How to change default in translation wizard
How to change default in translation wizard [message #894490] Mon, 09 July 2012 08:27 Go to next message
Eclipse UserFriend
Dear all

When I create a new label the translation wizard shows me english as default value as you can see in the print screen.
Where can I change this setting? I need german as default.

Any hints?
Re: How to change default in translation wizard [message #894529 is a reply to message #894490] Mon, 09 July 2012 10:15 Go to previous messageGo to next message
Eclipse UserFriend
I am not sure this can be configured...

From what I have seen, the SDK uses the operating system configuration (or some JVM configuration).

Last time I came across this issue, I change some config at "control panel->regional and language options". (But I do not remember how)

More information on Locale and Windows:
http://stackoverflow.com/questions/2469435/how-to-detect-operating-system-language-locale-from-java-code

Re: How to change default in translation wizard [message #894843 is a reply to message #894529] Tue, 10 July 2012 13:51 Go to previous messageGo to next message
Eclipse UserFriend
Scout uses the java.util.ResourceBundle mechanism for native language support. So whatever language files you have in your '<project-prefix>.shared/resources/texts/*.properties' are taken as translation base.

Example setup:
  <project-prefix>.shared
    -resources/texts
      -Texts.properties
      -Texts_fr.properties

If your application starts with the -vmargs -Duser.language=fr or eclipse.exe -nl=fr the translations in Texts_fr.properties are considered. In case of any other user language the translations in Texts.properties are considered.

In your case delete the Texts_de.properties file and use Texts.properties for German translations. Aware to face all users with an unknown user language with German texts;).
The only confusing thing is the label default (English) label in the text dialog.

For the confusing part I opend Bug 384759.

-andreas
Re: How to change default in translation wizard [message #894937 is a reply to message #894843] Wed, 11 July 2012 03:48 Go to previous messageGo to next message
Eclipse UserFriend
Andreas Hoegger wrote on Tue, 10 July 2012 19:51
So whatever language files you have in your '<project-prefix>.shared/resources/texts/*.properties' are taken as translation base.


The directory where the translation files are located is defined by the Text Provider Service. In the default application template (created by the SDK) the DefaultTextProviderService uses the location you have given:
  @Override
  protected String getDynamicNlsBaseName() {
    return "resources.texts.Texts";
  }




That said, the SDK make also some assumptions on which tabs should be prefilled given the text typed in the Object Properties View.

Here is how it looks like on my computer (German operating system):
index.php/fa/10658/0/
(same in the default tab)

If I now use some other operating system (French configuration) the default values in the "New Entry" window will not be the same.
  • Attachment: new_entry.png
    (Size: 20.61KB, Downloaded 1302 times)
Re: How to change default in translation wizard [message #894999 is a reply to message #894937] Wed, 11 July 2012 07:26 Go to previous message
Eclipse UserFriend
Thanks for your help!
Previous Topic:Wizards howto?
Next Topic:Ampersand does not underline a letter of the Menu
Goto Forum:
  


Current Time: Wed Jul 02 19:06:43 EDT 2025

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

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

Back to the top