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

django message files work in project folder but doesn't work in app folder

I am testing django system and I started a project and a app for it. I have a problem with i18n system. I have used _() function in app's view.py. I put the 'django.middleware.locale.LocaleMiddleware' line in the MIDDLEWARE_CLASSES in project's…
Volkan Ozyilmaz
  • 470
  • 4
  • 19
2
votes
3 answers

Calculate user’s time using TimezoneOffset

I am trying the get the user’s local time to store into my database. I cannot use PHP function now() as it returns the server’s time. I have got the TimezoneOffset by using JavaScript: d = new Date(); alert(d.getTimezoneOffset()/60); How can I…
Elliott
  • 3,812
  • 24
  • 69
  • 93
2
votes
1 answer

jQuery .load() with different language

I'm using jQuery to load a file into one DIV: $(".menu").click(function() { var page = $(this).attr("title"); $('#content').load('content/'+ page+'.php'); }); Before loading, the page is displaying OTHER LANGUAGE -- it is done…
2
votes
2 answers

How do you convert character case in UNIX accurately? (assuming i18N)

I'm trying to get a feel for how to manipulate characters and character sets in UNIX accurately given the existance of differing locales - and doing so without requiring special tools outside of UNIX standard items. My research has shown me the…
Mei
  • 1,129
  • 1
  • 11
  • 20
2
votes
1 answer

Currency locale for devexpress pivot field

Is there a way to set a field`s locale by designer in a devexpress pivot? Or i should do it by some way with code? What i want is to have a field to show euro currency whatever locale user have in his machine.
ddarellis
  • 3,912
  • 3
  • 25
  • 53
2
votes
1 answer

Configured default locale not taken into account?

I configured a default locale, and set up a text.properties + text_de.properties. en text
membersound
  • 81,582
  • 193
  • 585
  • 1,120
2
votes
1 answer

JSF f:convertNumber only converts currency correctly on localhost

When using my app within the development environment, the currencies are all correctly converted by JSF. But when I deploy it to my production server, which is hosted somewhere else, the conversions are not correct (see below). I think the locale…
SpecialAgent
  • 110
  • 2
  • 8
2
votes
1 answer

In Java ME how do I change the direction of the stuff displayed to go right-to-left just for my MIDlet?

My Java ME MIDlet allows its user to change the language of the Midlet. My code handles the internationalization, and it works fine for left-to-right languages. But when the user changes the language to Right-To-Left language, the correct strings…
inor
  • 2,781
  • 2
  • 32
  • 42
2
votes
1 answer

Get locale using graph api NOT getSignedRequest

I know it is possible to get the locale of the user with getSignedRequest, and it is possible to get the locale of the user with https://graph.facebook.com/me?fields=locale once they have authorised the app. But what is the equivalent graph api url…
Baxter
  • 169
  • 4
  • 14
2
votes
2 answers

Win32 Api to convert 2-letter (neutral) identifiers to Language

I need to convert some 2-letter (neutral) identifiers (like en for English) so something more friendly for user, like English. Is there an Api that does that using Win32 ? So far I have found only LCID family of functions that doesn't help.
cprogrammer
  • 5,503
  • 3
  • 36
  • 56
2
votes
1 answer

(e)grep: accented characters not recognised as part of a word

I would like to use (e)grep to match a whole word using the -w switch. I've set the locale, but accented characters are being treated as word boundaries as in this example: $…
user918938
2
votes
1 answer

Where can I find user culture if not in Thread.CurrentCilture

Is it possible to find user's culture if I cannot use Thread.CurrentCulture nor (naturally) CultureInfo.CurrentCulture? I cannot use them because I'm just modifying small part of the huge project, and Thread.CurrentCulture is set to different…
alpha-mouse
  • 4,953
  • 24
  • 36
2
votes
1 answer

get date format by locale code javascript

I was wondering whether there is a special function to be used in javascript to get a dateFormat by locale code. String dateFmt = function_get_date_format_by_locale_code ('en'); would return MM/dd/yyyy.
ghTvNath
  • 357
  • 2
  • 6
  • 25
2
votes
1 answer

Grails command object data binding behaviour on different locales

Grails (1.3.7) data binding behaviour differs with locales. It is ok but not works for my case. class XCommand{ Double value //this value comes from an external service which has no idea about locale so default as en_ //also it is a…
hgoz
  • 641
  • 6
  • 18
2
votes
2 answers

Changing application locale makes changes to all users (Vaadin)

In my application I set up the locale when the user get into the system to localize the components. Recently I was giving a demo and noticed that the language was switching from English to Dutch without apparent reason. It turned out that the demo…
javydreamercsw
  • 5,363
  • 13
  • 61
  • 106
1 2 3
99
100