Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 9 of 9 total
Thread MessageDlg: label button translated
Thu, Nov 1 2012 3:40 PMPermanent Link

Sergei Safar

Hi,

is it possible to have MessageDlg label buttons (YES, NO, CANCEL, etc) translated?

Regards,

Sergei Safar
Thu, Nov 1 2012 4:05 PMPermanent Link

Raul

Team Elevate Team Elevate

Check out the MsgDlgBtnToStr function in WebForms unit

Raul


On 11/1/2012 3:40 PM, Sergei Safar wrote:
> Hi,
>
> is it possible to have MessageDlg label buttons (YES, NO, CANCEL, etc) translated?
>
> Regards,
>
> Sergei Safar
>
Fri, Nov 2 2012 3:59 AMPermanent Link

Uli Becker

Raul,

> Check out the MsgDlgBtnToStr function in WebForms unit

Are you saying that the unit has to be changed after each update in
order to localize the captions?

Uli
Fri, Nov 2 2012 7:33 AMPermanent Link

Raul

Team Elevate Team Elevate

On 11/2/2012 3:59 AM, Uli Becker wrote:
> Are you saying that the unit has to be changed after each update in
> order to localize the captions?

I believe yes at this time.

Since it's javascript there is no way to really retrieve any of this
from OS. If there is enough demand i'm sure Tim will consider adding
some kind of customization or maybe even localization support into EWB
(though the latter is a fairly major undertaking).

Raul
Fri, Nov 2 2012 8:01 AMPermanent Link

Malcolm Taylor

Raul wrote:

> If there is enough demand i'm sure Tim will consider adding
> some kind of customization or maybe even localization support into
> EWB (though the latter is a fairly major undertaking).
>

Yes, I asked Tim about localization back in the beta programme as I had
a potential app which needed to support about 9 languages and he
indicated it was not on his radar.  Frown

Fri, Nov 2 2012 8:36 AMPermanent Link

Uli Becker

Raul,

> Since it's javascript there is no way to really retrieve any of this
> from OS. If there is enough demand i'm sure Tim will consider adding
> some kind of customization or maybe even localization support into EWB
> (though the latter is a fairly major undertaking).

But "alert", "prompt" etc. are using localized captions. Maybe the
browser supports it. So there must be a way to localize the dialogs.

Uli
Fri, Nov 2 2012 1:17 PMPermanent Link

Raul

Team Elevate Team Elevate

>>Uli Becker wrote:
>>But "alert", "prompt" etc. are using localized captions. Maybe the
>>browser supports it. So there must be a way to localize the dialogs.

Usually it's localized since browser uses OS dialogs and is native app itself.

I don't believe there is a way to query any OS localization from Javascript at all - most solutions i've seen use the language header or one returned by browser (and that is not always same as OS language so more problems) and load strings in JS from JS source.

Raul
Sat, Nov 3 2012 11:00 AMPermanent Link

Uli Becker

> Usually it's localized since browser uses OS dialogs and is native app itself.
> I don't believe there is a way to query any OS localization from Javascript at all - most solutions i've seen use the language header or one returned by browser (and that is not always same as OS language so more problems) and load strings in JS from JS source.

Thanks, Raul.

Uli
Mon, Nov 5 2012 2:47 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Sergei,

<< is it possible to have MessageDlg label buttons (YES, NO, CANCEL, etc)
translated? >>

I can add this in an upcoming release, yes.  I'll see about adding
string-translation services to the FormatSettings object (WebCore unit) in
the form of key-value pairs that will allow you to translate a specific
identifier into a specific string.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com


Image