Questions tagged [locale]

In computing, locale is a set of parameters that defines the user's language, country and any special variant preferences that the user wants to see in their user interface. Usually a locale identifier consists of at least a language identifier and a region identifier.

Examples of variable output controlled by a locale is whether a date is displayed as 25/12/2012 or 12/25/2012 or some other format, and whether a decimal number is displayed as 123,456.78 or 123.456,78

5203 questions
2
votes
1 answer

Struts (1) default locale isn't chosen

In my application user can choose from 2 locales, EN and IT. If the browser uses another language, then the English must be chosen automatically, right? BUT, here is the problem, that when for example user comes with French browser, he tries to find…
2
votes
1 answer

How javascript knows about the current locale in Rails 3?

I'm trying to get a resouce from my autocomplete.js.coffee(.erb) file. The resource's URL is dependent on the current locale. That is, /en/ajax/posts or /he/ajax/posts Please note the /en/. The problem is, I cannot determine the locale from…
valk
  • 9,363
  • 12
  • 59
  • 79
2
votes
1 answer

Change the week start day on DTPicker

Is it possible to change the Day of the Week that the DTPicker control uses for the first day of the week 'on the fly'? I know that it uses the system first day of the week (as defined in control panel) for this setting but can it be changed to use…
Matt Wilko
  • 26,994
  • 10
  • 93
  • 143
2
votes
1 answer

Where does the JVM get the locale settings in ubuntu 10.10?

My web app runs fine after I changed the system locale however whenever files are generated (java.text.numberformat.getCurrencyInstance() ) the currency shown in the files are in $ as opposed to € which is the currency for the system locale. The web…
Dark Star1
  • 6,986
  • 16
  • 73
  • 121
2
votes
2 answers

localizing strings in javascript

We need to be able to localize strings in javascript - thinking for things like the app_offline.htm file etc. jquery globalize is hectic and seems like total overkill. Is there a simple jquery plugin or anything really that will allow us to localize…
user156888
2
votes
2 answers

Override locale in an Android application

I know there are quite some questions about this topic already but I simply can't get it to work. What I want to achieve is the following: A android phone no matter what language is used starts my Application. From that point the locale is…
patrick
  • 1,282
  • 4
  • 21
  • 37
2
votes
0 answers

Forcing 'who' utility to use date format: "%Y-%m-%d %H:%M" [LC_TIME]

How to force 'who' core utility to use "%Y-%m-%d %H:%M" date format? I have tried modifying my LANG, LC_ALL, LC_TIME, but none of them produced the required result. I have manged to get it working on by the following command: env -i ssh…
davidlt
  • 1,007
  • 2
  • 11
  • 17
2
votes
1 answer

OCUnit : changing the user's locale for testing

This is a simple question : is it possible to change the locale while unit testing ? I'd like to check that my label is "Monday" in english and "lundi" in french for example.
Julien
  • 9,312
  • 10
  • 63
  • 86
2
votes
1 answer

Localization unit tests for Symfony 2

When running phpunit -c vendor/symfony/ 24 of 10758 assertions fail. The errors exclusively occur in localization tasks... some examples: 1)…
Paul Voss
  • 705
  • 1
  • 6
  • 18
2
votes
0 answers
2
votes
1 answer

Can't get the return value of dijit.form.DateTextBox formatted properly

I can't get my return value from a dijit.form.DateTextBox formatted properly. I create the dijit like this: this.inputValueParam = new dijit.form.DateTextBox({constraints: { datePattern : 'yyyy-MM-dd' }}).placeAt('paramTypeSelect', 'after'); and I…
user1020761
  • 41
  • 1
  • 3
2
votes
3 answers

how do you read locale information from session?

The following bit of code sets the Locale from lang param on querystring. How do I now read that variable? I know its a bit noobish. I need…
raq
  • 175
  • 1
  • 2
  • 11
2
votes
1 answer

Sytem locale doesnt retrieved at jvm startyup

After changing my system locale (region and currency), i expected to be able to use the newly defined value in my java programs. But after running a small exemple the currency still use the old value. Is there something special to do in macosx to…
benzen
  • 6,204
  • 4
  • 25
  • 37
2
votes
1 answer

Locale-aware JavaScript validation

Can you suggest a locale-aware way to validate a currency value on the client using Javascript? Obvious issue to consider: 1,234.56 in the US and UK is the same as 1.234,56 in most of Europe Sri
Sri Sankaran
  • 8,120
  • 4
  • 38
  • 47
2
votes
1 answer

render currency symbol based on locale

I have a JSP with some monetary amounts in £s. I want people viewing the same page from the US to see $ symbol instead of £s. (Forget for a moment that the values ought to be converted as well). I am using this JSTL solution to set the…
hobbes_child
  • 131
  • 2
  • 12
1 2 3
99
100