//---------------------------------------------------------------------------
%newgroup
-enum wxLayoutDirection
-{
- wxLayout_Default,
- wxLayout_LeftToRight,
- wxLayout_RightToLeft
-};
-
-
enum wxLanguage
{
// user's default/preffered language as got from OS:
// Returns 'True' if it was successfully loaded
bool AddCatalog(const wxString& szDomain);
+ // check if the given locale is provided by OS and C run time
+ static bool IsAvailable(int lang);
+
// check if the given catalog is loaded
bool IsLoaded(const wxString& szDomain) const;
// Returns the current short name for the locale
const wxString& GetName() const;
+
+ %property(CanonicalName, GetCanonicalName, doc="See `GetCanonicalName`");
+ %property(Language, GetLanguage, doc="See `GetLanguage`");
+ %property(Locale, GetLocale, doc="See `GetLocale`");
+ %property(Name, GetName, doc="See `GetName`");
+ %property(String, GetString, doc="See `GetString`");
+ %property(SysName, GetSysName, doc="See `GetSysName`");
};
//---------------------------------------------------------------------------
class wxPyLocale : public wxLocale
{
public:
- %pythonAppend wxPyLocale "self._setCallbackInfo(self, PyLocale)"
+ %pythonAppend wxPyLocale setCallbackInfo(PyLocale)
// ctor & dtor
// -----------