Can I acces statements in LC executables?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 720
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
Can I acces statements in LC executables?
I am working on a translation application that enables me to change the language of an application build in LC.
I am wondering if the following would work in a LC executable?
1 - Change Stack Title
2 - Change labels of buttons DataGrid columns Widgets and so on.
3 - Let say I have a statement 'put "the to translate text" into tMSG ' Is it possible to go through the (compiled) executable with code that is part of this executable (e.g. sub stack) and change the text into the translated text? So it becomes 'put "the translated text" into tMSG' for as long as the executable is running of course.
Or is there a better way to do this?
Regards,
Paul
I am wondering if the following would work in a LC executable?
1 - Change Stack Title
2 - Change labels of buttons DataGrid columns Widgets and so on.
3 - Let say I have a statement 'put "the to translate text" into tMSG ' Is it possible to go through the (compiled) executable with code that is part of this executable (e.g. sub stack) and change the text into the translated text? So it becomes 'put "the translated text" into tMSG' for as long as the executable is running of course.
Or is there a better way to do this?
Regards,
Paul
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Can I acces statements in LC executables?
C'est pas un problem.
- - -
Think about this sort of thing:
- - -
Think about this sort of thing:
on openStack
set the title of stack "myStack" to "Fromage Frais"
end openStack
-
- Posts: 720
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
Re: Can I acces statements in LC executables?
Merci richmond62
This is as far as my French language skills can be stretched
Thank you richmond62
Regards,
Paul
This is as far as my French language skills can be stretched
Thank you richmond62
Regards,
Paul
Re: Can I acces statements in LC executables?
Hi Paul,
into a field, custom property or variable and change that according to the selected language.
Best
Klaus
this is also doable but you need to put -> the to tranlate text3 - Let say I have a statement 'put "the to translate text" into tMSG ' Is it possible to go through the (compiled) executable with code that is part of this executable (e.g. sub stack) and change the text into the translated text? So it becomes 'put "the translated text" into tMSG' for as long as the executable is running of course.
into a field, custom property or variable and change that according to the selected language.
Best
Klaus
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Can I acces statements in LC executables?
Your French language skills don't really need stretching until
you find yourself in a Francophone country or stuck in an elevator
with a load of French-language chauvinists!
What you DO NEED TO REMEMBER is that each object has a
LABEL/TITLE as well as a NAME,
so you can mess around with the label
to your heart's content without it throwing
your program into the left field.
you find yourself in a Francophone country or stuck in an elevator
with a load of French-language chauvinists!
What you DO NEED TO REMEMBER is that each object has a
LABEL/TITLE as well as a NAME,
so you can mess around with the label
to your heart's content without it throwing
your program into the left field.
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Can I acces statements in LC executables?
Here's another thought:
on openStack
put "I'm a little teapot, short and stout." into ENG
put "Аз съм един нисък и дебел чайник." into BG
answer "Language ?" with "BG" or "ENG"
if it is "ENG" then
put ENG into field "NONSENSE"
else
put BG into field "NONSENSE"
end if
end openStack
-
- Posts: 720
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
Re: Can I acces statements in LC executables?
Thanks for the example richmond62.