1.1 --- a/core/Translator.h Thu Apr 05 03:16:03 2007 +0000
1.2 +++ b/core/Translator.h Thu Apr 05 05:25:11 2007 +0000
1.3 @@ -49,6 +49,8 @@
1.4 int *fmt_order; /**< Format phrase order. */
1.5 };
1.6
1.7 +#define LANGUAGE_ENGLISH 0
1.8 +
1.9 enum TransError
1.10 {
1.11 Trans_Okay = 0,
1.12 @@ -100,7 +102,11 @@
1.13 Translator();
1.14 ~Translator();
1.15 public: // SMGlobalClass
1.16 - CoreConfigErr OnSourceModConfigChanged(const char *option, const char *value);
1.17 + ConfigResult OnSourceModConfigChanged(const char *key,
1.18 + const char *value,
1.19 + ConfigSource source,
1.20 + char *error,
1.21 + size_t maxlength);
1.22 void OnSourceModAllInitialized();
1.23 public: // ITextListener_SMC
1.24 void ReadSMC_ParseStart();
1.25 @@ -121,7 +127,7 @@
1.26 const char *phrase,
1.27 void **params,
1.28 size_t *outlen=NULL);
1.29 - const char *GetServerLanguageCode() const;
1.30 + unsigned int GetServerLanguageCode();
1.31 private:
1.32 bool AddLanguage(const char *langcode, const char *description);
1.33 private: