Hi,

I use custom properties for both interface and content. 

Since there is a lot of content, I have a separate data stack. This data stack 
has fields, one for each major section of the program, and each of those 
objects contains data: arrays of html text, field format settings, etc., each 
array encoded and compressed and written to a custom property. 

When the program opens, the data for the current language is read into memory, 
interface buttons and fields loaded, and content text loaded into the fields of 
each section. Then the language can be switched with a preference change or key 
combination, and that language data is loaded. It happens quite fast.

When the program opens the very first time, there is a screen which asks for 
the user to set the language choice, and that choice writes to a preference 
file. I don’t check the OS language, I suppose I could, but since it will 
ultimately be in multiple languages I have provided a means for a primary and 
secondary language—with the idea that users may want to switch between the 
original English and their own language, or any of the languages we will 
ultimately provide.

And since there is a single data stack, that file can be updated automatically 
with new material without having to update and restart the whole program.

Peter Bogdanoff
ArtsInteractive Inc.


> On Mar 16, 2019, at 3:03 PM, Klaus major-k via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi all,
> 
> yep, same here, long ago...
> 
> I also created a tool for the tranlators to french and spanish. 
> I did the german and english part. :-)
> 
>> Am 16.03.2019 um 22:21 schrieb Matthias Rebbe via use-livecode 
>> <use-livecode@lists.runrev.com>:
>> I have one program that supports German and English.
>> I have created custom a property set for each language.
>> ...
>> this allows me to add a new language just by adding another custom property 
>> set  with values in that new language.
>> I am not sure if this is the best way. At least it is working here for me.
>> Regards,
>> 
>> Matthias
>> 
>>> Am 16.03.2019 um 21:17 schrieb kee nethery via use-livecode 
>>> <use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>:
>>> Does anyone on this list have an app that you localize into other languages 
>>> (French, German, Japanese, etc)?
>>> If so, I’d like to ask you how you support localization. Want to see if 
>>> there is a common method since LiveCode does not support the techniques 
>>> used by macOS, iOS, Android, Windows.
>>> 
>>> Thanks,
>>> 
>>> Kee Nethery
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> http://www.major-k.de
> kl...@major-k.de
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to