From 0323fd872307dd5f6216f7d9760fbf1e89312a6f Mon Sep 17 00:00:00 2001 From: Rafael Ortiz Date: Thu, 13 Oct 2011 17:11:58 +0000 Subject: improving detection of lang for format (sl#2944) --- diff --git a/clock.py b/clock.py index 1893b77..2f1fc94 100755 --- a/clock.py +++ b/clock.py @@ -96,7 +96,7 @@ from timewriter import TimeWriter import dbus import os - +import locale # The display modes of the clock _MODE_SIMPLE_CLOCK = 0 _MODE_NICE_CLOCK = 1 @@ -138,6 +138,15 @@ class ClockActivity(activity.Activity): '%m/' + '%d/' + '%Y') + + loc = locale.getdefaultlocale()[0] or 'en_AU' + if loc == 'en_AU': + self._DATE_SHORT_FORMAT = _("Write Date", + '' + '%A,' + '%d/' + '%m/' + '%Y') # Should we write the time in full letters? self._write_time = False -- cgit v0.9.1