aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/swig/localemgr.i
blob: 2b38350cb4dc17cdfa28589eb8cc18cb04d5bc6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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);
  };
}
};