Vadim Zeitlin
b5e2a45022
add ka_GE, ku_TR and ne_NP; some cleanup and better handling of sr_XX (patch 1858926)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-17 20:11:17 +00:00
Vadim Zeitlin
86d62b51c0
add wxLanguageInfo::GetLocaleName(), this simplifies the current code and will be used with wxXLocale
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-11 23:40:03 +00:00
Vadim Zeitlin
ea65760d5c
avoid duplication in the code by refactoring LCID creation from wxLanguageInfo::WinLang and WinSublang in a member function
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-11 23:23:10 +00:00
Paul Cornett
e0749635a5
HP aC++ 3.80 can't handle parenthesized string literal in an initializer
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-28 04:15:11 +00:00
Vadim Zeitlin
066f3611df
don't use _T() inside wxGetTranslation() and related macros (wxTRANSLATE, _, ...) to preserve compatibility with the old ASCII build (even at the expense with the Unicode build compatibility)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-07 19:34:56 +00:00
Václav Slavík
b5dbe15d0b
added WXDLLIMPEXP_FWD_FOO macros in addition to WXDLLIMPEXP_FOO for use with forward declarations (in preparation for GCC visibility support)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-09 10:09:52 +00:00
Václav Slavík
52de37c78f
1. made CRT wrappers definitions indepenent of wxUSE_UNICODE: both ANSI and Unicode variants are now defined
...
2. split wxcrt.h into wxcrtbase.h with lowlevel compiler-specific definitions and wxcrt.h with ANSI- and Unicode-compatible wx wrappers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-10 17:14:14 +00:00
Václav Slavík
a64be16ef8
return reference to non-temporary wxString instance from wxGetTranslation() even when not translating
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-21 17:44:37 +00:00
Václav Slavík
df08bf5ab3
added inline plural form of wxGetTranslation to wxUSE_INTL=0 case for use with non-default domain too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 21:19:02 +00:00
Václav Slavík
2765cbb5aa
define wxPLURAL even if wxUSE_INTL=0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 21:13:56 +00:00
Václav Slavík
31b7522e2b
use wxStrings in wxLocale methods, _() and wxGetTranslation(), so that it can be used with any string literals
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 21:05:04 +00:00
Václav Slavík
33046a8283
fixed wxGetTranslation() prototype in the !wxUSE_INTL case
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-22 12:26:19 +00:00
Vadim Zeitlin
cec5ffc46d
added wxLocale::IsAvailable() (extended patch 1547191)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-10 23:28:20 +00:00
Włodzimierz Skiba
b137e49318
Build fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-04 19:22:57 +00:00
Vadim Zeitlin
978af86426
merge of RTL changes (with many modifications) from SOC2006_RTL branch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-04 13:35:13 +00:00
Robin Dunn
d4a724d407
Make it possible to tell wxXmlResource which domain to pull
...
translatable strings from.
Make the wxLocale::GetString methods virtual so they can be overridden
in derived classes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-21 18:27:15 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Vadim Zeitlin
15d0695440
added wxPLURAL() macro
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-01 21:16:30 +00:00
Julian Smart
3103e8a97e
Typo correction patch [ 1208110 ] Lots of typo corrections
...
Olly Betts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-31 09:20:43 +00:00
Włodzimierz Skiba
7beb59f36c
Source cleaning: whitespaces, tabs, -1/wxDefaultCoord/wxNOT_FOUND, TRUE/true, FALSE/false, !!/!IsEmpty().
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-16 18:13:32 +00:00
Vadim Zeitlin
c48908df67
added GetHeaderValue() (patch 974427)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-25 15:30:42 +00:00
Václav Slavík
d721baa9e6
allow msgids in !=English languages (based on Stefan Kowski's patch)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-23 20:30:32 +00:00
Vadim Zeitlin
64764f5077
fix for a warning in DLL build (patch 966823)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-22 23:33:44 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Vadim Zeitlin
ea8f6fc718
initialize m_initialized to false to avoid spurious asserts
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-17 22:20:42 +00:00
Václav Slavík
3202d00dc9
assert if wxLocale::Init called twice
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-26 19:33:35 +00:00
Václav Slavík
9d814be8d0
don't define ngettext, causes problems
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-19 20:51:05 +00:00
Václav Slavík
ba9d03fa13
1) use ngettext instead of _N, 2) cleanup of gettext macros definitions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-13 21:27:02 +00:00
Václav Slavík
849a28d0da
added gettext plural forms support (patch #785660 with modifications)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-04 22:38:00 +00:00
Václav Slavík
1202890513
added support for gcc precompiled headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:38:21 +00:00
Vadim Zeitlin
bddd7a8d89
renamed WXDLLEXPORT_BASE/CORE to WXDLLIMPEXP_BASE/CORE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 01:59:24 +00:00
Vadim Zeitlin
886dd7d28e
fixes needed for separate DLL build to work
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 01:41:23 +00:00
Václav Slavík
4a6e4a46a3
added wxLocale::GetLanguageName
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 10:16:19 +00:00
Václav Slavík
7df93c2deb
fix _() for wxUSE_INTL==0 case
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-25 11:18:28 +00:00
Julian Smart
371a5b4e62
Removed erroneous copyright names and corrected licence spelling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 10:34:04 +00:00
Vadim Zeitlin
9d1e1be463
added wxLocale::FindLanguageInfo()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-04 16:43:10 +00:00
Vadim Zeitlin
22f3361e1c
use DECLARE_NO_COPY_CLASS() where applicable (patch 633384)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-02 23:38:11 +00:00
Vadim Zeitlin
14f8fa9d7f
added wxLocale::GetLanguageInfo()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-07 22:53:04 +00:00
Gilles Depeyrot
af49c4b8a2
disable use of #pragma interface under Mac OS X
...
GNU compiler included with Mac OS X 10.2 (Jaguar) as well as August Developer
Tools update contain a bug concerning #pragma interface handling that can only
be worked around by not using them (and they are not necessary anyways)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 11:29:13 +00:00
Václav Slavík
563d535e46
rewrote wxLocale to work in Unicode mode and support charsets better
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-15 23:28:15 +00:00
Gilles Depeyrot
7d08179a70
removed trailing comma for SunSoft compiler
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-07 13:24:55 +00:00
Vadim Zeitlin
f2a139adfd
oops, have to commit this after accidentally committing intl.cpp to not break compilation (contains unfinished code)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-06 20:14:25 +00:00
Václav Slavík
dfdd617b4b
safe macro expansion
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-07 22:42:06 +00:00
Julian Smart
54800df8d8
Misc fixes, now menus are almost working on MicroWindows
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-05 13:35:53 +00:00
Vadim Zeitlin
dccce9eae1
added wxLocale::GetSystemEncoding
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-31 20:27:37 +00:00
Vadim Zeitlin
58d5dfc168
no changes, just resolved conflicts
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-04-06 17:22:04 +00:00
Václav Slavík
4178000933
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
2001-03-25 22:19:44 +00:00
Vadim Zeitlin
ec37df5776
minor fixes to wxLocale::GetSystemLanguage(), test code for it added to the console sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-03-21 19:07:23 +00:00
Václav Slavík
fda91381cd
new locales code checked in
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-01-23 23:17:57 +00:00