diff options
author | danglassey <danglassey> | 2002-08-14 09:57:17 +0000 |
---|---|---|
committer | danglassey <danglassey> | 2002-08-14 09:57:17 +0000 |
commit | c9458897ebbb739d8db83c80e06512d8a612f743 (patch) | |
tree | f8c5381045887e34388cc6b26cfccc254bf766dc /bindings/swig/localemgr.i | |
download | sword-sf-cvs-c9458897ebbb739d8db83c80e06512d8a612f743.tar.gz |
*** empty log message ***
Diffstat (limited to 'bindings/swig/localemgr.i')
-rw-r--r-- | bindings/swig/localemgr.i | 22 |
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); + }; +} +}; |