SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

work-around for localizing message box caption (mobile)

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
wxz



Joined: 06 Oct 2014
Posts: 6

PostPosted: Tue Oct 07, 2014 2:12 pm    Post subject: work-around for localizing message box caption (mobile) Reply with quote

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?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Wed Oct 08, 2014 1:28 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
wxz



Joined: 06 Oct 2014
Posts: 6

PostPosted: Wed Oct 08, 2014 6:29 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
wxz



Joined: 06 Oct 2014
Posts: 6

PostPosted: Tue Oct 14, 2014 6:06 pm    Post subject: how to implement a dialog that runs on mobile? Reply with quote

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?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Wed Oct 15, 2014 12:25 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group