Re: Locales documentation - custom locale

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



9.11.2018 14:39 Dominik Grafenhofer <d.fedora@xxxxxxxxxxxxxx> wrote:
> 
> Hi all,
> 
> I would like to create a new custom locale (basically irish english +
> monday as first day of the week).

Off-topic: does not en_GB.utf8 provide this functionality?

Is there a bug in the existing en_IE locale which needs a fix?

> Where can I find recent information
> on how locales are implemented in Fedora (I am on Fedora 29)? I found
> lots of outdated information, which was somewhat helpful, but also
> quite confusing.

Locales are implemented in glibc rather than Fedora. I don't remember
where I saw it written but the message was that since all existing
documentation is currently outdated the recommended way is to take a source
code of any existing locale [1] and rework it for your own needs.

The tool to build your own locale data is called localedef. You can
find some documentation at the command line:

    localedef --help
    man localedef
    info localedef

The purpose of this tool is to allow the users to build and use their own
locales. You don't need the root privileges to use it. Therefore your idea
seems to be correct.

That said, I'm trying to find a simpler solution to your problem.

> Thank you,
> Dominik
> 
> Background: Gnome-shell does not allow to customize locale settings
> beyond choosing one locale setting globally (ui language, currency,
> first day of week,...).

I'm not sure but as far as I understand this, GNOME allows you to select
a locale for language (messages) and formats (I guess this is everything
else). Is it sufficient for you?

If not you may have to set the localization environment variables
(LC_MESSAGES, LC_TIME, LC_MEASUREMENT etc.) individually in your profile
scripts.

If really none of these options works then you will have to build your
own locale. Again, in order to use it you will have to set the environment
variables (e.g., path to your new locale) in your profile scripts.

Regards,

Rafal

[1] https://sourceware.org/git/?p=glibc.git;a=tree;f=localedata/locales
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux