[NUUG fiksgatami] Decimal point separator
Matthew Somerville
matthew at mysociety.org
Sat Feb 14 12:34:23 CET 2009
Hi,
The commit I've just made:
https://secure.mysociety.org/cvstrac/chngview?cn=14147
enables the location display to work fine with a Norwegian locale, for
example: http://matthew.fixmystreet.com/?pc=sw1a1aa (with my browser's
language set to nb). Hope that makes sense.
What you need to do is push('en-gb') before any database call or similar
(in this case, a call to Gaze) that needs an English locale number, then
pop() afterwards.
It could probably be factored better, in that it should probably only
require push('en-gb') once, fetch the data from the database, pop(), and
then construct all the output text, rather than do it 3 or 4 times as
the output is being generated between each database call.
ATB,
Matthew
More information about the fiksgatami
mailing list