You are not logged in.

#1 2018-09-15 13:27:30

samrob85
Member
Registered: 2017-07-23
Posts: 31

Creating a locale like en_GB but with 12 hour time format

I am trying to get a locale like en_GB but with 12-hour time formats, as I want SDDM to display in the 12-hour time format. Unfortunately setting the time section of the locale to Australian does not work in this case as I also want the calendar to start on a Monday, which the GB locale does, but the AU does not. From this, I understand that I am supposed to create a custom locale to suit my needs, but I don't know how to do so

Offline

#2 2018-09-15 14:04:11

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Creating a locale like en_GB but with 12 hour time format

Reading man localectl hasn't given you an idea about how the different parts of the locale work without writing a new one?

Offline

#3 2018-09-15 14:22:31

samrob85
Member
Registered: 2017-07-23
Posts: 31

Re: Creating a locale like en_GB but with 12 hour time format

Awebb wrote:

Reading man localectl hasn't given you an idea about how the different parts of the locale work without writing a new one?

I understand how I can set just the LC_TIME part to Australian, but as I said in my original post, this does not help as I don't want the en_GB LC_TIME as it is in the 24 hour format, and I don't want en_AU LC_TIME as it has the week starting on Sunday. So yes. reading man localectl gave me an idea about how the different parts of a locale work without writing a new one, but I couldn't find anything in it which told me about how to specify specific parts of the LC_TIME section of the locale to choose, like choosing the 12 hour format of the AU locale and the week starting on monday part of the GB locale

Offline

#4 2018-09-15 14:41:32

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Creating a locale like en_GB but with 12 hour time format

/usr/share/i18n/locales/

Name syntax is language_REGION@modifier.

Might be of interest: http://cldr.unicode.org/

EDIT: Okay, maybe more hints how to find this information next time:

1. The wiki already tells you that "locales are used by glibc and other locale-aware programs or libraries for rendering text, correctly displaying regional monetary values, time and date formats, alphabetic idiosyncrasies, and other locale-specific standards."
2. Google: glibc create new locale
3. First hit states, where you can find the files.

Last edited by Awebb (2018-09-15 14:46:38)

Offline

Board footer

Powered by FluxBB