(svn r21164) -Codechange: replace the hardcoded array of language metadata with a list

This commit is contained in:
rubidium
2010-11-13 12:09:30 +00:00
parent 68b94e61e0
commit 8aba642ed5
5 changed files with 36 additions and 52 deletions

View File

@@ -12,8 +12,6 @@
#ifndef STRINGS_TYPE_H
#define STRINGS_TYPE_H
#include "language.h"
/**
* Numeric value that represents a string, independent of the selected language.
*/
@@ -28,13 +26,6 @@ enum TextDirection {
TD_RTL, ///< Text is written right-to-left by default
};
/** Used for dynamic language support */
struct DynamicLanguages {
int num; ///< Number of languages
char curr_file[MAX_PATH]; ///< Currently selected language file name without path (needed for saving the filename of the loaded language).
LanguageMetadata ent[MAX_LANG]; ///< Information about the languages
};
/** Special string constants */
enum SpecialStrings {