From 92c7366d1c96d882d95af9cee6af63547709b42e Mon Sep 17 00:00:00 2001 From: aviloria Date: Thu, 5 Dec 2019 16:51:09 +0100 Subject: [PATCH] COMMON: Add ZH_ANY language for generic chinese languages We have a game that has actual ZH_CNA, ZH_TWN translations and also ships with the same file set that formed ZH_CNA in previous game versions, when there was no separate Traditional/Simplified variants and was only one 'Chinese' --- common/language.cpp | 1 + common/language.h | 1 + 2 files changed, 2 insertions(+) diff --git a/common/language.cpp b/common/language.cpp index 0eb0411b1d1..488ec45e80e 100644 --- a/common/language.cpp +++ b/common/language.cpp @@ -27,6 +27,7 @@ namespace Common { const LanguageDescription g_languages[] = { + { "nz", "nz", "Chinese", ZH_ANY }, // Generic Chinese (when only one game version exist) { "zh-cn", "zh_CN", "Chinese (China)", ZH_CNA }, { "zh", "zh_TW", "Chinese (Taiwan)", ZH_TWN }, { "hr", "hr_HR", "Croatian", HR_HRV }, diff --git a/common/language.h b/common/language.h index aa2efdd82ea..04841d56b39 100644 --- a/common/language.h +++ b/common/language.h @@ -33,6 +33,7 @@ class String; * List of game language. */ enum Language { + ZH_ANY, // Generic Chinese (when only one game version exist) ZH_CNA, ZH_TWN, HR_HRV,