README.md
· 658 B · Markdown
Raw
# Locale en_NL
I wanted a custom locale for my desktop. Most stuff is straight from en_US, but I've made some modifications.
Most relevantly, the decimal separator is a period and thosuand separator a comma.
## Installing
On Fedora 39, copy the file `en_NL` to `/usr/share/i18n/locales`
Then, compile and select it:
```sh
sudo localedef --no-archive -i en_NL -f UTF-8 en_NL.UTF-8
sudo localectl set-locale en_NL.UTF-8
gsettings set org.gnome.system.locale region "en_NL.utf8"
```
Then logout and log back in and everything should be changed.
## Thanks
Many thanks to [this answer on Unix Stack Exchange](https://unix.stackexchange.com/a/197693/38945)
Locale en_NL
I wanted a custom locale for my desktop. Most stuff is straight from en_US, but I've made some modifications.
Most relevantly, the decimal separator is a period and thosuand separator a comma.
Installing
On Fedora 39, copy the file en_NL to /usr/share/i18n/locales
Then, compile and select it:
sudo localedef --no-archive -i en_NL -f UTF-8 en_NL.UTF-8
sudo localectl set-locale en_NL.UTF-8
gsettings set org.gnome.system.locale region "en_NL.utf8"
Then logout and log back in and everything should be changed.
Thanks
Many thanks to this answer on Unix Stack Exchange
en_NL
· 3.0 KiB · Text
Raw
escape_char /
comment_char %
LC_IDENTIFICATION
title "English locale for the Netherlands"
source "none"
contact ""
email "github@cascer1.space"
language "English"
territory "Netherlands"
revision "1.0"
date "2024-01-10"
category "i18n:2012";LC_IDENTIFICATION
category "i18n:2012";LC_CTYPE
category "i18n:2012";LC_COLLATE
category "i18n:2012";LC_TIME
category "i18n:2012";LC_NUMERIC
category "i18n:2012";LC_MONETARY
category "i18n:2012";LC_MESSAGES
category "i18n:2012";LC_PAPER
category "i18n:2012";LC_NAME
category "i18n:2012";LC_ADDRESS
category "i18n:2012";LC_TELEPHONE
category "i18n:2012";LC_MEASUREMENT
END LC_IDENTIFICATION
LC_CTYPE
% From en_US
copy "i18n"
END LC_CTYPE
LC_COLLATE
% From en_US
copy "iso14651_t1"
END LC_COLLATE
LC_MONETARY
% From nl_NL
int_curr_symbol "EUR "
currency_symbol "<U20AC>"
% From en_US
mon_decimal_point "."
mon_thousands_sep ","
mon_grouping 3;3
positive_sign ""
negative_sign "-"
int_frac_digits 2
frac_digits 2
p_cs_precedes 1
int_p_sep_by_space 1
p_sep_by_space 0
n_cs_precedes 1
int_n_sep_by_space 1
n_sep_by_space 0
p_sign_posn 1
n_sign_posn 1
END LC_MONETARY
LC_NUMERIC
%From en_US
copy "en_US"
END LC_NUMERIC
LC_TIME
% copy "en_GB"
abday "Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat"
day "Sunday";/
"Monday";/
"Tuesday";/
"Wednesday";/
"Thursday";/
"Friday";/
"Saturday"
abmon "Jan";"Feb";/
"Mar";"Apr";/
"May";"Jun";/
"Jul";"Aug";/
"Sep";"Oct";/
"Nov";"Dec"
mon "January";/
"February";/
"March";/
"April";/
"May";/
"June";/
"July";/
"August";/
"September";/
"October";/
"November";/
"December"
d_t_fmt "%a %d %b %Y %T"
date_fmt "%a %d %b %Y %T %Z"
t_fmt "%T"
am_pm "";""
t_fmt_ampm ""
first_weekday 2
week 7;19971130;4
d_fmt "%Y-%m-%d"
END LC_TIME
LC_MESSAGES
% From en_US
yesexpr "^[+1yY]"
noexpr "^[-0nN]"
yesstr "yes"
nostr "no"
END LC_MESSAGES
LC_PAPER
copy "nl_NL"
END LC_PAPER
LC_NAME
% From en_US
name_fmt "%d%t%g%t%m%t%f"
name_miss "Miss."
name_mr "Mr."
name_mrs "Mrs."
name_ms "Ms."
% Custom en_NL
name_gen "Mr./Mrs."
END LC_NAME
LC_ADDRESS
% From en_US
lang_name "English"
lang_ab "en"
lang_term "eng"
lang_lib "eng"
% From nl_NL
postal_fmt "%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N"
country_ab2 "NL"
country_ab3 "NLD"
country_num 528
country_car "NL"
% Custom en_NL
country_name "Netherlands"
END LC_ADDRESS
LC_TELEPHONE
tel_int_fmt "+%c %a %l"
int_prefix "31"
int_select "00"
tel_dom_fmt "(%A) %l"
END LC_TELEPHONE
LC_MEASUREMENT
copy "nl_NL"
END LC_MEASUREMENT
| 1 | escape_char / |
| 2 | comment_char % |
| 3 | |
| 4 | LC_IDENTIFICATION |
| 5 | title "English locale for the Netherlands" |
| 6 | source "none" |
| 7 | contact "" |
| 8 | email "github@cascer1.space" |
| 9 | language "English" |
| 10 | territory "Netherlands" |
| 11 | revision "1.0" |
| 12 | date "2024-01-10" |
| 13 | |
| 14 | category "i18n:2012";LC_IDENTIFICATION |
| 15 | category "i18n:2012";LC_CTYPE |
| 16 | category "i18n:2012";LC_COLLATE |
| 17 | category "i18n:2012";LC_TIME |
| 18 | category "i18n:2012";LC_NUMERIC |
| 19 | category "i18n:2012";LC_MONETARY |
| 20 | category "i18n:2012";LC_MESSAGES |
| 21 | category "i18n:2012";LC_PAPER |
| 22 | category "i18n:2012";LC_NAME |
| 23 | category "i18n:2012";LC_ADDRESS |
| 24 | category "i18n:2012";LC_TELEPHONE |
| 25 | category "i18n:2012";LC_MEASUREMENT |
| 26 | END LC_IDENTIFICATION |
| 27 | |
| 28 | LC_CTYPE |
| 29 | % From en_US |
| 30 | copy "i18n" |
| 31 | END LC_CTYPE |
| 32 | |
| 33 | LC_COLLATE |
| 34 | % From en_US |
| 35 | copy "iso14651_t1" |
| 36 | END LC_COLLATE |
| 37 | |
| 38 | LC_MONETARY |
| 39 | % From nl_NL |
| 40 | int_curr_symbol "EUR " |
| 41 | currency_symbol "<U20AC>" |
| 42 | % From en_US |
| 43 | mon_decimal_point "." |
| 44 | mon_thousands_sep "," |
| 45 | mon_grouping 3;3 |
| 46 | positive_sign "" |
| 47 | negative_sign "-" |
| 48 | int_frac_digits 2 |
| 49 | frac_digits 2 |
| 50 | p_cs_precedes 1 |
| 51 | int_p_sep_by_space 1 |
| 52 | p_sep_by_space 0 |
| 53 | n_cs_precedes 1 |
| 54 | int_n_sep_by_space 1 |
| 55 | n_sep_by_space 0 |
| 56 | p_sign_posn 1 |
| 57 | n_sign_posn 1 |
| 58 | END LC_MONETARY |
| 59 | |
| 60 | LC_NUMERIC |
| 61 | %From en_US |
| 62 | copy "en_US" |
| 63 | END LC_NUMERIC |
| 64 | |
| 65 | LC_TIME |
| 66 | % copy "en_GB" |
| 67 | abday "Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat" |
| 68 | day "Sunday";/ |
| 69 | "Monday";/ |
| 70 | "Tuesday";/ |
| 71 | "Wednesday";/ |
| 72 | "Thursday";/ |
| 73 | "Friday";/ |
| 74 | "Saturday" |
| 75 | abmon "Jan";"Feb";/ |
| 76 | "Mar";"Apr";/ |
| 77 | "May";"Jun";/ |
| 78 | "Jul";"Aug";/ |
| 79 | "Sep";"Oct";/ |
| 80 | "Nov";"Dec" |
| 81 | mon "January";/ |
| 82 | "February";/ |
| 83 | "March";/ |
| 84 | "April";/ |
| 85 | "May";/ |
| 86 | "June";/ |
| 87 | "July";/ |
| 88 | "August";/ |
| 89 | "September";/ |
| 90 | "October";/ |
| 91 | "November";/ |
| 92 | "December" |
| 93 | d_t_fmt "%a %d %b %Y %T" |
| 94 | date_fmt "%a %d %b %Y %T %Z" |
| 95 | t_fmt "%T" |
| 96 | am_pm "";"" |
| 97 | t_fmt_ampm "" |
| 98 | first_weekday 2 |
| 99 | week 7;19971130;4 |
| 100 | d_fmt "%Y-%m-%d" |
| 101 | END LC_TIME |
| 102 | |
| 103 | LC_MESSAGES |
| 104 | % From en_US |
| 105 | yesexpr "^[+1yY]" |
| 106 | noexpr "^[-0nN]" |
| 107 | yesstr "yes" |
| 108 | nostr "no" |
| 109 | END LC_MESSAGES |
| 110 | |
| 111 | LC_PAPER |
| 112 | copy "nl_NL" |
| 113 | END LC_PAPER |
| 114 | |
| 115 | LC_NAME |
| 116 | % From en_US |
| 117 | name_fmt "%d%t%g%t%m%t%f" |
| 118 | name_miss "Miss." |
| 119 | name_mr "Mr." |
| 120 | name_mrs "Mrs." |
| 121 | name_ms "Ms." |
| 122 | % Custom en_NL |
| 123 | name_gen "Mr./Mrs." |
| 124 | END LC_NAME |
| 125 | |
| 126 | LC_ADDRESS |
| 127 | % From en_US |
| 128 | lang_name "English" |
| 129 | lang_ab "en" |
| 130 | lang_term "eng" |
| 131 | lang_lib "eng" |
| 132 | % From nl_NL |
| 133 | postal_fmt "%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N" |
| 134 | country_ab2 "NL" |
| 135 | country_ab3 "NLD" |
| 136 | country_num 528 |
| 137 | country_car "NL" |
| 138 | % Custom en_NL |
| 139 | country_name "Netherlands" |
| 140 | END LC_ADDRESS |
| 141 | |
| 142 | LC_TELEPHONE |
| 143 | tel_int_fmt "+%c %a %l" |
| 144 | int_prefix "31" |
| 145 | int_select "00" |
| 146 | tel_dom_fmt "(%A) %l" |
| 147 | END LC_TELEPHONE |
| 148 | |
| 149 | LC_MEASUREMENT |
| 150 | copy "nl_NL" |
| 151 | END LC_MEASUREMENT |