Supports multiple languages. More...
#include <string>
#include <vector>
#include <stack>
#include <list>
#include <map>
#include "utils/memleak.h"
#include "utils/my_assert.h"
#include "utils.h"
#include "params.h"
Go to the source code of this file.
Classes | |
class | c_lang_entry |
Stores one message from language file. More... | |
class | c_lang_file |
Stores language file. More... | |
Functions | |
void | lang_get_langs (int file_id, vector< string > &langs) |
Enumerates available languages. | |
string | lang_get_string (int file_id, string lang, int id) |
Gets language-specific string, and initializes an array if needed. | |
void | lang_rehash () |
Rehashses the language files. | |
string | lang_subst (string str, string substr) |
Routine for "%s" substitution. | |
string | lang_subst (string str, const map< string, string > &subst) |
Routine for "%xxx;" substitution. | |
string | lang_subst_multi (const string &str, const vector< string > &subst) |
Substitutes multiple. |
Supports multiple languages.
Definition in file lang.h.