← Back to team overview

touch-packages team mailing list archive

[Bug 1392699] Re: Can't change locale settings (e.g. language, 12/24-hour time, date format) independently

 

By reading ubuntu-system-settings/trunk/plugins/language/language-
plugin.cpp source code, it appears that this rather common problem
(preferred en_US locale and 24-hour military clock) happens because
selected language (translated to locale) is assigned *both* to the
Language and FormatsLocale of the org.freedesktop.Accounts.User
properties.

It can be fixed (until you change it with ubuntu-system-settings again)
by changing FormatsLocale after you've set your desired language, and
restarting device:

$ dbus-send --print-reply --system --dest=org.freedesktop.Accounts
/org/freedesktop/Accounts/User$UID
org.freedesktop.Accounts.User.SetFormatsLocale string:'ru_RU.UTF-8'

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1392699

Title:
  Can't change locale settings (e.g. language, 12/24-hour time, date
  format) independently

Status in libc package in Ubuntu:
  Invalid
Status in ubuntu-system-settings package in Ubuntu:
  Confirmed
Status in ubuntu-ui-toolkit package in Ubuntu:
  Invalid

Bug description:
  A. Try to use US English, but with all apps using 24-hour instead of 12-hour time. Or:
  B. Try to use UK English, but with all apps using YYYY-MM-DD date format.

  What happens: You can't.
  What should happen: You can.

  Since Ubuntu has existed, it has used the GNU locale system. This
  system assumes that every single person using a particular locale
  wants exactly the same settings for time display, date display,
  currency display, alphabetizing, and number formatting.
  <http://www.gnu.org/software/libc/manual/html_node/Effects-of-
  Locale.html>

  Windows, Mac OS, and (to a lesser extent) iOS have always been more
  flexible: setting a locale sets appropriate defaults for these
  settings, but you can also change them individually. Ubuntu should do
  the same.

  This might involve changing the locale system itself, or it might
  involve changing all relevant toolkits so that they ignore the locale
  system when appropriate.

  It would also involve adding settings in System Settings to customize
  the individual locale details.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libc/+bug/1392699/+subscriptions


References