Discussion Forums  >  Uncategorized

Replies: 14    Views: 478

Kahuna
Apple Fan
Profile
Posts: 137
Reg: Nov 18, 2011
Milan
4,670
11/29/11 09:39 AM (14 years ago)

Localizable strings

Hi all, I searched the forum but I haven't found information regarding localizable strings. I wanted to test my app on my iPhone device before submitting it so I built it using my country localization settings. I assumed that the strings like loading, email image, etc. would have been translated but that's not the case. Is it possible to have them set for the destination country of the release or do I have to change them manually in the code? Thank you in advance and kind regards. G
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/29/11 09:51 AM (14 years ago)
Hi G, If you go to your project source, and go to \BT_Config\English.lproj\Localizable.strings file, I think you'll find what you're looking for! Mark
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/29/11 09:51 AM (14 years ago)
Dang forum stripped out the slashes! BT_Config...English.proj...Localizable.strings file.
 
Kahuna
Apple Fan
Profile
Posts: 137
Reg: Nov 18, 2011
Milan
4,670
like
11/29/11 10:33 AM (14 years ago)
Thank you Mark, I found the file. What was not clear is if I had to manually change the strings in that file and then build the release for the country? What's the best thing if I, let's say, want to release the localized version of the app for english language and italian? Change the strings and build? Create a new Localizable.strings file? G
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/29/11 11:31 AM (14 years ago)
That I'm not entirely sure about, unfortunately! Hopefully somebody else can weigh in on that...I'm pretty sure I recall seeing somebody do it at one point.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
11/29/11 01:40 PM (14 years ago)
I recently created an app with two locialized versions. First in xcode in the main section click Project and the tab: Info. You'll see the localization: English - 1 file localized. At the bottom you'll see a + sign and - sign.. Click the plus sign. Choose your language and it will create a copy of the English version. Now in the left BT_Config folder you should see the Localizable Strings folder. Should be two. English and your language of choice. Browse to your new language folder and edit the language accordingly. I have mine saved in a folder to copy and paste for later usage. Works great. In iTunes connect when you create or edit your app. you can add localizations to the app that is separate. Its for store language optimization! Hope that helps Also, when testing in the simulator. Go to settings and change the language to confirm its working. Otherwise you won't note the changes because it is in english. well at least mine is. Not sure how that works, but change the language and it will reset and load again.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/29/11 02:13 PM (14 years ago)
I added this process to the btugwiki.com site...excellent info...thanks! http://www.btugwiki.com/index.php/Localization Mark
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
11/29/11 02:24 PM (14 years ago)
i checked your site today and the maps section was filled with spam.. have you seen that? i can't use it bc it has been deleted :/
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/29/11 02:29 PM (14 years ago)
Thanks for pointing that out! I guess I'll have to restrict posting to registered users only or something...bummer.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
11/29/11 02:30 PM (14 years ago)
sorry it was the forum post: http://www.btugwiki.com/index.php/Embedded_forum... its gone. but i guess you can check google cache or yahoo for the old info.
 
Kahuna
Apple Fan
Profile
Posts: 137
Reg: Nov 18, 2011
Milan
4,670
like
11/29/11 03:37 PM (14 years ago)
Hi, thank you for the info mysps! I've edited the files but I still see everything in english. Where do I select the language? Thanks G
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/29/11 11:06 PM (14 years ago)
Xcode will not automagically translate anything, you need to do this yourself. It's a matter of creating an additional file, then updating the values from english to your language. Remember, you're not updating the KEYS, only the VALUES. See the first part of this: http://www.skylarcantu.com/blog/2009/08/19/localization-your-iphone-os-applications-in-xcode/
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
11/30/11 12:49 AM (14 years ago)
@David.. as I wrote the original file that is generated needs to be edited (nothing is done automatically). Kahuna has already edited those values from what he said originally and above. @Kahuna to see those values reflected go to the simulator in xcode: Settings > General > International > Language.. change to the language that you just edited. The xcode simulator will refresh and you'll have to compile again and i'm sure you'll see the changes!
 
Kahuna
Apple Fan
Profile
Posts: 137
Reg: Nov 18, 2011
Milan
4,670
like
11/30/11 05:39 AM (14 years ago)
Thank you David, thank you mysps! I just had to change the settings and everything worked! By the way I had to change a line in the code in the mapview as the show user location was something like NSSstring stringWithFormat..... and I changed it in self.mapView.userLocation.title = NSLocalizedString (@actualPosition, @Actual Position); adding a localized string. I don't know if it's ok but that worked too, otherwise I had the text Your iPhone on the maps while in my country is something like Actual position. I just add that, when I was playing with the simulator, I added a gpx file in order to simulate the device position near to the POIs on my map and Xcode crashed, I just had to change the format of lat long using xx,9999 instead of the usual xx.9999 Thanks for all the support! Kahuna
 
satit
I hate code!
Profile
Posts: 89
Reg: Feb 16, 2012
bangkok
6,640
like
03/07/12 09:33 PM (13 years ago)
Hi,mysps I can not find Setting form Xcode Simulator. but i build for achiving in my ipod , because of already setting International language in thai but it still can not read my language(Thai). Hi,Kahuna In file MapViewController.m I changed the line self.mapView.userLocation.title = @You are here; to self.mapView.userLocation.title = @16.115838,99.464722; after build for achiving and test on my ipod. My language(thai) still can not read. Any idea. Thank you in advance. Satit P.
 

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.