[PATCH] gl_ES locale: Fix formatting and update day/month names (bug 35007)

Andrea R. arebla@proton.me
Mon Nov 16 15:17:50 GMT 2026


- p_cs_precedes/n_cs_precedes were 1 (symbol before amount); now 0,
  matching es_ES and Unicode CLDR's currency pattern for gl.
- LC_NUMERIC had no digit grouping; now matches LC_MONETARY's
  grouping of 3, as in es_ES.
- d_t_fmt/date_fmt were missing "de" connectors (e.g. "23 out. 2026"
  instead of "23 de out. de 2026"), per CLDR's medium date pattern.
- abday/day/abmon/mon updated to lowercase (matching es_ES) and to
  CLDR's Galician-specific abbreviated forms, which differ from
  es_ES's (periods on most entries; "luns"/"maio"/"xuño" stay
  unabbreviated).

https://www.unicode.org/cldr/charts/48/verify/numbers/gl.html
https://www.unicode.org/cldr/charts/48/verify/dates/gl.html

Tested with localedef and locale -ck.

Signed-off-by: Andrea R. <arebla@proton.me>
---
 localedata/locales/gl_ES | 126 ++++++++++++++++++++-------------------
 1 file changed, 66 insertions(+), 60 deletions(-)

diff --git a/localedata/locales/gl_ES b/localedata/locales/gl_ES
index 3bb8fb0035..fa274f62de 100644
--- a/localedata/locales/gl_ES
+++ b/localedata/locales/gl_ES
@@ -9,32 +9,38 @@ escape_char /
 % otherwise be governed by that license.

 % Galician Language Locale for Spain
-% Source: GPUL
-% Address: Facultade de Informática
-%          Campus de Elvin~a, s/n
-%          15071 A Corun~a, Spain
-% Contact: Jacobo Tarrio
-% Email: gpul@ceu.fi.udc.es
+% Source:
+% Address:
+% Contact:
+% Email:
 % Language: gl
 % Territory: ES
-% Revision: 1.0
-% Date: 1999-07-07
+% Revision: 1.1
+% Date: 2026-10-23
 % Application: general
 % Users: general
-% Based in the es_ES Locale
+% Based on the es_ES Locale
+%
+% This locale follows the Unicode CLDR (Common Locale Data Repository)
+% data for Galician where applicable:
+%  - Dates:            https://www.unicode.org/cldr/charts/48/verify/dates/gl.html
+%  - Numbers/currency: https://www.unicode.org/cldr/charts/48/verify/numbers/gl.html
+% Note: glibc's LC_NUMERIC/LC_MONETARY grouping has no equivalent of CLDR's
+% minimumGroupingDigits, so 4-digit numbers are grouped here (e.g. 1.234)
+% even though CLDR only groups from 5 digits (10.000) onward.

 LC_IDENTIFICATION
 title      "Galician locale for Spain"
-source     "GPUL"
-address    "Facultade de Informática, Campus de Elviña, s//n, 15071 A Coruña, Spain"
+source     ""
+address    ""
 contact    ""
-email      "libc-alpha@sourceware.org"
+email      ""
 tel        ""
 fax        ""
 language   "Galician"
 territory  "Spain"
-revision   "1.0"
-date       "2000-06-29"
+revision   "1.1"
+date       "2026-10-23"

 category "i18n:2012";LC_IDENTIFICATION
 category "i18n:2012";LC_CTYPE
@@ -75,9 +81,9 @@ positive_sign        ""
 negative_sign        "-"
 int_frac_digits      2
 frac_digits          2
-p_cs_precedes        1
+p_cs_precedes        0
 p_sep_by_space       1
-n_cs_precedes        1
+n_cs_precedes        0
 n_sep_by_space       1
 p_sign_posn          1
 n_sign_posn          1
@@ -85,45 +91,45 @@ END LC_MONETARY

 LC_NUMERIC
 decimal_point        ","
-thousands_sep        ""
-grouping             -1
+thousands_sep        "."
+grouping             3
 END LC_NUMERIC

 LC_TIME
-abday   "Dom";"Lun";/
-        "Mar";"Mér";/
-        "Xov";"Ven";/
-        "Sáb"
-day     "Domingo";/
-        "Luns";/
-        "Martes";/
-        "Mércores";/
-        "Xoves";/
-        "Venres";/
-        "Sábado"
-abmon   "Xan";"Feb";/
-        "Mar";"Abr";/
-        "Mai";"Xuñ";/
-        "Xul";"Ago";/
-        "Set";"Out";/
-        "Nov";"Dec"
-mon     "Xaneiro";/
-        "Febreiro";/
-        "Marzo";/
-        "Abril";/
-        "Maio";/
-        "Xuño";/
-        "Xullo";/
-        "Agosto";/
-        "Setembro";/
-        "Outubro";/
-        "Novembro";/
-        "Decembro"
-d_t_fmt  "%a %d %b %Y %T"
-date_fmt "%a %d %b %Y %T %Z"
-d_fmt   "%d//%m//%y"
-t_fmt   "%T"
-am_pm   "";""
+abday    "dom.";"luns";/
+         "mar.";"mér.";/
+         "xov.";"ven.";/
+         "sáb."
+day      "domingo";/
+         "luns";/
+         "martes";/
+         "mércores";/
+         "xoves";/
+         "venres";/
+         "sábado"
+abmon    "xan.";"feb.";/
+         "mar.";"abr.";/
+         "maio";"xuño";/
+         "xul.";"ago.";/
+         "set.";"out.";/
+         "nov.";"dec."
+mon      "xaneiro";/
+         "febreiro";/
+         "marzo";/
+         "abril";/
+         "maio";/
+         "xuño";/
+         "xullo";/
+         "agosto";/
+         "setembro";/
+         "outubro";/
+         "novembro";/
+         "decembro"
+d_t_fmt  "%a %d de %b de %Y %T"
+date_fmt "%a %d de %b de %Y %T %Z"
+d_fmt    "%d//%m//%y"
+t_fmt    "%T"
+am_pm    "";""
 t_fmt_ampm ""
 week 7;19971130;4
 first_weekday 2
@@ -134,8 +140,8 @@ copy "i18n"
 END LC_PAPER

 LC_TELEPHONE
-tel_int_fmt    "+%c %a %l"
-int_prefix     "34"
+tel_int_fmt "+%c %a %l"
+int_prefix  "34"
 int_select  "00"
 END LC_TELEPHONE

@@ -148,14 +154,14 @@ name_fmt    "%d%t%g%t%m%t%f"
 END LC_NAME

 LC_ADDRESS
-postal_fmt    "%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N"
+postal_fmt   "%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N"
 country_name "España"
-country_ab2 "ES"
-country_ab3 "ESP"
-country_num 724
-country_car "E"
+country_ab2  "ES"
+country_ab3  "ESP"
+country_num  724
+country_car  "E"
 lang_name    "galego"
 lang_ab      "gl"
 lang_term    "glg"
-lang_lib    "glg"
+lang_lib     "glg"
 END LC_ADDRESS
--
2.56.0


More information about the Libc-alpha mailing list