Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F126598
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/util/language-string.h b/util/language-string.h
index 23bba798..ac1d77d1 100644
--- a/util/language-string.h
+++ b/util/language-string.h
@@ -1,36 +1,40 @@
#ifndef _paintown_language_string_h
#define _paintown_language_string_h
#include <string>
#include <map>
class LanguageString: public std::string {
public:
LanguageString();
LanguageString(const char * stuff);
LanguageString(const std::string & stuff);
LanguageString(const std::string & stuff, const std::string & language);
LanguageString(const LanguageString & language);
LanguageString & operator=(const LanguageString & obj);
static const std::string defaultLanguage(){
return "English";
}
const std::string currentLanguage() const {
return "English";
}
/* add a new language translation */
void add(const std::string & stuff, const std::string & language);
/* adds with the default language */
void add(const std::string & stuff);
const std::string & get();
+ inline const std::map<std::string, std::string> & getLanguages() const {
+ return languages;
+ }
+
protected:
std::map<std::string, std::string> languages;
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Jun 11, 12:08 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
68962
Default Alt Text
(1 KB)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline