mirror of
https://github.com/glest/glest-source.git
synced 2025-08-18 14:11:15 +02:00
- added missing translation strings to spanish (used bablefish for translations)
- updated exit text to support newlines in language text - added support for netwlines in language string code
This commit is contained in:
@@ -831,6 +831,16 @@ bool isKeyDown(int virtualKey) {
|
||||
}
|
||||
|
||||
|
||||
string replaceAll(string& context, const string& from, const string& to) {
|
||||
size_t lookHere = 0;
|
||||
size_t foundHere;
|
||||
while((foundHere = context.find(from, lookHere)) != string::npos) {
|
||||
context.replace(foundHere, from.size(), to);
|
||||
lookHere = foundHere + to.size();
|
||||
}
|
||||
return context;
|
||||
}
|
||||
|
||||
// =====================================
|
||||
// ModeInfo
|
||||
// =====================================
|
||||
|
Reference in New Issue
Block a user