[PATCH v4 1/3] wrc: Support Asturian

Alex Henrie alexhenrie24 at gmail.com
Mon Apr 29 21:38:34 CDT 2019


From: Enol Puente <enolp at softastur.org>

Signed-off-by: Enol Puente <enolp at softastur.org>
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 include/winnt.rh  | 1 +
 tools/wmc/po.c    | 2 ++
 tools/wrc/po.c    | 2 ++
 tools/wrc/utils.c | 1 +
 4 files changed, 6 insertions(+)

diff --git a/include/winnt.rh b/include/winnt.rh
index 50aafb1d96..59791bc996 100644
--- a/include/winnt.rh
+++ b/include/winnt.rh
@@ -185,6 +185,7 @@
 #define LANG_VENDA          0x33
 
 /* non standard; keep the number high enough (but < 0xff) */
+#define LANG_ASTURIAN                    0xa5
 #define LANG_ESPERANTO			 0x8f
 #define LANG_WALON			 0x90
 #define LANG_CORNISH                     0x92
diff --git a/tools/wmc/po.c b/tools/wmc/po.c
index 8a8064a25f..bf10c50c63 100644
--- a/tools/wmc/po.c
+++ b/tools/wmc/po.c
@@ -82,6 +82,8 @@ static const struct
     { LANG_ARMENIAN,       SUBLANG_ARMENIAN_ARMENIA,            "hy_AM" },
     { LANG_ASSAMESE,       SUBLANG_NEUTRAL,                     "as" },
     { LANG_ASSAMESE,       SUBLANG_ASSAMESE_INDIA,              "as_IN" },
+    { LANG_ASTURIAN,       SUBLANG_NEUTRAL,                     "ast" },
+    { LANG_ASTURIAN,       SUBLANG_DEFAULT,                     "ast_ES" },
     { LANG_AZERBAIJANI,    SUBLANG_NEUTRAL,                     "az" },
     { LANG_AZERBAIJANI,    SUBLANG_AZERBAIJANI_AZERBAIJAN_LATIN,"az_AZ at latin" },
     { LANG_AZERBAIJANI,    SUBLANG_AZERBAIJANI_AZERBAIJAN_CYRILLIC, "az_AZ at cyrillic" },
diff --git a/tools/wrc/po.c b/tools/wrc/po.c
index 913a918a69..3f5affd49f 100644
--- a/tools/wrc/po.c
+++ b/tools/wrc/po.c
@@ -239,6 +239,8 @@ static const struct
     { LANG_ARMENIAN,       SUBLANG_ARMENIAN_ARMENIA,            "hy_AM" },
     { LANG_ASSAMESE,       SUBLANG_NEUTRAL,                     "as" },
     { LANG_ASSAMESE,       SUBLANG_ASSAMESE_INDIA,              "as_IN" },
+    { LANG_ASTURIAN,       SUBLANG_NEUTRAL,                     "ast" },
+    { LANG_ASTURIAN,       SUBLANG_DEFAULT,                     "ast_ES" },
     { LANG_AZERBAIJANI,    SUBLANG_NEUTRAL,                     "az" },
     { LANG_AZERBAIJANI,    SUBLANG_AZERBAIJANI_AZERBAIJAN_LATIN,"az_AZ at latin" },
     { LANG_AZERBAIJANI,    SUBLANG_AZERBAIJANI_AZERBAIJAN_CYRILLIC, "az_AZ at cyrillic" },
diff --git a/tools/wrc/utils.c b/tools/wrc/utils.c
index 5533a531f1..a1e07b85b2 100644
--- a/tools/wrc/utils.c
+++ b/tools/wrc/utils.c
@@ -457,6 +457,7 @@ static const struct lang2cp lang2cps[] =
     { LANG_ARABIC,         SUBLANG_NEUTRAL,              1256 },
     { LANG_ARMENIAN,       SUBLANG_NEUTRAL,              0    },
     { LANG_ASSAMESE,       SUBLANG_NEUTRAL,              0    },
+    { LANG_ASTURIAN,       SUBLANG_NEUTRAL,              1252 },
     { LANG_AZERI,          SUBLANG_NEUTRAL,              1254 },
     { LANG_AZERI,          SUBLANG_AZERI_CYRILLIC,       1251 },
     { LANG_BASHKIR,        SUBLANG_NEUTRAL,              1251 },
-- 
2.21.0




More information about the wine-devel mailing list