Working on translations for dialogs and cutscenes
This commit is contained in:
1 parent
a98f71676d
commit
794a820be9
25 files changed
+3015
-123
No files matched your search
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
|
||||
namespace ZL {
|
||||
|
||||
enum class Language {
|
||||
Russian,
|
||||
English
|
||||
};
|
||||
|
||||
// Currently selected language for in-game text. Defaults to Russian.
|
||||
extern Language g_currentLanguage;
|
||||
|
||||
std::string languageToCode(Language lang);
|
||||
Language languageFromCode(const std::string& code);
|
||||
|
||||
// Reads the "language" field from settings.json (if present) and updates
|
||||
// g_currentLanguage. Safe to call even if settings.json doesn't exist yet.
|
||||
// Must run before any location/dialogue content is loaded, since some
|
||||
// location scripts start dialogues eagerly as soon as they're loaded.
|
||||
void loadLanguageSetting();
|
||||
|
||||
} // namespace ZL
|
||||
Reference in new issue
Block a user