Add wxUILocale::FromTag() helper
This is exactly the same as wxUILocale(wxLocaleIdent::FromTag()) but shorter.
This commit is contained in:
@@ -106,6 +106,12 @@ public:
|
||||
// Get the object corresponding to the currently used locale.
|
||||
static const wxUILocale& GetCurrent();
|
||||
|
||||
// A helper just to avoid writing wxUILocale(wxLocaleIdent::FromTag(...)).
|
||||
static wxUILocale FromTag(const wxString& tag)
|
||||
{
|
||||
return wxUILocale(wxLocaleIdent::FromTag(tag));
|
||||
}
|
||||
|
||||
// Create the object corresponding to the given locale.
|
||||
explicit wxUILocale(const wxLocaleIdent& localeId);
|
||||
|
||||
|
Reference in New Issue
Block a user