Igor Delovski Board Forum Index Igor Delovski Board
My Own Personal Slashdot!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Localization

 
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa
Mac Cocoa  
Author Message
XNote
Kapetan


Joined: 16 Jun 2006
Posts: 532

PostPosted: Tue Feb 21, 2012 2:44 pm    Post subject: Localization Reply with quote

so - Non-English default language for iOS App?

"There is a problem when the device is not set to one of the languages we
support, for example, on my phone which is set to English. We want the
phone to fall back to German in cases like this, but that is not happening."


...

Code:
NSArray *langOrder = [NSArray arrayWithObjects:@"de", nil];
[[NSUserDefaults standardUserDefaults] setObject:langOrder forKey:@"AppleLanguages"];


Last edited by XNote on Tue Feb 21, 2012 2:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
XNote
Kapetan


Joined: 16 Jun 2006
Posts: 532

PostPosted: Tue Feb 21, 2012 2:46 pm    Post subject: Reply with quote

icanlocalize.com - iPhone Applications Localization Guide

"This guide will show you how to convert a single-language iPhone
application, built with Xcode, into a multilingual application.

Contents:

Making Resources Localizable in Xcode
Localizing Interface Builder files
Collecting embedded texts into resource files
Translating the resource files
Importing the translation to the iPhone application
Testing the translation in an iPhone device"
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Wed Feb 22, 2012 12:24 pm    Post subject: Reply with quote

JLM - Another Category on NSString

"You can call it like this:
BOOL isFloat = [@"12345.00" holdsFloatingPointValue];

If you needed to determine if it was a valid floating point number using a
different locale, that's also an option with the second method. It works like
this:

BOOL isFloatForLocale = [@"123456.00" holdsFloatingPointValueForLocale:theLocale];

The third method tells you if a string contains an integer value.

BOOL isInteger = [@"12345" holdsIntegerValue];

Nothing earth-shattering here, but might save you some time somewhere
down the road."

Code:
NSString *currencySymbol = [locale objectForKey:NSLocaleCurrencySymbol];
NSString *decimalSeparator = [locale objectForKey:NSLocaleDecimalSeparator];
NSString *groupingSeparator = [locale objectForKey:NSLocaleGroupingSeparator];
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Fri Jul 20, 2012 12:57 am    Post subject: Reply with quote

so - How to create sectioned/grouped table view alphabetically

"An indexed list is a table view in the plain style that is specially configured
through three UITableViewDataSource methods:

-sectionIndexTitlesForTableView:
-tableView:titleForHeaderInSection:
-tableView:sectionForSectionIndexTitle:atIndex:

The first method returns an array of the strings to use as the index entries
(in order), the second method maps these index strings to the titles of the
table-view’s sections (they don’t have to be the same), and the third me-
thod returns the section index related to the entry the user tapped in the
index."
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3146
Location: Europe

PostPosted: Fri Oct 19, 2012 6:04 pm    Post subject: Reply with quote

engineering.meetme.com - i18n on iOS – MeetMe Style

"Internationalizing an existing iOS codebase, especially like the one we
have for the MeetMe app, can be a big process. This post sums up the
major points of the process. Some of the points here are particularly
important, especially if you are going to be supporting specific language
dialects in an application."
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3146
Location: Europe

PostPosted: Thu May 09, 2019 8:19 am    Post subject: Reply with quote

https://old.reddit.com/r/iOSProgramming/comments/bm51mj/localization_in_ios_and_how_to_make_it_not_suck/
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Mon Mar 09, 2020 6:46 pm    Post subject: Reply with quote

r - How to localize app language programmatically?

"My app is written programmatically, no storyboard, and I'm trying to add
support for other languages."
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3146
Location: Europe

PostPosted: Sat Sep 19, 2020 7:00 pm    Post subject: Reply with quote

r - Any free resource/database for localization?

"Apple itself is providing a database/tool (AppleGlot). Visit this link.
And scroll down to 'Localizing Strings Files Using AppleGlot'.

Apple provides localization glossaries. Find more info here."
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Delovski.hr
Powered by php-B.B. © 2001, 2005 php-B.B. Group