Add Danish translation (#7771)

This commit is contained in:
Michael Steenbeek 2018-07-19 21:15:54 +02:00 committed by GitHub
parent 9c46187b91
commit 8530d56a66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5396 additions and 0 deletions

5389
data/language/da-DK.txt Normal file

File diff suppressed because it is too large Load diff

View file

@ -3,6 +3,7 @@
- Feature: [#5993] Ride window prices can now be set via text input.
- Feature: [#6998] Guests now wait for passing vehicles before crossing railway tracks.
- Feature: [#7694] Debug option to visualize paths that the game detects as wide.
- Feature: [#7771] Danish translation.
- Fix: [#3177] Wrong keys displayed in shortcut menu.
- Fix: [#7533] Screenshot is incorrectly named/file is not generated in CJK language.
- Fix: [#7628] Always-researched items can be modified in the inventory list.

View file

@ -28,6 +28,7 @@ const language_descriptor LanguagesDescriptors[LANGUAGE_COUNT] =
{ "zh-CN", "Chinese (Simplified)", "Chinese (Simplified)", FAMILY(&TTFFamilyChineseSimplified), RCT2_LANGUAGE_ID_CHINESE_SIMPLIFIED }, // LANGUAGE_CHINESE_SIMPLIFIED
{ "zh-TW", "Chinese (Traditional)", "Chinese (Traditional)", FAMILY(&TTFFamilyChineseTraditional), RCT2_LANGUAGE_ID_CHINESE_TRADITIONAL }, // LANGUAGE_CHINESE_TRADITIONAL
{ "cs-CZ", "Czech", "Czech", FAMILY(&TTFFamilySansSerif), RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_CZECH
{ "da-DK", "Danish", "Dansk", FAMILY_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_DANISH
{ "de-DE", "German", "Deutsch", FAMILY_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_GERMAN }, // LANGUAGE_GERMAN
{ "en-GB", "English (UK)", "English (UK)", FAMILY_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_ENGLISH_UK
{ "en-US", "English (US)", "English (US)", FAMILY_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_ENGLISH_US }, // LANGUAGE_ENGLISH_US

View file

@ -22,6 +22,7 @@ enum {
LANGUAGE_CHINESE_SIMPLIFIED,
LANGUAGE_CHINESE_TRADITIONAL,
LANGUAGE_CZECH,
LANGUAGE_DANISH,
LANGUAGE_GERMAN,
LANGUAGE_ENGLISH_UK,
LANGUAGE_ENGLISH_US,

View file

@ -279,6 +279,10 @@ uint16_t platform_get_locale_language()
else if (strcmp(langCode, "NOR") == 0){
return LANGUAGE_NORWEGIAN;
}
else if (strcmp(langCode, "DAN") == 0)
{
return LANGUAGE_DANISH;
}
return LANGUAGE_UNDEFINED;
}