X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/978af864269a739e77d9431c8465435e3f8f7407..a6b0e5bdddd91f2f07ec3527c2ebbe2930faf715:/include/wx/intl.h diff --git a/include/wx/intl.h b/include/wx/intl.h index 4a1b2b4ab8..471d9ad9ba 100644 --- a/include/wx/intl.h +++ b/include/wx/intl.h @@ -16,6 +16,16 @@ #include "wx/defs.h" #include "wx/string.h" +// Make wxLayoutDirection enum available without need for wxUSE_INTL so wxWindow, wxApp +// and other classes are not distrubed by wxUSE_INTL + +enum wxLayoutDirection +{ + wxLayout_Default, + wxLayout_LeftToRight, + wxLayout_RightToLeft +}; + #if wxUSE_INTL #include "wx/fontenc.h" @@ -302,13 +312,6 @@ enum wxLanguage // --- --- --- generated code ends here --- --- --- -enum wxLayoutDirection -{ - wxLayout_Default, - wxLayout_LeftToRight, - wxLayout_RightToLeft -}; - // ---------------------------------------------------------------------------- // wxLanguageInfo: encapsulates wxLanguage to OS native lang.desc. // translation information @@ -463,6 +466,9 @@ public: bool AddCatalog(const wxChar *szDomain, wxLanguage msgIdLanguage, const wxChar *msgIdCharset); + // 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 wxChar *szDomain) const; @@ -604,4 +610,3 @@ inline const wxChar *wxGetTranslation(const wxChar *sz1, const wxChar *sz2, #endif #endif // _WX_INTL_H_ -