git: faf33e05013f - main - cldr2def.pl: Add international currency parameters
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 06 Dec 2025 12:21:15 UTC
The branch main has been updated by jlduran:
URL: https://cgit.FreeBSD.org/src/commit/?id=faf33e05013fb3fc79cc035c1ff7b52f3fa1af1b
commit faf33e05013fb3fc79cc035c1ff7b52f3fa1af1b
Author: Jose Luis Duran <jlduran@FreeBSD.org>
AuthorDate: 2025-12-06 12:20:16 +0000
Commit: Jose Luis Duran <jlduran@FreeBSD.org>
CommitDate: 2025-12-06 12:20:16 +0000
cldr2def.pl: Add international currency parameters
Add the missing international monetary parameters present in the lconv
struct.
See also https://unicode-org.atlassian.net/browse/CLDR-237.
Reviewed by: bapt
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D53915
---
tools/tools/locale/tools/cldr2def.pl | 42 +++++++++++++++++++++++-------------
1 file changed, 27 insertions(+), 15 deletions(-)
diff --git a/tools/tools/locale/tools/cldr2def.pl b/tools/tools/locale/tools/cldr2def.pl
index ea49c21300c4..998e176de918 100755
--- a/tools/tools/locale/tools/cldr2def.pl
+++ b/tools/tools/locale/tools/cldr2def.pl
@@ -121,6 +121,12 @@ my %DESC = (
"n_sep_by_space" => "n_sep_by_space",
"p_sign_posn" => "p_sign_posn",
"n_sign_posn" => "n_sign_posn",
+ "int_p_cs_precedes" => "int_p_cs_precedes",
+ "int_n_cs_precedes" => "int_n_cs_precedes",
+ "int_p_sep_by_space" => "int_p_sep_by_space",
+ "int_n_sep_by_space" => "int_n_sep_by_space",
+ "int_p_sign_posn" => "int_p_sign_posn",
+ "int_n_sign_posn" => "int_n_sign_posn",
# msgdef
"yesexpr" => "yesexpr",
@@ -166,21 +172,27 @@ if ($TYPE eq "numericdef") {
if ($TYPE eq "monetdef") {
%keys = (
- "int_curr_symbol" => "s",
- "currency_symbol" => "s",
- "mon_decimal_point" => "s",
- "mon_thousands_sep" => "s",
- "mon_grouping" => "ai",
- "positive_sign" => "s",
- "negative_sign" => "s",
- "int_frac_digits" => "i",
- "frac_digits" => "i",
- "p_cs_precedes" => "i",
- "p_sep_by_space" => "i",
- "n_cs_precedes" => "i",
- "n_sep_by_space" => "i",
- "p_sign_posn" => "i",
- "n_sign_posn" => "i"
+ "int_curr_symbol" => "s",
+ "currency_symbol" => "s",
+ "mon_decimal_point" => "s",
+ "mon_thousands_sep" => "s",
+ "mon_grouping" => "ai",
+ "positive_sign" => "s",
+ "negative_sign" => "s",
+ "int_frac_digits" => "i",
+ "frac_digits" => "i",
+ "p_cs_precedes" => "i",
+ "p_sep_by_space" => "i",
+ "n_cs_precedes" => "i",
+ "n_sep_by_space" => "i",
+ "p_sign_posn" => "i",
+ "n_sign_posn" => "i",
+ "int_p_cs_precedes" => "i",
+ "int_n_cs_precedes" => "i",
+ "int_p_sep_by_space" => "i",
+ "int_n_sep_by_space" => "i",
+ "int_p_sign_posn" => "i",
+ "int_n_sign_posn" => "i"
);
get_fields();
print_fields();