Skip to content

Commit

Permalink
Add Catalan translation by mecatxis.
Browse files Browse the repository at this point in the history
Closes #2616.
  • Loading branch information
cybersphinx committed Apr 3, 2011
1 parent b80e713 commit 38088f3
Show file tree
Hide file tree
Showing 4 changed files with 15,279 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/framework/i18n.cpp
Expand Up @@ -39,6 +39,7 @@

// Language names (http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes)
#define LANG_NAME_BASQUE "euskara"
#define LANG_NAME_CATALAN "català"
#define LANG_NAME_CHINESE_SIMPLIFIED "汉语"
#define LANG_NAME_CHINESE_TRADITIONAL "漢語"
#define LANG_NAME_CROATIAN "Hrvatski"
Expand Down Expand Up @@ -90,6 +91,7 @@ static const struct
} map[] = {
{ "", N_("System locale"), LANG_NEUTRAL, SUBLANG_DEFAULT },
# if defined(ENABLE_NLS)
{ "ca", LANG_NAME_CATALAN, LANG_CATALAN, SUBLANG_DEFAULT },
{ "cs", LANG_NAME_CZECH, LANG_CZECH, SUBLANG_DEFAULT },
{ "da", LANG_NAME_DANISH, LANG_DANISH, SUBLANG_DEFAULT },
{ "de", LANG_NAME_GERMAN, LANG_GERMAN, SUBLANG_GERMAN },
Expand Down Expand Up @@ -150,6 +152,7 @@ static const struct
} map[] = {
{ "", N_("System locale"), "", "" },
# if defined(ENABLE_NLS)
{ "ca_ES", LANG_NAME_CATALAN, "ca_ES.UTF-8", "ca_ES" },
{ "cs", LANG_NAME_CZECH, "cs.UTF-8", "cs" },
{ "da", LANG_NAME_DANISH, "da_DK.UTF-8", "da_DK" },
{ "de", LANG_NAME_GERMAN, "de_DE.UTF-8", "de_DE" },
Expand Down
7 changes: 7 additions & 0 deletions pkg/nsis/warzone2100.nsi
Expand Up @@ -298,6 +298,9 @@ SectionGroupEnd
SectionGroup $(TEXT_SecNLS) SecNLS

Section "-NLS files" SecNLS_files
SetOutPath "$INSTDIR\locale\ca\LC_MESSAGES"
File "/oname=${PACKAGE}.mo" "${TOP_SRCDIR}\po\ca_ES.gmo"

SetOutPath "$INSTDIR\locale\cs\LC_MESSAGES"
File "/oname=${PACKAGE}.mo" "${TOP_SRCDIR}\po\cs.gmo"

Expand Down Expand Up @@ -686,6 +689,10 @@ Section "Uninstall"

; remove all the locales

Delete "$INSTDIR\locale\ca\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\ca\LC_MESSAGES"
RMDir "$INSTDIR\locale\ca"

Delete "$INSTDIR\locale\cs\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\cs\LC_MESSAGES"
RMDir "$INSTDIR\locale\cs"
Expand Down
1 change: 1 addition & 0 deletions po/LINGUAS
@@ -1,3 +1,4 @@
ca_ES
cs
da
de
Expand Down

0 comments on commit 38088f3

Please sign in to comment.