aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/swig/localemgr.i
diff options
context:
space:
mode:
authordanglassey <danglassey>2002-08-14 09:57:17 +0000
committerdanglassey <danglassey>2002-08-14 09:57:17 +0000
commitc9458897ebbb739d8db83c80e06512d8a612f743 (patch)
treef8c5381045887e34388cc6b26cfccc254bf766dc /bindings/swig/localemgr.i
downloadsword-sf-cvs-c9458897ebbb739d8db83c80e06512d8a612f743.tar.gz
*** empty log message ***
Diffstat (limited to 'bindings/swig/localemgr.i')
-rw-r--r--bindings/swig/localemgr.i22
1 files changed, 22 insertions, 0 deletions
diff --git a/bindings/swig/localemgr.i b/bindings/swig/localemgr.i
new file mode 100644
index 0000000..2b38350
--- /dev/null
+++ b/bindings/swig/localemgr.i
@@ -0,0 +1,22 @@
+%{
+#include <localemgr.h>
+%}
+
+typedef map < string, SWLocale *, less < string > >LocaleMap;
+
+class LocaleMgr {
+public:
+ LocaleMgr (const char *iConfigPath = 0);
+ virtual ~LocaleMgr ();
+ virtual SWLocale *getLocale (const char *name);
+ virtual list < string > getAvailableLocales ();
+ //virtual const char *translate (const char *name, const char *text);
+ virtual const char *getDefaultLocaleName();
+ virtual void setDefaultLocaleName (const char *name);
+
+%extend {
+ static LocaleMgr* const systemLocaleMgr() {
+ return &(LocaleMgr::systemLocaleMgr);
+ };
+}
+};