All Questions

138
votes
5answers
35412 views

What is the best way to deal with the NSDateFormatter locale "feechur"?

It seems that NSDateFormatter has a "feature" that bites you unexpectedly: If you do a simple "fixed" format operation such as: NSDateFormatter* fmt = [[NSDateFormatter alloc] init]; [fmt setDateFor...
179
votes
6answers
131873 views

Changing Locale within the app itself

My users can change the Locale within the app (they may want to keep their phone settings in English but read the content of my app in French, Dutch or any other language ...) Why is this working per...
37
votes
4answers
28138 views

IPython Notebook locale error

After installing the latest Mac OSX 64-bit Anaconda Python distribution, I keep getting a ValueError when trying to start the IPython Notebook. Starting ipython works fine: 3-millerc-~:ipython Pytho...
83
votes
8answers
66749 views

Set Locale programmatically

My app supports 3 (soon 4) languages. Since several locales are quite similar I'd like to give the user the option to change locale in my application, for instance an Italian person might prefer Spani...
36
votes
5answers
22906 views

Android context.getResources.updateConfiguration() deprecated

Just recently context.getResources().updateConfiguration() has been deprecated in Android API 25 and it is advised to use context.createConfigurationContext() instead. Does anyone know how createConf...
39
votes
15answers
39859 views

Displaying Currency in Indian Numbering Format

I have a question about formatting the Rupee currency (Indian Rupee - INR). Typically a value like 450500 is formatted and shown as 450,500. In India, the same value is displayed as 4,50,500 For exa...
61
votes
8answers
145355 views

SimpleDateFormat and locale based format string

I'm trying to format a date in Java in different ways based on the given locale. For instance I want English users to see "Nov 1, 2009" (formatted by "MMM d, yyyy") and Norwegian users to see "1. nov....
149
votes
12answers
162001 views

Python locale error: unsupported locale setting

Why do I get the following error when doing this in python: >>> import locale >>> print str( locale.getlocale() ) (None, None) >>> locale.setlocale(locale.LC_ALL, 'de_DE') ...
14
votes
2answers
17419 views

Get NSDate from NSDate adjusted with timezone

I have a NSDate object. Let's say it represents "1-10-2011" NSDate *date = [df dateFromString:@"2011-10-01 00:00:00"]; That date translates into "2011-09-30 22:00:00" because of my timezone. Quest...
39
votes
3answers
22747 views

how to get string from different locales in Android?

So I want to get the value of a String in several locales regardless of the current locale setting of the device/app. How should I do that? Basically what I need is a function getString(int id, Strin...

Previous Next