1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2001-04-06 13:22:04 -04:00
|
|
|
// Name: wx/intl.h
|
2004-05-23 10:56:36 -04:00
|
|
|
// Purpose: Internationalization and localisation for wxWidgets
|
1998-05-20 10:01:55 -04:00
|
|
|
// Author: Vadim Zeitlin
|
2003-10-04 18:38:00 -04:00
|
|
|
// Modified by: Michael N. Filippov <michael@idisys.iae.nsk.su>
|
|
|
|
// (2003/09/30 - plural forms support)
|
1998-05-20 10:01:55 -04:00
|
|
|
// Created: 29/01/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2001-05-31 16:27:37 -04:00
|
|
|
#ifndef _WX_INTL_H_
|
|
|
|
#define _WX_INTL_H_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#include "wx/string.h"
|
2010-04-24 03:06:32 -04:00
|
|
|
#include "wx/translation.h"
|
2010-04-24 03:06:18 -04:00
|
|
|
|
2006-09-04 15:22:57 -04: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 11:32:12 -04:00
|
|
|
#if wxUSE_INTL
|
|
|
|
|
2001-05-31 16:27:37 -04:00
|
|
|
#include "wx/fontenc.h"
|
2010-04-24 03:06:32 -04:00
|
|
|
#include "wx/language.h"
|
2001-05-31 16:27:37 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
// ============================================================================
|
|
|
|
// global decls
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// macros
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// forward decls
|
|
|
|
// ----------------------------------------------------------------------------
|
2001-03-21 14:07:23 -05:00
|
|
|
|
2007-07-09 06:09:52 -04:00
|
|
|
class WXDLLIMPEXP_FWD_BASE wxLocale;
|
|
|
|
class WXDLLIMPEXP_FWD_BASE wxLanguageInfoArray;
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// locale support
|
|
|
|
// ============================================================================
|
|
|
|
|
2001-01-23 18:17:57 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxLanguageInfo: encapsulates wxLanguage to OS native lang.desc.
|
|
|
|
// translation information
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2003-07-01 21:59:24 -04:00
|
|
|
struct WXDLLIMPEXP_BASE wxLanguageInfo
|
2001-01-23 18:17:57 -05:00
|
|
|
{
|
|
|
|
int Language; // wxLanguage id
|
|
|
|
wxString CanonicalName; // Canonical name, e.g. fr_FR
|
2008-02-11 18:23:10 -05:00
|
|
|
#ifdef __WXMSW__
|
2001-05-31 16:27:37 -04:00
|
|
|
wxUint32 WinLang, // Win32 language identifiers
|
|
|
|
WinSublang;
|
2008-02-11 18:23:10 -05:00
|
|
|
#endif // __WXMSW__
|
2001-01-23 18:17:57 -05:00
|
|
|
wxString Description; // human-readable name of the language
|
2006-09-04 09:35:13 -04:00
|
|
|
wxLayoutDirection LayoutDirection;
|
2008-02-11 18:23:10 -05:00
|
|
|
|
|
|
|
#ifdef __WXMSW__
|
|
|
|
// return the LCID corresponding to this language
|
|
|
|
wxUint32 GetLCID() const;
|
|
|
|
#endif // __WXMSW__
|
2008-02-11 18:40:03 -05:00
|
|
|
|
|
|
|
// return the locale name corresponding to this language usable with
|
|
|
|
// setlocale() on the current system
|
|
|
|
wxString GetLocaleName() const;
|
2001-01-23 18:17:57 -05:00
|
|
|
};
|
|
|
|
|
2008-02-11 18:40:03 -05:00
|
|
|
// for Unix systems GetLocaleName() is trivial so implement it inline here, for
|
|
|
|
// MSW it's implemented in intl.cpp
|
|
|
|
#ifndef __WXMSW__
|
|
|
|
inline wxString wxLanguageInfo::GetLocaleName() const { return CanonicalName; }
|
|
|
|
#endif // !__WXMSW__
|
|
|
|
|
2010-04-24 03:06:18 -04:00
|
|
|
|
2002-02-06 15:14:25 -05: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 13:15:43 -04: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 15:14:25 -05:00
|
|
|
wxLOCALE_CAT_MAX
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxLocaleInfo: the items understood by wxLocale::GetInfo()
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
enum wxLocaleInfo
|
|
|
|
{
|
2009-03-29 13:15:43 -04:00
|
|
|
// the thousands separator (for wxLOCALE_CAT_NUMBER or MONEY)
|
2002-02-06 15:14:25 -05:00
|
|
|
wxLOCALE_THOUSANDS_SEP,
|
|
|
|
|
2009-03-29 13:15:43 -04: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 15:14:25 -05:00
|
|
|
|
|
|
|
};
|
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxLocale: encapsulates all language dependent settings, including current
|
1999-02-15 18:09:33 -05:00
|
|
|
// message catalogs, date, time and currency formats (TODO) &c
|
1998-05-20 10:01:55 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
2001-01-23 18:17:57 -05:00
|
|
|
|
|
|
|
enum wxLocaleInitFlags
|
|
|
|
{
|
2010-04-16 07:29:09 -04:00
|
|
|
wxLOCALE_DONT_LOAD_DEFAULT = 0x0000, // don't load wxwin.mo
|
2010-04-16 07:29:22 -04: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 18:17:57 -05:00
|
|
|
};
|
|
|
|
|
2003-07-01 21:59:24 -04:00
|
|
|
class WXDLLIMPEXP_BASE wxLocale
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
|
|
|
public:
|
1999-02-15 18:09:33 -05:00
|
|
|
// ctor & dtor
|
|
|
|
// -----------
|
|
|
|
|
|
|
|
// call Init() if you use this ctor
|
2004-03-17 17:20:42 -05:00
|
|
|
wxLocale() { DoCommonInit(); }
|
|
|
|
|
1999-02-15 18:09:33 -05:00
|
|
|
// the ctor has a side effect of changing current locale
|
2007-03-26 17:05:04 -04: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 07:29:22 -04:00
|
|
|
bool bLoadDefault = true // preload wxstd.mo?
|
|
|
|
#if WXWIN_COMPATIBILITY_2_8
|
|
|
|
,bool bConvertEncoding = true // convert Win<->Unix if necessary?
|
|
|
|
#endif
|
|
|
|
)
|
2001-04-06 13:22:04 -04:00
|
|
|
{
|
2004-03-17 17:20:42 -05:00
|
|
|
DoCommonInit();
|
|
|
|
|
2010-04-16 16:09:00 -04:00
|
|
|
#if WXWIN_COMPATIBILITY_2_8
|
2007-03-26 17:05:04 -04:00
|
|
|
Init(name, shortName, locale, bLoadDefault, bConvertEncoding);
|
2010-04-16 16:09:00 -04:00
|
|
|
#else
|
|
|
|
Init(name, shortName, locale, bLoadDefault);
|
|
|
|
#endif
|
2001-01-23 18:17:57 -05:00
|
|
|
}
|
|
|
|
|
2001-03-21 14:07:23 -05:00
|
|
|
wxLocale(int language, // wxLanguage id or custom language
|
2010-04-16 07:29:22 -04:00
|
|
|
int flags = wxLOCALE_LOAD_DEFAULT)
|
2004-03-17 17:20:42 -05:00
|
|
|
{
|
|
|
|
DoCommonInit();
|
2001-01-23 18:17:57 -05:00
|
|
|
|
2004-03-17 17:20:42 -05:00
|
|
|
Init(language, flags);
|
|
|
|
}
|
|
|
|
|
|
|
|
// the same as a function (returns true on success)
|
2007-03-26 17:05:04 -04:00
|
|
|
bool Init(const wxString& name,
|
|
|
|
const wxString& shortName = wxEmptyString,
|
|
|
|
const wxString& locale = wxEmptyString,
|
2010-04-16 07:29:22 -04:00
|
|
|
bool bLoadDefault = true
|
|
|
|
#if WXWIN_COMPATIBILITY_2_8
|
|
|
|
,bool bConvertEncoding = true
|
|
|
|
#endif
|
|
|
|
);
|
2001-01-23 18:17:57 -05:00
|
|
|
|
2004-03-17 17:20:42 -05:00
|
|
|
// same as second ctor (returns true on success)
|
2001-01-23 18:17:57 -05:00
|
|
|
bool Init(int language = wxLANGUAGE_DEFAULT,
|
2010-04-16 07:29:22 -04:00
|
|
|
int flags = wxLOCALE_LOAD_DEFAULT);
|
2001-03-21 14:07:23 -05:00
|
|
|
|
1999-02-15 18:09:33 -05:00
|
|
|
// restores old locale
|
2006-08-21 14:27:15 -04:00
|
|
|
virtual ~wxLocale();
|
2001-04-06 13:22:04 -04:00
|
|
|
|
2005-05-31 05:20:43 -04:00
|
|
|
// Try to get user's (or OS's) preferred language setting.
|
2001-03-21 14:07:23 -05:00
|
|
|
// Return wxLANGUAGE_UNKNOWN if language-guessing algorithm failed
|
2001-03-25 17:19:44 -05:00
|
|
|
static int GetSystemLanguage();
|
1999-02-15 18:09:33 -05:00
|
|
|
|
2001-05-31 16:27:37 -04: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 15:14:25 -05: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 13:15:43 -04:00
|
|
|
static wxString GetInfo(wxLocaleInfo index,
|
|
|
|
wxLocaleCategory cat = wxLOCALE_CAT_DEFAULT);
|
2002-02-06 15:14:25 -05:00
|
|
|
|
2004-03-17 17:20:42 -05:00
|
|
|
// return true if the locale was set successfully
|
2000-08-08 02:11:51 -04:00
|
|
|
bool IsOk() const { return m_pszOldLocale != NULL; }
|
|
|
|
|
1999-02-15 18:09:33 -05:00
|
|
|
// returns locale name
|
2007-03-26 17:05:04 -04:00
|
|
|
const wxString& GetLocale() const { return m_strLocale; }
|
2001-04-06 13:22:04 -04:00
|
|
|
|
2001-01-23 18:17:57 -05:00
|
|
|
// return current locale wxLanguage value
|
|
|
|
int GetLanguage() const { return m_language; }
|
1999-02-15 18:09:33 -05:00
|
|
|
|
2001-04-06 13:22:04 -04:00
|
|
|
// return locale name to be passed to setlocale()
|
2001-01-23 18:17:57 -05:00
|
|
|
wxString GetSysName() const;
|
|
|
|
|
2001-04-06 13:22:04 -04:00
|
|
|
// return 'canonical' name, i.e. in the form of xx[_YY], where xx is
|
2001-01-23 18:17:57 -05: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 13:22:04 -04:00
|
|
|
|
1999-02-15 18:09:33 -05: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 03:06:18 -04:00
|
|
|
static void AddCatalogLookupPathPrefix(const wxString& prefix)
|
|
|
|
{ wxFileTranslationsLoader::AddCatalogLookupPathPrefix(prefix); }
|
1999-02-15 18:09:33 -05: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 04:31:42 -04:00
|
|
|
bool AddCatalog(const wxString& domain);
|
|
|
|
bool AddCatalog(const wxString& domain, wxLanguage msgIdLanguage);
|
2007-03-26 17:05:04 -04:00
|
|
|
bool AddCatalog(const wxString& domain,
|
|
|
|
wxLanguage msgIdLanguage, const wxString& msgIdCharset);
|
1999-02-15 18:09:33 -05:00
|
|
|
|
2006-09-10 19:28:20 -04:00
|
|
|
// check if the given locale is provided by OS and C run time
|
|
|
|
static bool IsAvailable(int lang);
|
|
|
|
|
1999-02-15 18:09:33 -05:00
|
|
|
// check if the given catalog is loaded
|
2010-04-29 04:31:42 -04:00
|
|
|
bool IsLoaded(const wxString& domain) const;
|
2001-04-06 13:22:04 -04:00
|
|
|
|
2002-09-07 18:53:04 -04: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 06:16:19 -04:00
|
|
|
// Returns language name in English or empty string if the language
|
|
|
|
// is not in database
|
|
|
|
static wxString GetLanguageName(int lang);
|
|
|
|
|
2010-04-24 03:06:18 -04: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 11:43:10 -05: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 18:17:57 -05: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 17:19:44 -05:00
|
|
|
static void AddLanguage(const wxLanguageInfo& info);
|
1999-02-15 18:09:33 -05: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 18:38:00 -04:00
|
|
|
// n - additional parameter for PluralFormsParser
|
1999-02-15 18:09:33 -05: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 03:06:18 -04:00
|
|
|
const wxString& GetString(const wxString& origString,
|
|
|
|
const wxString& domain = wxEmptyString) const
|
|
|
|
{
|
2010-04-29 04:31:42 -04:00
|
|
|
return wxGetTranslation(origString, domain);
|
2010-04-24 03:06:18 -04:00
|
|
|
}
|
2003-10-04 18:38:00 -04:00
|
|
|
// plural form version of the same:
|
2010-04-24 03:06:18 -04:00
|
|
|
const wxString& GetString(const wxString& origString,
|
|
|
|
const wxString& origString2,
|
2010-05-05 08:27:07 -04:00
|
|
|
unsigned n,
|
2010-04-24 03:06:18 -04:00
|
|
|
const wxString& domain = wxEmptyString) const
|
|
|
|
{
|
2010-04-29 04:31:42 -04:00
|
|
|
return wxGetTranslation(origString, origString2, n, domain);
|
2010-04-24 03:06:18 -04:00
|
|
|
}
|
1999-02-15 18:09:33 -05:00
|
|
|
|
2007-05-21 13:44:37 -04:00
|
|
|
// this is hack to work around a problem with wxGetTranslation() which
|
|
|
|
// returns const wxString& and not wxString, so when it returns untranslated
|
|
|
|
// string, it needs to have a copy of it somewhere
|
2010-04-24 03:06:18 -04:00
|
|
|
static const wxString& GetUntranslatedString(const wxString& str)
|
|
|
|
{ return wxTranslations::GetUntranslatedString(str); }
|
2007-05-21 13:44:37 -04:00
|
|
|
|
1999-02-15 18:09:33 -05:00
|
|
|
// Returns the current short name for the locale
|
|
|
|
const wxString& GetName() const { return m_strShort; }
|
|
|
|
|
2004-07-25 11:30:42 -04:00
|
|
|
// return the contents of .po file header
|
2007-03-26 17:05:04 -04:00
|
|
|
wxString GetHeaderValue(const wxString& header,
|
2010-04-29 04:31:42 -04:00
|
|
|
const wxString& domain = wxEmptyString) const;
|
2004-07-25 11:30:42 -04:00
|
|
|
|
2001-03-25 17:19:44 -05: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 18:09:33 -05:00
|
|
|
private:
|
2010-04-24 03:06:18 -04:00
|
|
|
bool DoInit(const wxString& name,
|
|
|
|
const wxString& shortName,
|
|
|
|
const wxString& locale);
|
2001-04-06 13:22:04 -04:00
|
|
|
|
2001-01-23 18:17:57 -05:00
|
|
|
// copy default table of languages from global static array to
|
2001-03-25 17:19:44 -05:00
|
|
|
// m_langugagesInfo, called by InitLanguagesDB
|
|
|
|
static void InitLanguagesDB();
|
1999-02-15 18:09:33 -05:00
|
|
|
|
2004-03-17 17:20:42 -05:00
|
|
|
// initialize the member fields to default values
|
|
|
|
void DoCommonInit();
|
|
|
|
|
2000-01-02 14:51:30 -05:00
|
|
|
wxString m_strLocale, // this locale name
|
|
|
|
m_strShort; // short name for the locale
|
2001-01-23 18:17:57 -05:00
|
|
|
int m_language; // this locale wxLanguage value
|
1999-02-15 18:09:33 -05:00
|
|
|
|
2007-06-10 13:14:14 -04:00
|
|
|
const char *m_pszOldLocale; // previous locale from setlocale()
|
2000-01-02 14:51:30 -05:00
|
|
|
wxLocale *m_pOldLocale; // previous wxLocale
|
1999-02-15 18:09:33 -05:00
|
|
|
|
2003-11-26 14:33:35 -05:00
|
|
|
bool m_initialized;
|
|
|
|
|
2010-04-24 03:06:18 -04:00
|
|
|
wxTranslations m_translations;
|
|
|
|
|
2001-03-25 17:19:44 -05:00
|
|
|
static wxLanguageInfoArray *ms_languagesDB;
|
2003-01-02 18:38:11 -05:00
|
|
|
|
2009-02-08 06:45:59 -05:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxLocale);
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
1998-05-26 11:08:50 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
1998-07-17 16:52:40 -04:00
|
|
|
// global functions
|
1998-05-26 11:08:50 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
1999-02-15 18:09:33 -05:00
|
|
|
// get the current locale object (note that it may be NULL!)
|
2003-07-01 21:59:24 -04:00
|
|
|
extern WXDLLIMPEXP_BASE wxLocale* wxGetLocale();
|
1999-02-15 18:09:33 -05:00
|
|
|
|
2010-04-24 03:06:32 -04:00
|
|
|
#endif // wxUSE_INTL
|
1999-12-22 16:09:32 -05:00
|
|
|
|
2001-05-31 16:27:37 -04:00
|
|
|
#endif // _WX_INTL_H_
|