Skip to main content



      Home
Home » Eclipse Projects » e(fx)clipse » Override captions on Dialogs
Override captions on Dialogs [message #1346184] Sat, 10 May 2014 09:39 Go to next message
Eclipse UserFriend
I am tring to localize button caption on org.eclipse.fx.ui.dialogs.Dialog

What is the best way to do it?
Re: Override captions on Dialogs [message #1348033 is a reply to message #1346184] Sun, 11 May 2014 12:29 Go to previous messageGo to next message
Eclipse UserFriend
You mean ok, cancel, ...? In the nightly builds those are already loaded
from a messages.properties
(org/eclipse/fx/ui/dialogs/messages.properties) providing one for your
language will make the UI reflect that.

Tom

On 10.05.14 15:39, Jeyhun MAMEDOV wrote:
> I am tring to localize button caption on org.eclipse.fx.ui.dialogs.Dialog
>
> What is the best way to do it?
Re: Override captions on Dialogs [message #1357424 is a reply to message #1348033] Thu, 15 May 2014 10:13 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Thanks for answer, but ...
May be you can help me with some details, like

1. How should I name my property file? ( Turkish locale :
messages_tr_TR.properties or messages_tr.properties)

2. Where should I put this file?

Thanks
Re: Override captions on Dialogs [message #1357633 is a reply to message #1357424] Thu, 15 May 2014 12:15 Go to previous messageGo to next message
Eclipse UserFriend
On 15.05.14 16:13, Jeyhun MAMEDOV wrote:
> Hi,
>
> Thanks for answer, but ...
> May be you can help me with some details, like
>
> 1. How should I name my property file? ( Turkish locale :
> messages_tr_TR.properties or messages_tr.properties)

messages_tr.properties is fine.

>
> 2. Where should I put this file?
>
> Thanks

You create an OSGi-fragment with the dialogs bundle as its host and put
the translation exactly in the same package as the original file, then
you add the fragment to you feature/.... and you are ready to go.

I'll try to get efxclipse to babel but i need to figure out the process.

Tom
Re: Override captions on Dialogs [message #1357694 is a reply to message #1357633] Thu, 15 May 2014 12:49 Go to previous message
Eclipse UserFriend
Babel seems to be down a bit - let's host the few translations we
currently have inside e(fx)clipse. File a bug and attach your translations.

Tom


On 15.05.14 18:15, Tom Schindl wrote:
> On 15.05.14 16:13, Jeyhun MAMEDOV wrote:
>> Hi,
>>
>> Thanks for answer, but ...
>> May be you can help me with some details, like
>>
>> 1. How should I name my property file? ( Turkish locale :
>> messages_tr_TR.properties or messages_tr.properties)
>
> messages_tr.properties is fine.
>
>>
>> 2. Where should I put this file?
>>
>> Thanks
>
> You create an OSGi-fragment with the dialogs bundle as its host and put
> the translation exactly in the same package as the original file, then
> you add the fragment to you feature/.... and you are ready to go.
>
> I'll try to get efxclipse to babel but i need to figure out the process.
>
> Tom
>
Previous Topic:How to avoid crashing the JVM on Linux with GTK3
Next Topic:Problem with Tycho compiling with java8
Goto Forum:
  


Current Time: Mon May 19 15:20:39 EDT 2025

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

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

Back to the top