mirror of
https://github.com/glest/glest-source.git
synced 2025-08-22 16:02:50 +02:00
- intro is now fully translatable and configurable (see english.lng file at the bottom for intro strings)
- added game loading text strings to language file - ONLY load the font type we are using
This commit is contained in:
@@ -44,11 +44,15 @@ private:
|
||||
PropertyMap propertyMap;
|
||||
string path;
|
||||
static string applicationPath;
|
||||
static string gameVersion;
|
||||
|
||||
public:
|
||||
static void setApplicationPath(string value) { applicationPath=value; }
|
||||
static string getApplicationPath() { return applicationPath; }
|
||||
|
||||
static void setGameVersion(string value) { gameVersion=value; }
|
||||
static string getGameVersion() { return gameVersion; }
|
||||
|
||||
void clear();
|
||||
void load(const string &path,bool clearCurrentProperties=true);
|
||||
void save(const string &path);
|
||||
|
@@ -44,6 +44,7 @@ using namespace Shared::Graphics;
|
||||
namespace Shared{ namespace Util{
|
||||
|
||||
string Properties::applicationPath = "";
|
||||
string Properties::gameVersion = "";
|
||||
|
||||
// =====================================================
|
||||
// class Properties
|
||||
@@ -506,6 +507,8 @@ std::map<string,string> Properties::getTagReplacementValues(std::map<string,stri
|
||||
//mapTagReplacementValues["%%COMMONDATAPATH%%", Properties::applicationPath + "/commondata/");
|
||||
#endif
|
||||
|
||||
mapTagReplacementValues["$GAMEVERSION"] = Properties::gameVersion;
|
||||
|
||||
//
|
||||
// #2
|
||||
// Next add the extra tags if passed in
|
||||
@@ -597,6 +600,7 @@ bool Properties::applyTagsToValue(string &value, std::map<string,string> *mapTag
|
||||
//replaceAll(value, "%%COMMONDATAPATH%%", Properties::applicationPath + "/commondata/");
|
||||
#endif
|
||||
|
||||
replaceAll(value, "$GAMEVERSION", Properties::gameVersion);
|
||||
}
|
||||
|
||||
//if(originalValue != value || originalValue.find("$APPLICATIONDATAPATH") != string::npos) {
|
||||
|
Reference in New Issue
Block a user