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 {
|
||||
|
||||
bool operator<(const TLanguage& l1, const TLanguage& l2) {
|
||||
return strcmp(l1.name, l2.name) < 0;
|
||||
bool operator<(const TLanguage &l, const TLanguage &r) {
|
||||
return strcmp(l.name, r.name) < 0;
|
||||
}
|
||||
|
||||
#ifdef USE_TRANSLATION
|
||||
|
@ -384,3 +384,4 @@ const char *TranslationManager::getCurrentCharset() {
|
|||
#endif // USE_TRANSLATION
|
||||
|
||||
} // End of namespace Common
|
||||
|
||||
|
|
|
@ -40,18 +40,11 @@ struct TLanguage {
|
|||
const char *name;
|
||||
int id;
|
||||
|
||||
TLanguage() {
|
||||
name = 0;
|
||||
id = 0;
|
||||
}
|
||||
|
||||
TLanguage(const char *n, int i) {
|
||||
name = n;
|
||||
id = i;
|
||||
}
|
||||
TLanguage() : name(0), 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;
|
||||
|
||||
|
@ -140,12 +133,14 @@ private:
|
|||
* Load the list of languages from the translations.dat file
|
||||
*/
|
||||
void loadTranslationsInfoDat();
|
||||
|
||||
/**
|
||||
* Load the translation for the given language from the translations.dat file
|
||||
*
|
||||
* @param index of the language in the list of languages
|
||||
*/
|
||||
void loadLanguageDat(int);
|
||||
|
||||
/**
|
||||
* 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