~davidc3/onehundredscopes/cities-precise

« back to all changes in this revision

Viewing changes to src/unity-scope-cities

  • Committer: David Callé
  • Date: 2011-12-01 18:51:08 UTC
  • Revision ID: davidc@framli.eu-20111201185108-6njnbc6ujwof0msj
Fahrenheit as default when 'numeric' locale is 'en_US'

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
socket.setdefaulttimeout(1)
26
26
BUS_NAME = "net.launchpad.scope.information.cities"
27
27
 
28
 
locale.setlocale(locale.LC_MESSAGES, '')
 
28
locale.setlocale(locale.LC_NUMERIC, '')
29
29
global session_locale
30
30
#session_locale = locale.getlocale(locale.LC_MESSAGES)[0].split("_")[0]
31
 
session_locale = locale.getlocale(locale.LC_MESSAGES)[0].split("_")[1]
 
31
session_locale = locale.getlocale(locale.LC_NUMERIC)[0].split("_")[1]
32
32
 
33
33
class Daemon:
34
34
        def __init__ (self):