Page 1 of 1

How to handle localization

PostPosted: Thu Apr 15, 2010 12:46 am
by tanzanite
How do you handle localization of strings in objective-basic?

I would like my app to run in a few different languages. Is it necessary to recode, or are there ways to handle multiple localizations?

Re: How to handle localization

PostPosted: Thu Apr 15, 2010 9:26 am
by berndnoetscher
tanzanite wrote:How do you handle localization of strings in objective-basic?

I would like my app to run in a few different languages. Is it necessary to recode, or are there ways to handle multiple localizations?


I am sorry, but this is not supported yet, but it will work like in Objective-C.

For each language, you will have a copy of each nib file of your project.
Strings in code are recognized automatically, and a text file containing strings, which need to be translated will be presented.

If you cannot wait, you could create a global function Tr(String), which is called by each string occurance in code and make it returning the right translation by using a Dictionary or see. If you need help, just ask.

Re: How to handle localization

PostPosted: Thu Apr 15, 2010 3:16 pm
by tanzanite
It is good to know that this is coming. About how far in the future will it be for this to be implemented, if it is possible to say?

Re: How to handle localization

PostPosted: Thu Apr 15, 2010 7:59 pm
by berndnoetscher
tanzanite wrote:It is good to know that this is coming. About how far in the future will it be for this to be implemented, if it is possible to say?


Might be available in Mid 2010.