Discussion Forums  >  Meetups, Hang Outs, and Events

Replies: 9    Views: 109

Warren Evans
Apple Fan
Profile
Posts: 277
Reg: Jan 28, 2012
Effingham IL
17,400
10/31/12 10:33 AM (13 years ago)

Webinar Recording now available: 10/30/12 - Localization of your app

The recording of the Buzztouch webinar "Localization of your app" is now available on YouTube. The link can be found here: http://www.youtube.com/watch?v=4CkNW2HA7-A&feature=plcp
 
Otatech
Code is Art
Profile
Posts: 80
Reg: Jul 18, 2012
Rome
800
like
10/31/12 11:22 AM (13 years ago)
thanx :-)
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
10/31/12 01:29 PM (13 years ago)
thank you :)
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
10/31/12 01:50 PM (13 years ago)
Thank you for this webinar Warren, very very helpfull. Cheers. Miguel
 
tonycelestino
Aspiring developer
Profile
Posts: 213
Reg: Jun 24, 2011
Maceio
4,080
like
11/21/12 09:46 PM (13 years ago)
Hey everyone! I just watched the webinar, great stuff! Congrats to @warren and @david! Unfortunately I wasn't aware of it when it happened. (I guess I'm not as active on the forum as I used to be) So, I would like to catch up from where the video stopped... (stop reading and go watch the webinar first or else you won't understand) If you use the code on the video you will end up getting the information of the locale format which was set on your device. Example: The device's format is set to English (United States) locale, put the language is set to Spanish. You can find a way around and make it work like that, but it doesn't feel right. So, after a little research and experimentation I found a better and simpler solution: Replace the code from didFinishLaunchingWithOptions method (from the video): NSLocale *locale = [NSLocale currentLocale]; NSString *language = [locale displayNameForKey:NSLocaleIdentifier value:[locale localeIdentifier]]; [BT_debugger showIt:self:[NSString stringWithFormat:@"What locale?: %@", language]]; With this one: NSString *syslanguage = [[NSLocale preferredLanguages] objectAtIndex:0]; [BT_debugger showIt:self:[NSString stringWithFormat:@"What locale?: %@", syslanguage]]; Now you're going to get the international ISO letters from the language that was set on device. Meaning, even if the format of the device is set to English (United States) but the language is set to Spanish, you are going to get "es" as output. The if section should then be changed to... if ([syslanguage isEqualToString:@"xx"]) { configurationFileName = @"BT_config-XX.txt"; } Change xx and XX. :P Cheers!
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
11/23/12 05:23 PM (13 years ago)
Hey TonyCelestino, nice inputbut using your code I'm still unable to have it load a different config file. Were you able to do it? Thanks Miguel
 
tonycelestino
Aspiring developer
Profile
Posts: 213
Reg: Jun 24, 2011
Maceio
4,080
like
11/23/12 05:59 PM (13 years ago)
Hi Miguel, it worked for me. Im on BT 1.5 iOS app.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
11/23/12 06:17 PM (13 years ago)
did you add the iso code only in the last part xx?
 
tonycelestino
Aspiring developer
Profile
Posts: 213
Reg: Jun 24, 2011
Maceio
4,080
like
11/24/12 04:54 AM (13 years ago)
Hi Miguel, The video @warren and @david did was awesome, it was great to understand what goes on under the hood in xcode/eclipse and how BT config files work. But its not exactly a walk-trough tutorial. If you guys want I can make a walk-trough of what I did. My experiment is not finished yet, but it seems to be working so far. What you guys think? Cheers.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
11/24/12 05:08 AM (13 years ago)
Hey, i was at the webinar, but Im not a code person. A video would Be Fantastic. Cheers Miguel
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.