summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-09-29 12:57:29 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2012-10-02 23:09:02 +0200
commit2638a957420cad42050b259abf465b1a6d46d923 (patch)
tree943578231ef05132366e4e256945afc356882892
parent1a5fba3b7f1fe6b2119a7bf706bc733ad3438a43 (diff)
Implement SetLanguageString()
-rw-r--r--SPICEConsoleAPI.cpp8
-rw-r--r--SPICEConsoleAPI.h1
2 files changed, 8 insertions, 1 deletions
diff --git a/SPICEConsoleAPI.cpp b/SPICEConsoleAPI.cpp
index 7fddfb9..030accd 100644
--- a/SPICEConsoleAPI.cpp
+++ b/SPICEConsoleAPI.cpp
@@ -42,7 +42,13 @@ void SPICEConsoleAPI::disconnect()
void SPICEConsoleAPI::SetLanguageStrings(const std::string &section,
const std::string &lang)
-{}
+{
+ if ((section.size() == 0) || (lang.size() == 0)) {
+ return;
+ }
+
+ m_languages[section] = lang;
+}
void SPICEConsoleAPI::SetUsbFilter(const std::string &filter)
{}
diff --git a/SPICEConsoleAPI.h b/SPICEConsoleAPI.h
index 12c9887..ca9a093 100644
--- a/SPICEConsoleAPI.h
+++ b/SPICEConsoleAPI.h
@@ -92,6 +92,7 @@ public:
private:
SPICEConsoleWeakPtr m_plugin;
FB::BrowserHostPtr m_host;
+ std::map<std::string, std::string> m_languages;
/* Properties */
std::string m_SSLChannels;