i18n: Style fixes.
svn-id: r52257
This commit is contained in:
parent
d986a78834
commit
a53d4dde66
2 changed files with 42 additions and 46 deletions
|
@ -43,8 +43,8 @@ DECLARE_SINGLETON(Common::TranslationManager)
|
||||||
|
|
||||||
namespace Common {
|
namespace Common {
|
||||||
|
|
||||||
bool operator<(const TLanguage& l1, const TLanguage& l2) {
|
bool operator<(const TLanguage &l, const TLanguage &r) {
|
||||||
return strcmp(l1.name, l2.name) < 0;
|
return strcmp(l.name, r.name) < 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_TRANSLATION
|
#ifdef USE_TRANSLATION
|
||||||
|
@ -384,3 +384,4 @@ const char *TranslationManager::getCurrentCharset() {
|
||||||
#endif // USE_TRANSLATION
|
#endif // USE_TRANSLATION
|
||||||
|
|
||||||
} // End of namespace Common
|
} // End of namespace Common
|
||||||
|
|
||||||
|
|
|
@ -40,18 +40,11 @@ struct TLanguage {
|
||||||
const char *name;
|
const char *name;
|
||||||
int id;
|
int id;
|
||||||
|
|
||||||
TLanguage() {
|
TLanguage() : name(0), id(0) {}
|
||||||
name = 0;
|
TLanguage(const char *n, int i) : name(n), id(i) {}
|
||||||
id = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
TLanguage(const char *n, int i) {
|
|
||||||
name = n;
|
|
||||||
id = i;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
bool operator<(const TLanguage&, const TLanguage&);
|
bool operator<(const TLanguage &l, const TLanguage &r);
|
||||||
|
|
||||||
typedef Array<TLanguage> TLangArray;
|
typedef Array<TLanguage> TLangArray;
|
||||||
|
|
||||||
|
@ -140,12 +133,14 @@ private:
|
||||||
* Load the list of languages from the translations.dat file
|
* Load the list of languages from the translations.dat file
|
||||||
*/
|
*/
|
||||||
void loadTranslationsInfoDat();
|
void loadTranslationsInfoDat();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the translation for the given language from the translations.dat file
|
* Load the translation for the given language from the translations.dat file
|
||||||
*
|
*
|
||||||
* @param index of the language in the list of languages
|
* @param index of the language in the list of languages
|
||||||
*/
|
*/
|
||||||
void loadLanguageDat(int);
|
void loadLanguageDat(int);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check the header of the given file to make sure it is a valid translations data file.
|
* Check the header of the given file to make sure it is a valid translations data file.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue