Skip to content

Commit 9c6b0b8

Browse files
committed
Add Catalan translation by mecatxis.
Closes #2616.
1 parent 2510696 commit 9c6b0b8

File tree

4 files changed

+15279
-0
lines changed

4 files changed

+15279
-0
lines changed

lib/framework/i18n.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
// Language names (http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes)
4141
#define LANG_NAME_BASQUE "euskara"
42+
#define LANG_NAME_CATALAN "català"
4243
#define LANG_NAME_CHINESE_SIMPLIFIED "汉语"
4344
#define LANG_NAME_CHINESE_TRADITIONAL "漢語"
4445
#define LANG_NAME_CROATIAN "Hrvatski"
@@ -90,6 +91,7 @@ static const struct
9091
} map[] = {
9192
{ "", N_("System locale"), LANG_NEUTRAL, SUBLANG_DEFAULT },
9293
# if defined(ENABLE_NLS)
94+
{ "ca", LANG_NAME_CATALAN, LANG_CATALAN, SUBLANG_DEFAULT },
9395
// { "cs", LANG_NAME_CZECH, LANG_CZECH, SUBLANG_DEFAULT },
9496
// { "da", LANG_NAME_DANISH, LANG_DANISH, SUBLANG_DEFAULT },
9597
{ "de", LANG_NAME_GERMAN, LANG_GERMAN, SUBLANG_GERMAN },
@@ -150,6 +152,7 @@ static const struct
150152
} map[] = {
151153
{ "", N_("System locale"), "", "" },
152154
# if defined(ENABLE_NLS)
155+
{ "ca_ES", LANG_NAME_CATALAN, "ca_ES.UTF-8", "ca_ES" },
153156
// { "cs", LANG_NAME_CZECH, "cs.UTF-8", "cs" },
154157
// { "da", LANG_NAME_DANISH, "da_DK.UTF-8", "da_DK" },
155158
{ "de", LANG_NAME_GERMAN, "de_DE.UTF-8", "de_DE" },

pkg/nsis/warzone2100.nsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,9 @@ SectionGroupEnd
336336
SectionGroup $(TEXT_SecNLS) SecNLS
337337

338338
Section "-NLS files" SecNLS_files
339+
SetOutPath "$INSTDIR\locale\ca\LC_MESSAGES"
340+
File "/oname=${PACKAGE}.mo" "${TOP_SRCDIR}\po\ca_ES.gmo"
341+
339342
SetOutPath "$INSTDIR\locale\cs\LC_MESSAGES"
340343
File "/oname=${PACKAGE}.mo" "${TOP_SRCDIR}\po\cs.gmo"
341344

@@ -752,6 +755,10 @@ Section "Uninstall"
752755

753756
; remove all the locales
754757

758+
Delete "$INSTDIR\locale\ca\LC_MESSAGES\${PACKAGE}.mo"
759+
RMDir "$INSTDIR\locale\ca\LC_MESSAGES"
760+
RMDir "$INSTDIR\locale\ca"
761+
755762
Delete "$INSTDIR\locale\cs\LC_MESSAGES\${PACKAGE}.mo"
756763
RMDir "$INSTDIR\locale\cs\LC_MESSAGES"
757764
RMDir "$INSTDIR\locale\cs"

po/LINGUAS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
ca_ES
12
cs
23
da
34
de

0 commit comments

Comments
 (0)