Mac Cocoa |
Author |
Message |
XNote Kapetan
Joined: 16 Jun 2006 Posts: 532
|
Posted: Tue Feb 21, 2012 2:44 pm Post subject: Localization |
|
|
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 |
|
|
XNote Kapetan
Joined: 16 Jun 2006 Posts: 532
|
Posted: Tue Feb 21, 2012 2:46 pm Post subject: |
|
|
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 |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Wed Feb 22, 2012 12:24 pm Post subject: |
|
|
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 |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Fri Jul 20, 2012 12:57 am Post subject: |
|
|
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 |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3152 Location: Europe
|
Posted: Fri Oct 19, 2012 6:04 pm Post subject: |
|
|
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 |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3152 Location: Europe
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3152 Location: Europe
|
|
Back to top |
|
|
|