Last active 3 months ago

cas's Avatar cas revised this gist 3 months ago. Go to revision

2 files changed, 173 insertions

README.md(file created)

@@ -0,0 +1,22 @@
1 + # Locale en_NL
2 +
3 + I wanted a custom locale for my desktop. Most stuff is straight from en_US, but I've made some modifications.
4 +
5 + Most relevantly, the decimal separator is a period and thosuand separator a comma.
6 +
7 + ## Installing
8 + On Fedora 39, copy the file `en_NL` to `/usr/share/i18n/locales`
9 +
10 + Then, compile and select it:
11 +
12 + ```sh
13 + sudo localedef --no-archive -i en_NL -f UTF-8 en_NL.UTF-8
14 + sudo localectl set-locale en_NL.UTF-8
15 + gsettings set org.gnome.system.locale region "en_NL.utf8"
16 + ```
17 +
18 + Then logout and log back in and everything should be changed.
19 +
20 + ## Thanks
21 +
22 + Many thanks to [this answer on Unix Stack Exchange](https://unix.stackexchange.com/a/197693/38945)

en_NL(file created)

@@ -0,0 +1,151 @@
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
Newer Older