Add patch for locale

This patch introduces the en_SE locale with a date format that I like
master
Jacopo De Simoi 4 months ago
commit 4a2c33f517
  1. 155
      sys-libs/glibc/add-en_SE.patch

@ -0,0 +1,155 @@
diff -Nur a/localedata/locales/en_SE b/localedata/locales/en_SE
--- a/localedata/locales/en_SE 1969-12-31 19:00:00.000000000 -0500
+++ b/localedata/locales/en_SE 2025-11-11 11:28:42.367611208 -0500
@@ -0,0 +1,140 @@
+escape_char /
+comment_char %
+
+% English language locale for Sweden
+% Source: Datorföreningen Stacken, Kungliga Tekniska högskolan
+% Address: Datorföreningen Stacken, c/o NADA, KTH, 100 44 Stockholm, Sweden
+% Contact: Mikael Auno
+% Email: auno+en_SE@stacken.kth.se
+
+% Language: en
+% Territory: SE
+% Revision: 0.2
+% Date: 2009-02-02
+
+% *TODO/Questions*
+%
+% As this is a locale for a language that is not used in general in domestic
+% communication in the given territory (but which is used widely by computer
+% enthusiasts in computer related situations), a couple of questions arise which
+% might otherwise seem obvious.
+%
+% LC_COLLATE: Is collation a property of the language or the territory? Names of
+% local people and local places will definitely be communicated between users
+% within a territory, but how should these names be sorted with respect to
+% characters specific to that territory.
+%
+% LC_NUMERIC: Is the format of numeric expressions a property of the language or
+% the territory?
+%
+% LC_NAME: Is the format of the name representation a property of the language
+% or the territory? In Swedish in Sweden one would write a name as "Thomas
+% Andersson" whereas in English in the US one would write "Mr. Thomas Andersson",
+% which would be correct for English in Sweden?
+
+LC_IDENTIFICATION
+title "English locale for Sweden"
+source "Datorf<U00F6>reningen Stacken, Kungliga Tekniska h<U00F6>gskolan"
+address "Datorf<U00F6>reningen Stacken, c/o NADA, KTH, 100 44 Stockholm, Sweden"
+contact "Mikael Auno"
+email "auno+en_SE@stacken.kth.se"
+tel ""
+fax ""
+language "en"
+territory "SE"
+revision "0.2"
+date "2009-02-02"
+%
+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
+END LC_IDENTIFICATION
+
+LC_CTYPE
+copy "sv_SE"
+END LC_CTYPE
+
+LC_COLLATE
+copy "sv_SE"
+END LC_COLLATE
+
+LC_MONETARY
+copy "sv_SE"
+END LC_MONETARY
+
+LC_NUMERIC
+copy "sv_SE"
+END LC_NUMERIC
+
+LC_TIME
+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"
+
+% sv_SE
+% Appropriate date and time representation (%a %e %b %Y %H:%M:%S)
+d_t_fmt "%A W%V - %Y·%m·%d %T %Z"
+date_fmt "%A W%V - %Y·%m·%d %T %Z"
+d_fmt "%Y·%m·%d"
+t_fmt "%T"
+am_pm "";""
+t_fmt_ampm ""
+week 7;19971130;4
+first_weekday 2
+first_workday 2
+END LC_TIME
+
+LC_MESSAGES
+copy "en_US"
+END LC_MESSAGES
+
+LC_PAPER
+copy "sv_SE"
+END LC_PAPER
+
+LC_TELEPHONE
+copy "sv_SE"
+END LC_TELEPHONE
+
+LC_MEASUREMENT
+copy "sv_SE"
+END LC_MEASUREMENT
+
+LC_NAME
+copy "sv_SE"
+END LC_NAME
+
+LC_ADDRESS
+copy "sv_SE"
+END LC_ADDRESS
diff -Nur a/localedata/SUPPORTED b/localedata/SUPPORTED
--- a/localedata/SUPPORTED 2025-01-28 12:31:33.000000000 -0500
+++ b/localedata/SUPPORTED 2025-11-09 10:49:56.132959347 -0500
@@ -153,6 +153,7 @@
en_PH.UTF-8/UTF-8 \
en_PH/ISO-8859-1 \
en_SC.UTF-8/UTF-8 \
+en_SE.UTF-8/UTF-8 \
en_SG.UTF-8/UTF-8 \
en_SG/ISO-8859-1 \
en_US.UTF-8/UTF-8 \
Loading…
Cancel
Save