made wxLocale::GetSystemLanguage and wxLocale::AddLanguage static;

wxLocale now converts strings according to LC_CTYPE if it contains charset information (and uses old code otherwise)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-03-25 22:19:44 +00:00
parent 323af1967c
commit 4178000933
3 changed files with 113 additions and 45 deletions

View File

@@ -41,6 +41,10 @@ The following wxLanguage constants may be used to specify the language
in \helpref{Init}{wxlocaleinit} and are returned by
\helpref{GetSystemLanguage}{wxlocalegetsystemlanguage}:
%% --- --- --- generated code begins here --- --- ---
%% This enum is generated by misc/languages/genlang.py
%% When making changes, please put them into misc/languages/langtabl.txt
\begin{itemize}\itemsep=0pt
@@ -279,6 +283,9 @@ this
\item wxLANGUAGE\_ZULU
\end{itemize}
%% --- --- --- generated code ends here --- --- ---
\membersection{wxLocale::wxLocale}\label{wxlocaledefctor}
@@ -340,7 +347,7 @@ This only applies to subsequent invocations of AddCatalog()!
\membersection{wxLocale::AddLanguage}\label{wxlocaleaddlanguage}
\func{void}{AddLanguage}{\param{const wxLanguageInfo\& }{info}}
\func{static void}{AddLanguage}{\param{const wxLanguageInfo\& }{info}}
Adds custom, user-defined language to the database of known languages. This
database is used in conjuction with the first form of
@@ -433,7 +440,7 @@ Compare \helpref{GetCanonicalName}{wxlocalegetcanonicalname}.
\membersection{wxLocale::GetSystemLanguage}\label{wxlocalegetsystemlanguage}
\constfunc{int}{GetSystemLanguage}{\void}
\constfunc{static int}{GetSystemLanguage}{\void}
Tries to detect the user's default language setting.
Returns \helpref{wxLanguage}{wxlanguage} value or