work-around for localizing message box caption (mobile)

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
wxz
Posts: 6
Joined: Mon Oct 06, 2014 9:25 pm

work-around for localizing message box caption (mobile)

Post by wxz »

hi,

is it possible to localize the caption of the message box on mobile platforms? In "run time translation" sample project, the translated message box title is not picked up after switch to another language. The manual mentioned about the cause that the caption cannot be translated, is there any work-around for this?
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Hello,

The simplest workaround would be to implement dialogs using your own form. Just create a dialog form in your project for all dialogs and localize it with TsiLang.
Best regards,
Igor Siticov.
wxz
Posts: 6
Joined: Mon Oct 06, 2014 9:25 pm

Post by wxz »

thanks. Another thing I'd like to mention is the title of the form. Take the run time sample project as an example, the form tile is "Using TsiLang for building...", this string is not localized when switching between languages. Is it possible to localize it as well?
wxz
Posts: 6
Joined: Mon Oct 06, 2014 9:25 pm

how to implement a dialog that runs on mobile?

Post by wxz »

isiticov wrote:Hello,

The simplest workaround would be to implement dialogs using your own form. Just create a dialog form in your project for all dialogs and localize it with TsiLang.
hi,
Do you mind elaborating on how to implement a customized message box? The examples I found require functions such as CreateMessageDialog(), which is for VCL projects. Is there an equivalent way to do it in FireMonkey?
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

CreateMessageDlg() function is quite simple and just creates a TForm and resizes it to fit the message bounds. You can see its realization in Dialogs.pas unit.
Best regards,
Igor Siticov.
Post Reply