diff -r 9fff953b8473 -r 5c0988b9bf0c core/Translator.h --- a/core/Translator.h Tue Apr 03 07:02:27 2007 +0000 +++ b/core/Translator.h Thu Apr 05 03:02:00 2007 +0000 @@ -99,9 +99,10 @@ public: Translator(); ~Translator(); -public: //SMGlobalClass +public: // SMGlobalClass + CoreConfigErr OnSourceModConfigChanged(const char *option, const char *value); void OnSourceModAllInitialized(); -public: //ITextListener_SMC +public: // ITextListener_SMC void ReadSMC_ParseStart(); SMCParseResult ReadSMC_NewSection(const char *name, bool opt_quotes); SMCParseResult ReadSMC_KeyValue(const char *key, const char *value, bool key_quotes, bool value_quotes); @@ -120,6 +121,7 @@ const char *phrase, void **params, size_t *outlen=NULL); + const char *GetServerLanguageCode() const; private: bool AddLanguage(const char *langcode, const char *description); private: @@ -129,6 +131,7 @@ Trie *m_pLCodeLookup; bool m_InLanguageSection; String m_CustomError; + char m_ServerLangCode[3]; }; extern CPhraseFile *g_pCorePhrases;