25 #ifndef AURORA_LANGUAGE_H 26 #define AURORA_LANGUAGE_H 40 class SeekableReadStream;
41 class MemoryReadStream;
275 #define LangMan ::Aurora::LanguageManager::instance() 277 #endif // AURORA_LANGUAGE_H
Language _currentLanguageVoice
Common::Encoding encoding
void setCurrentLanguageText(Language language)
Change the current language, for text only.
Class and macro for implementing singletons.
void setCurrentLanguage(Language language)
Change the current language, setting both text and voice to the same language.
const Declaration * find(Language language) const
A class holding an UTF-8 string.
LanguageByLanguage _langByLang
The global language manager.
static uint32 convertLanguageIDToGendered(uint32 languageID, LanguageGender gender)
Convert an ungendered language ID to a gendered language ID.
uint32 getLanguageID(Language language) const
Construct the internal language ID for an ungendered use of a language.
static Common::MemoryReadStream * preParseColorCodes(Common::SeekableReadStream &stream)
Pre-parse and fix color codes found in UI and dialogue strings in Aurora games.
std::map< uint32, Declaration > LanguageByID
LanguageGender getCurrentGender() const
Return the gender modulating the current language.
Common::Encoding getEncodingLocString(Language language) const
Return the encoding used for the given language, for reading an embedded LocString string...
Language getCurrentLanguageText() const
Return the current language for text.
Language getCurrentLanguageVoice() const
Return the current language for voices.
static Common::UString getLanguageName(Language language)
Return the human readable name of a language.
Generic template base class for implementing the singleton design pattern.
static LanguageGender getLanguageGender(uint32 languageID)
Return the gender of this gendered language ID.
Language getLanguage(uint32 languageID) const
Decode the internal language ID for an ungendered use of a language.
void addLanguages(const Declaration *languageDeclarations, size_t count)
Add several supported language for the current game to the LanguageManager, together with their inter...
Language _currentLanguageText
Simple memory based 'stream', which implements the ReadStream interface for a plain memory block...
Utility functions for working with differing string encodings.
Low-level type definitions to handle fixed width types portably.
static uint32 swapLanguageGender(uint32 languageID)
Swap the gender of this gendered language ID.
void setCurrentLanguageVoice(Language language)
Change the current language, for voice only.
Common::Encoding getEncoding(Language language) const
Return the encoding used for the given language.
void addLanguage(Language language, uint32 id, Common::Encoding encoding)
Add a supported language for the current game to the LanguageManager, together with its internal (ung...
Common::Encoding getCurrentEncodingLocString() const
Return the encoding for the current text language, for reading an embedded LocString string...
Basic type definitions to handle files used in BioWare's Aurora engine.
std::vector< Language > getLanguages() const
Return all declared supported languages for the current game.
std::map< Language, Declaration > LanguageByLanguage
LanguageGender _currentGender
Pseudo value that means the current language gender.
Common::Encoding getCurrentEncoding() const
Return the encoding for the current text language.
Pseudo value that means either traditional or simplified Chinese.
Common::Encoding encodingLocString
Pseudo value for debug strings.
Language getLanguageGendered(uint32 languageID) const
Decode the internal language ID for a gendered use of a language (and ignore the language gender)...
void clear()
Clear all managed languages from the LanguageManager.
static Language parseLanguage(const Common::UString &str)
Parse this string into a language.
Interface for a seekable & readable data stream.
static uint32 convertLanguageIDToUngendered(uint32 languageID)
Convert a gendered language ID to an ungendered language ID.
void setCurrentGender(LanguageGender gender)
Change the gender modulating the current language.