1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2001-04-06 17:22:04 +00:00
|
|
|
// Name: wx/intl.h
|
2004-05-23 14:56:36 +00:00
|
|
|
// Purpose: Internationalization and localisation for wxWidgets
|
1998-05-20 14:01:55 +00:00
|
|
|
// Author: Vadim Zeitlin
|
2003-10-04 22:38:00 +00:00
|
|
|
// Modified by: Michael N. Filippov <michael@idisys.iae.nsk.su>
|
|
|
|
// (2003/09/30 - plural forms support)
|
1998-05-20 14:01:55 +00:00
|
|
|
// Created: 29/01/98
|
|
|
|
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2001-05-31 20:27:37 +00:00
|
|
|
#ifndef _WX_INTL_H_
|
|
|
|
#define _WX_INTL_H_
|
1998-05-20 14:01:55 +00:00
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#include "wx/string.h"
|
2010-04-24 07:06:32 +00:00
|
|
|
#include "wx/translation.h"
|
2010-04-24 07:06:18 +00:00
|
|
|
|
2006-09-04 19:22:57 +00:00
|
|
|
// 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
|
|
|
|
};
|
|
|
|
|
1999-06-01 15:32:12 +00:00
|
|
|
#if wxUSE_INTL
|
|
|
|
|
2001-05-31 20:27:37 +00:00
|
|
|
#include "wx/fontenc.h"
|
2010-04-24 07:06:32 +00:00
|
|
|
#include "wx/language.h"
|
2001-05-31 20:27:37 +00:00
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
// ============================================================================
|
|
|
|
// global decls
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// macros
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// forward decls
|
|
|
|
// ----------------------------------------------------------------------------
|
2001-03-21 19:07:23 +00:00
|
|
|
|
2007-07-09 10:09:52 +00:00
|
|
|
class WXDLLIMPEXP_FWD_BASE wxLocale;
|
|
|
|
class WXDLLIMPEXP_FWD_BASE wxLanguageInfoArray;
|
1998-05-20 14:01:55 +00:00
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// locale support
|
|
|
|
// ============================================================================
|
|
|
|
|
2001-01-23 23:17:57 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxLanguageInfo: encapsulates wxLanguage to OS native lang.desc.
|
|
|
|
// translation information
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2003-07-02 01:59:24 +00:00
|
|
|
struct WXDLLIMPEXP_BASE wxLanguageInfo
|
2001-01-23 23:17:57 +00:00
|
|
|
{
|
|
|
|
int Language; // wxLanguage id
|
|
|
|
wxString CanonicalName; // Canonical name, e.g. fr_FR
|
2012-03-04 00:29:31 +00:00
|
|
|
#ifdef __WINDOWS__
|
2001-05-31 20:27:37 +00:00
|
|
|
wxUint32 WinLang, // Win32 language identifiers
|
|
|
|
WinSublang;
|
2012-03-04 00:29:31 +00:00
|
|
|
#endif // __WINDOWS__
|
2001-01-23 23:17:57 +00:00
|
|
|
wxString Description; // human-readable name of the language
|
2006-09-04 13:35:13 +00:00
|
|
|
wxLayoutDirection LayoutDirection;
|
2008-02-11 23:23:10 +00:00
|
|
|
|
2012-03-04 00:29:31 +00:00
|
|
|
#ifdef __WINDOWS__
|
2008-02-11 23:23:10 +00:00
|
|
|
// return the LCID corresponding to this language
|
|
|
|
wxUint32 GetLCID() const;
|
2012-03-04 00:29:31 +00:00
|
|
|
#endif // __WINDOWS__
|
2008-02-11 23:40:03 +00:00
|
|
|
|
|
|
|
// return the locale name corresponding to this language usable with
|
|
|
|
// setlocale() on the current system
|
|
|
|
wxString GetLocaleName() const;
|
2001-01-23 23:17:57 +00:00
|
|
|
};
|
|
|
|
|
2008-02-11 23:40:03 +00:00
|
|
|
// for Unix systems GetLocaleName() is trivial so implement it inline here, for
|
|
|
|
// MSW it's implemented in intl.cpp
|
2012-03-04 00:29:31 +00:00
|
|
|
#ifndef __WINDOWS__
|
2008-02-11 23:40:03 +00:00
|
|
|
inline wxString wxLanguageInfo::GetLocaleName() const { return CanonicalName; }
|
2012-03-04 00:29:31 +00:00
|
|
|
#endif // !__WINDOWS__
|
2008-02-11 23:40:03 +00:00
|
|
|
|
2010-04-24 07:06:18 +00:00
|
|
|
|
2002-02-06 20:14:25 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxLocaleCategory: the category of locale settings
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
enum wxLocaleCategory
|
|
|
|
{
|
|
|
|
// (any) numbers
|
|
|
|
wxLOCALE_CAT_NUMBER,
|
|
|
|
|
|
|
|
// date/time
|
|
|
|
wxLOCALE_CAT_DATE,
|
|
|
|
|
|
|
|
// monetary value
|
|
|
|
wxLOCALE_CAT_MONEY,
|
|
|
|
|
2009-03-29 17:15:43 +00:00
|
|
|
// default category for wxLocaleInfo values which only apply to a single
|
|
|
|
// category (e.g. wxLOCALE_SHORT_DATE_FMT)
|
|
|
|
wxLOCALE_CAT_DEFAULT,
|
|
|
|
|
2002-02-06 20:14:25 +00:00
|
|
|
wxLOCALE_CAT_MAX
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxLocaleInfo: the items understood by wxLocale::GetInfo()
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
enum wxLocaleInfo
|
|
|
|
{
|
2009-03-29 17:15:43 +00:00
|
|
|
// the thousands separator (for wxLOCALE_CAT_NUMBER or MONEY)
|
2002-02-06 20:14:25 +00:00
|
|
|
wxLOCALE_THOUSANDS_SEP,
|
|
|
|
|
2009-03-29 17:15:43 +00:00
|
|
|
// the character used as decimal point (for wxLOCALE_CAT_NUMBER or MONEY)
|
|
|
|
wxLOCALE_DECIMAL_POINT,
|
|
|
|
|
|
|
|
// the stftime()-formats used for short/long date and time representations
|
|
|
|
// (under some platforms short and long date formats are the same)
|
|
|
|
//
|
|
|
|
// NB: these elements should appear in this order, code in GetInfo() relies
|
|
|
|
// on it
|
|
|
|
wxLOCALE_SHORT_DATE_FMT,
|
|
|
|
wxLOCALE_LONG_DATE_FMT,
|
|
|
|
wxLOCALE_DATE_TIME_FMT,
|
|
|
|
wxLOCALE_TIME_FMT
|
2002-02-06 20:14:25 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxLocale: encapsulates all language dependent settings, including current
|
1999-02-15 23:09:33 +00:00
|
|
|
// message catalogs, date, time and currency formats (TODO) &c
|
1998-05-20 14:01:55 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
2001-01-23 23:17:57 +00:00
|
|
|
|
|
|
|
enum wxLocaleInitFlags
|
|
|
|
{
|
2010-04-16 11:29:09 +00:00
|
|
|
wxLOCALE_DONT_LOAD_DEFAULT = 0x0000, // don't load wxwin.mo
|
2010-04-16 11:29:22 +00:00
|
|
|
wxLOCALE_LOAD_DEFAULT = 0x0001 // load wxwin.mo?
|
|
|
|
#if WXWIN_COMPATIBILITY_2_8
|
|
|
|
,wxLOCALE_CONV_ENCODING = 0x0002 // no longer used, simply remove
|
|
|
|
// it from the existing code
|
|
|
|
#endif
|
2001-01-23 23:17:57 +00:00
|
|
|
};
|
|
|
|
|
2003-07-02 01:59:24 +00:00
|
|
|
class WXDLLIMPEXP_BASE wxLocale
|
1998-05-20 14:01:55 +00:00
|
|
|
{
|
|
|
|
public:
|
1999-02-15 23:09:33 +00:00
|
|
|
// ctor & dtor
|
|
|
|
// -----------
|
|
|
|
|
|
|
|
// call Init() if you use this ctor
|
2004-03-17 22:20:42 +00:00
|
|
|
wxLocale() { DoCommonInit(); }
|
|
|
|
|
1999-02-15 23:09:33 +00:00
|
|
|
// the ctor has a side effect of changing current locale
|
2007-03-26 21:05:04 +00:00
|
|
|
wxLocale(const wxString& name, // name (for messages)
|
|
|
|
const wxString& shortName = wxEmptyString, // dir prefix (for msg files)
|
|
|
|
const wxString& locale = wxEmptyString, // locale (for setlocale)
|
2010-04-16 11:29:22 +00:00
|
|
|
bool bLoadDefault = true // preload wxstd.mo?
|
|
|
|
#if WXWIN_COMPATIBILITY_2_8
|
|
|
|
,bool bConvertEncoding = true // convert Win<->Unix if necessary?
|
|
|
|
#endif
|
|
|
|
)
|
2001-04-06 17:22:04 +00:00
|
|
|
{
|
2004-03-17 22:20:42 +00:00
|
|
|
DoCommonInit();
|
|
|
|
|
2010-04-16 20:09:00 +00:00
|
|
|
#if WXWIN_COMPATIBILITY_2_8
|
2007-03-26 21:05:04 +00:00
|
|
|
Init(name, shortName, locale, bLoadDefault, bConvertEncoding);
|
2010-04-16 20:09:00 +00:00
|
|
|
#else
|
|
|
|
Init(name, shortName, locale, bLoadDefault);
|
|
|
|
#endif
|
2001-01-23 23:17:57 +00:00
|
|
|
}
|
|
|
|
|
2001-03-21 19:07:23 +00:00
|
|
|
wxLocale(int language, // wxLanguage id or custom language
|
2010-04-16 11:29:22 +00:00
|
|
|
int flags = wxLOCALE_LOAD_DEFAULT)
|
2004-03-17 22:20:42 +00:00
|
|
|
{
|
|
|
|
DoCommonInit();
|
2001-01-23 23:17:57 +00:00
|
|
|
|
2004-03-17 22:20:42 +00:00
|
|
|
Init(language, flags);
|
|
|
|
}
|
|
|
|
|
|
|
|
// the same as a function (returns true on success)
|
2007-03-26 21:05:04 +00:00
|
|
|
bool Init(const wxString& name,
|
|
|
|
const wxString& shortName = wxEmptyString,
|
|
|
|
const wxString& locale = wxEmptyString,
|
2010-04-16 11:29:22 +00:00
|
|
|
bool bLoadDefault = true
|
|
|
|
#if WXWIN_COMPATIBILITY_2_8
|
|
|
|
,bool bConvertEncoding = true
|
|
|
|
#endif
|
|
|
|
);
|
2001-01-23 23:17:57 +00:00
|
|
|
|
2004-03-17 22:20:42 +00:00
|
|
|
// same as second ctor (returns true on success)
|
2001-01-23 23:17:57 +00:00
|
|
|
bool Init(int language = wxLANGUAGE_DEFAULT,
|
2010-04-16 11:29:22 +00:00
|
|
|
int flags = wxLOCALE_LOAD_DEFAULT);
|
2001-03-21 19:07:23 +00:00
|
|
|
|
1999-02-15 23:09:33 +00:00
|
|
|
// restores old locale
|
2006-08-21 18:27:15 +00:00
|
|
|
virtual ~wxLocale();
|
2001-04-06 17:22:04 +00:00
|
|
|
|
2005-05-31 09:20:43 +00:00
|
|
|
// Try to get user's (or OS's) preferred language setting.
|
2001-03-21 19:07:23 +00:00
|
|
|
// Return wxLANGUAGE_UNKNOWN if language-guessing algorithm failed
|
2001-03-25 22:19:44 +00:00
|
|
|
static int GetSystemLanguage();
|
1999-02-15 23:09:33 +00:00
|
|
|
|
2001-05-31 20:27:37 +00:00
|
|
|
// get the encoding used by default for text on this system, returns
|
|
|
|
// wxFONTENCODING_SYSTEM if it couldn't be determined
|
|
|
|
static wxFontEncoding GetSystemEncoding();
|
|
|
|
|
|
|
|
// get the string describing the system encoding, return empty string if
|
|
|
|
// couldn't be determined
|
|
|
|
static wxString GetSystemEncodingName();
|
|
|
|
|
2002-02-06 20:14:25 +00:00
|
|
|
// get the values of the given locale-dependent datum: the current locale
|
|
|
|
// is used, the US default value is returned if everything else fails
|
2009-03-29 17:15:43 +00:00
|
|
|
static wxString GetInfo(wxLocaleInfo index,
|
|
|
|
wxLocaleCategory cat = wxLOCALE_CAT_DEFAULT);
|
2002-02-06 20:14:25 +00:00
|
|
|
|
2014-12-05 22:17:13 +00:00
|
|
|
// Same as GetInfo() but uses current locale at the OS level to retrieve
|
|
|
|
// the information. Normally it should be the same as the one used by
|
|
|
|
// GetInfo() but there are two exceptions: the most important one is that
|
|
|
|
// if no locale had been set, GetInfo() would fall back to "C" locale,
|
|
|
|
// while this one uses the default OS locale. Another, more rare, one is
|
|
|
|
// that some locales might not supported by the OS.
|
|
|
|
//
|
|
|
|
// Currently this is the same as GetInfo() under non-MSW platforms.
|
|
|
|
static wxString GetOSInfo(wxLocaleInfo index,
|
|
|
|
wxLocaleCategory cat = wxLOCALE_CAT_DEFAULT);
|
|
|
|
|
2004-03-17 22:20:42 +00:00
|
|
|
// return true if the locale was set successfully
|
2000-08-08 06:11:51 +00:00
|
|
|
bool IsOk() const { return m_pszOldLocale != NULL; }
|
|
|
|
|
1999-02-15 23:09:33 +00:00
|
|
|
// returns locale name
|
2007-03-26 21:05:04 +00:00
|
|
|
const wxString& GetLocale() const { return m_strLocale; }
|
2001-04-06 17:22:04 +00:00
|
|
|
|
2001-01-23 23:17:57 +00:00
|
|
|
// return current locale wxLanguage value
|
|
|
|
int GetLanguage() const { return m_language; }
|
1999-02-15 23:09:33 +00:00
|
|
|
|
2001-04-06 17:22:04 +00:00
|
|
|
// return locale name to be passed to setlocale()
|
2001-01-23 23:17:57 +00:00
|
|
|
wxString GetSysName() const;
|
|
|
|
|
2001-04-06 17:22:04 +00:00
|
|
|
// return 'canonical' name, i.e. in the form of xx[_YY], where xx is
|
2001-01-23 23:17:57 +00:00
|
|
|
// language code according to ISO 639 and YY is country name
|
|
|
|
// as specified by ISO 3166.
|
|
|
|
wxString GetCanonicalName() const { return m_strShort; }
|
2001-04-06 17:22:04 +00:00
|
|
|
|
1999-02-15 23:09:33 +00:00
|
|
|
// add a prefix to the catalog lookup path: the message catalog files will be
|
|
|
|
// looked up under prefix/<lang>/LC_MESSAGES, prefix/LC_MESSAGES and prefix
|
|
|
|
// (in this order).
|
|
|
|
//
|
|
|
|
// This only applies to subsequent invocations of AddCatalog()!
|
2010-04-24 07:06:18 +00:00
|
|
|
static void AddCatalogLookupPathPrefix(const wxString& prefix)
|
|
|
|
{ wxFileTranslationsLoader::AddCatalogLookupPathPrefix(prefix); }
|
1999-02-15 23:09:33 +00:00
|
|
|
|
|
|
|
// add a catalog: it's searched for in standard places (current directory
|
|
|
|
// first, system one after), but the you may prepend additional directories to
|
|
|
|
// the search path with AddCatalogLookupPathPrefix().
|
|
|
|
//
|
|
|
|
// The loaded catalog will be used for message lookup by GetString().
|
|
|
|
//
|
|
|
|
// Returns 'true' if it was successfully loaded
|
2010-04-29 08:31:42 +00:00
|
|
|
bool AddCatalog(const wxString& domain);
|
|
|
|
bool AddCatalog(const wxString& domain, wxLanguage msgIdLanguage);
|
2007-03-26 21:05:04 +00:00
|
|
|
bool AddCatalog(const wxString& domain,
|
|
|
|
wxLanguage msgIdLanguage, const wxString& msgIdCharset);
|
1999-02-15 23:09:33 +00:00
|
|
|
|
2006-09-10 23:28:20 +00:00
|
|
|
// check if the given locale is provided by OS and C run time
|
|
|
|
static bool IsAvailable(int lang);
|
|
|
|
|
1999-02-15 23:09:33 +00:00
|
|
|
// check if the given catalog is loaded
|
2010-04-29 08:31:42 +00:00
|
|
|
bool IsLoaded(const wxString& domain) const;
|
2001-04-06 17:22:04 +00:00
|
|
|
|
2002-09-07 22:53:04 +00:00
|
|
|
// Retrieve the language info struct for the given language
|
|
|
|
//
|
|
|
|
// Returns NULL if no info found, pointer must *not* be deleted by caller
|
|
|
|
static const wxLanguageInfo *GetLanguageInfo(int lang);
|
|
|
|
|
2003-06-13 10:16:19 +00:00
|
|
|
// Returns language name in English or empty string if the language
|
|
|
|
// is not in database
|
|
|
|
static wxString GetLanguageName(int lang);
|
|
|
|
|
2010-04-24 07:06:18 +00:00
|
|
|
// Returns ISO code ("canonical name") of language or empty string if the
|
|
|
|
// language is not in database
|
|
|
|
static wxString GetLanguageCanonicalName(int lang);
|
|
|
|
|
2003-02-04 16:43:10 +00:00
|
|
|
// Find the language for the given locale string which may be either a
|
|
|
|
// canonical ISO 2 letter language code ("xx"), a language code followed by
|
|
|
|
// the country code ("xx_XX") or a Windows full language name ("Xxxxx...")
|
|
|
|
//
|
|
|
|
// Returns NULL if no info found, pointer must *not* be deleted by caller
|
|
|
|
static const wxLanguageInfo *FindLanguageInfo(const wxString& locale);
|
|
|
|
|
2001-01-23 23:17:57 +00:00
|
|
|
// Add custom language to the list of known languages.
|
|
|
|
// Notes: 1) wxLanguageInfo contains platform-specific data
|
|
|
|
// 2) must be called before Init to have effect
|
2001-03-25 22:19:44 +00:00
|
|
|
static void AddLanguage(const wxLanguageInfo& info);
|
1999-02-15 23:09:33 +00:00
|
|
|
|
|
|
|
// retrieve the translation for a string in all loaded domains unless
|
|
|
|
// the szDomain parameter is specified (and then only this domain is
|
|
|
|
// searched)
|
2003-10-04 22:38:00 +00:00
|
|
|
// n - additional parameter for PluralFormsParser
|
1999-02-15 23:09:33 +00:00
|
|
|
//
|
|
|
|
// return original string if translation is not available
|
|
|
|
// (in this case an error message is generated the first time
|
|
|
|
// a string is not found; use wxLogNull to suppress it)
|
|
|
|
//
|
|
|
|
// domains are searched in the last to first order, i.e. catalogs
|
|
|
|
// added later override those added before.
|
2010-04-24 07:06:18 +00:00
|
|
|
const wxString& GetString(const wxString& origString,
|
|
|
|
const wxString& domain = wxEmptyString) const
|
|
|
|
{
|
2010-04-29 08:31:42 +00:00
|
|
|
return wxGetTranslation(origString, domain);
|
2010-04-24 07:06:18 +00:00
|
|
|
}
|
2003-10-04 22:38:00 +00:00
|
|
|
// plural form version of the same:
|
2010-04-24 07:06:18 +00:00
|
|
|
const wxString& GetString(const wxString& origString,
|
|
|
|
const wxString& origString2,
|
2010-05-05 12:27:07 +00:00
|
|
|
unsigned n,
|
2010-04-24 07:06:18 +00:00
|
|
|
const wxString& domain = wxEmptyString) const
|
|
|
|
{
|
2010-04-29 08:31:42 +00:00
|
|
|
return wxGetTranslation(origString, origString2, n, domain);
|
2010-04-24 07:06:18 +00:00
|
|
|
}
|
1999-02-15 23:09:33 +00:00
|
|
|
|
|
|
|
// Returns the current short name for the locale
|
|
|
|
const wxString& GetName() const { return m_strShort; }
|
|
|
|
|
2004-07-25 15:30:42 +00:00
|
|
|
// return the contents of .po file header
|
2007-03-26 21:05:04 +00:00
|
|
|
wxString GetHeaderValue(const wxString& header,
|
2010-04-29 08:31:42 +00:00
|
|
|
const wxString& domain = wxEmptyString) const;
|
2004-07-25 15:30:42 +00:00
|
|
|
|
2001-03-25 22:19:44 +00:00
|
|
|
// These two methods are for internal use only. First one creates
|
|
|
|
// ms_languagesDB if it doesn't already exist, second one destroys
|
|
|
|
// it.
|
|
|
|
static void CreateLanguagesDB();
|
|
|
|
static void DestroyLanguagesDB();
|
|
|
|
|
1999-02-15 23:09:33 +00:00
|
|
|
private:
|
2010-04-24 07:06:18 +00:00
|
|
|
bool DoInit(const wxString& name,
|
|
|
|
const wxString& shortName,
|
|
|
|
const wxString& locale);
|
2001-04-06 17:22:04 +00:00
|
|
|
|
2001-01-23 23:17:57 +00:00
|
|
|
// copy default table of languages from global static array to
|
2001-03-25 22:19:44 +00:00
|
|
|
// m_langugagesInfo, called by InitLanguagesDB
|
|
|
|
static void InitLanguagesDB();
|
1999-02-15 23:09:33 +00:00
|
|
|
|
2004-03-17 22:20:42 +00:00
|
|
|
// initialize the member fields to default values
|
|
|
|
void DoCommonInit();
|
|
|
|
|
2000-01-02 19:51:30 +00:00
|
|
|
wxString m_strLocale, // this locale name
|
|
|
|
m_strShort; // short name for the locale
|
2001-01-23 23:17:57 +00:00
|
|
|
int m_language; // this locale wxLanguage value
|
1999-02-15 23:09:33 +00:00
|
|
|
|
2007-06-10 17:14:14 +00:00
|
|
|
const char *m_pszOldLocale; // previous locale from setlocale()
|
2000-01-02 19:51:30 +00:00
|
|
|
wxLocale *m_pOldLocale; // previous wxLocale
|
1999-02-15 23:09:33 +00:00
|
|
|
|
2003-11-26 19:33:35 +00:00
|
|
|
bool m_initialized;
|
|
|
|
|
2010-04-24 07:06:18 +00:00
|
|
|
wxTranslations m_translations;
|
|
|
|
|
2001-03-25 22:19:44 +00:00
|
|
|
static wxLanguageInfoArray *ms_languagesDB;
|
2003-01-02 23:38:11 +00:00
|
|
|
|
2009-02-08 11:45:59 +00:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxLocale);
|
1998-05-20 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
1998-05-26 15:08:50 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
1998-07-17 20:52:40 +00:00
|
|
|
// global functions
|
1998-05-26 15:08:50 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
1999-02-15 23:09:33 +00:00
|
|
|
// get the current locale object (note that it may be NULL!)
|
2003-07-02 01:59:24 +00:00
|
|
|
extern WXDLLIMPEXP_BASE wxLocale* wxGetLocale();
|
1999-02-15 23:09:33 +00:00
|
|
|
|
2010-04-24 07:06:32 +00:00
|
|
|
#endif // wxUSE_INTL
|
1999-12-22 21:09:32 +00:00
|
|
|
|
2001-05-31 20:27:37 +00:00
|
|
|
#endif // _WX_INTL_H_
|