Displaying labels in another language when opening Card

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
liveme
Posts: 240
Joined: Thu Aug 27, 2015 5:22 pm

Displaying labels in another language when opening Card

Post by liveme » Thu Aug 27, 2015 8:59 pm

Hi,

I'm interested in having my desktop app into several language,

I could translate labels of buttons and Title of Datagrid too which is just what I need so far.
For this I simple put all my script "label to Spanish" etc in a Language button.
Limits : This only works on the Active (or open) Stack/card...

1rst Problem,
How can I set a language param for the Whole App. at once ? :)

I d like any existing card(s) to "read" the (user's) defined choice
and instanlty display all (hard coded translation) labels,titles, etc... in their favorite lang.

My working code so far is: (in each Lang button)

Code: Select all

  
 set the label of button "ButtonA" to  "buscar"
 set the dgColumnLabel [ColA] of Group Listing to "Nombre"
I guess there might be other ways to process the translation needs...but I just starting here !
Last edited by liveme on Sat Aug 29, 2015 7:44 pm, edited 1 time in total.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Displaying labels in another language wehn opening Card

Post by Simon » Fri Aug 28, 2015 2:18 am

Hi liveme,
Welcome to the forums :)

Here is something for you to read that will help;
http://livecode.com/how-to-localize-livecode-apps/

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

liveme
Posts: 240
Joined: Thu Aug 27, 2015 5:22 pm

Re: Displaying labels in another language wehn opening Card

Post by liveme » Fri Aug 28, 2015 4:16 am

Thanks simon ! More than I expexted but that's it ! :D

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Displaying labels in another language when opening Card

Post by MaxV » Mon Aug 31, 2015 11:32 am

If your software is not a mobile application, try the profiles.
At the present profiles on mobile don't work.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply