Vadim Zeitlin
c0c133e13b
add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 11:45:59 +00:00
Vadim Zeitlin
664e13143e
renamed wx/ptr_shrd.h to wx/sharedptr.h; split wx/ptr_scpd.h in wx/scopedptr.h and wx/scopedarray.h; extracted common parts into new wx/checkeddelete.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-03 12:01:46 +00:00
Vadim Zeitlin
d3b9f782ef
don't use annoying and unneeded in C++ casts of NULL to "T *" in all other files neither
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-19 13:55:27 +00:00
Vadim Zeitlin
23fb33aa4e
don't use wxString::FromASCII() with possibly non-ASCII strings (fixes asserts when testing Japanese locale in the internat sample)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-16 13:24:25 +00:00
Francesco Montorsi
f00204d341
use wxStrnlen() and add NULL-checks in wxMsgCatalogFile::FillHash for safer handling of corrupted MO files ( closes #3151 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-14 19:26:14 +00:00
Vadim Zeitlin
e5cf63c9a8
don't assert if the locale couldn't be set in AddCatalog(), we should still be able to use translations in this case
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-14 16:34:17 +00:00
Vadim Zeitlin
4cb21a7b74
fix handling of locale names without county info ( closes #10321 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-11 01:04:43 +00:00
Francesco Montorsi
ca642c8a7b
no change; just fix indentation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-10 23:56:36 +00:00
Vadim Zeitlin
03d7d36ba9
correct Serbian locale name: should be sr_RS, not sr_SR ( fixes #10295 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-22 19:50:17 +00:00
Vadim Zeitlin
a343fe63e8
move the check for msgids matching the current language in front of everything else in AddCatalog(): why bother loading catalogs uselessly?
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-14 19:10:10 +00:00
Vadim Zeitlin
6f0114437c
assert in AddCatalog() if Init() hadn't been called and also check that we have a valid language spec in wxMsgCatalogFile::Load() to ensure we don't form invalid paths there; call Init() before AddCatalog() in the sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-14 19:06:59 +00:00
Vadim Zeitlin
f6ba36e464
consistently use ExtractLang() everywhere instead of Left/Mid wxString methods; added ExtractCountry()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-14 18:58:12 +00:00
Vadim Zeitlin
5c33522fca
replace wx_{const,static,reinterpret}_cast with their standard C++ equivalents
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 02:39:52 +00:00
Vadim Zeitlin
4e10de45a6
rename ca@valencian description to "Valencian (Southern Catalan)" at translators request
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-25 15:48:52 +00:00
Vadim Zeitlin
778ce4329a
set buffer length after reading the file contents into it successfully (part of #9980 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 08:18:30 +00:00
Stefan Csomor
c933e267be
fixing file paths after renaming
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-11 19:22:25 +00:00
Vadim Zeitlin
7bf2b0881a
added language info for Northern Sami (patch 1964036)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-17 22:49:30 +00:00
Julian Smart
2eb37f730d
Fixed bug for chars with ASCII value > 127, explicitly casting to an unsigned char (Sebastian Gottschalk)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-14 14:16:39 +00:00
Stefan Csomor
73b51ea436
cleaning up common OSX code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-07 16:54:12 +00:00
Václav Slavík
e5722ef11d
there's no such thing as LANG_VALENCIAN
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-02 23:19:03 +00:00
Vadim Zeitlin
fb090fa18c
fix harmless unused variable warning under CE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-21 16:14:10 +00:00
Vadim Zeitlin
8cee59b521
honour locale modifiers such a @valencia in system locale (patch 1896444)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-18 23:43:29 +00:00
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
Paul Cornett
071ccf2a7c
build fix for non-MSW
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-12 04:03:49 +00:00
Vadim Zeitlin
42db82fd8d
simplify SETLOCALE_FAILS_ON_UNICODE_LANGS-related code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-11 23:57:30 +00:00
Vadim Zeitlin
99abd9c85c
remove half a dozen #ifndef __WXWINCE__ as they dont seem to be necessary now (wxSetlocale() is defined in wxcrt.h for all platforms); if the compilation for CE is broken it must be fixed by providing wxSetlocale() stub for it instead of writings tons of #ifdefs!
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-11 23:48:35 +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
Vadim Zeitlin
82de050cc3
use correct locale in GetInfo() under Mac (slightly modified patch 1884290)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-10 00:11:56 +00:00
Václav Slavík
6fbc263690
the wxConvUI hack in wxMsgCatalog should only be done in ANSI build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-17 18:00:58 +00:00
Julian Smart
529e125df4
Fixed GetInfo to use the current language.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-09 15:55:32 +00:00
Vadim Zeitlin
a05166568c
added wxS(); use it in a couple of places
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-02 16:31:38 +00:00
Stefan Csomor
80539f0490
unifying CFTypes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-08 17:38:38 +00:00
Stefan Csomor
b2beaece19
shorter code for wxMac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-04 17:50:33 +00:00
Vadim Zeitlin
9b3b7f5556
use wxFileName to construct well-formed paths in GetMsgCatalogSubdirs() instead of doing it ourselves with string manipulations wrongly (patch 1835208)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-04 01:34:32 +00:00
Stefan Csomor
9b3dbb11c7
bringing wxmac in line using cflocale
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-24 09:38:57 +00:00
David Elliott
afc605b2be
Document the cfstring.h/cfstring.cpp as being used by all Darwin ports (it's
...
now part of the common base library).
Use the CFLocale-based code on all Darwin systems instead of testing
__WXOSX__ in base-library code which is NEVER appropriate.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-19 19:23:29 +00:00
David Elliott
5a9cd2d142
Fix wxCocoa build by including the relevant headers for the __WXOSX__ case.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-19 19:09:20 +00:00
Stefan Csomor
1b5dbd344a
cleanup mac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-16 21:00:08 +00:00
Vadim Zeitlin
dff6cf576a
implement wxLocale::GetInfo() using CFLocale (modified patch 1760939)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-04 16:01:05 +00:00
Vadim Zeitlin
c0030ca789
load message catalogs using wxFileSystem; use wxMemoryBuffer instead of raw pointers (slightly modified patch 1810106)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-20 15:33:24 +00:00
Vadim Zeitlin
a19e936e75
look for message catalogs also directly under prefix in GetMsgCatalogSubdirs() as we used to do in 2.6
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-03 21:45:33 +00:00
Vadim Zeitlin
2aebd278e3
continue with loading the message catalog even if setting the locale failed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-26 23:10:14 +00:00
Vadim Zeitlin
6908078e27
don't do anything before including the PCH header
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-21 11:55:42 +00:00
Paul Cornett
c222ad41b2
build fix for AIX
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-21 02:39:23 +00:00
Václav Slavík
aff909dd4f
fixed crash when setting locale
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 19:11:40 +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
Vadim Zeitlin
4dfbedd3f5
fix unreachable code warning in GetUntranslatedString()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-25 00:46:20 +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
cb352236d9
added code for checking if the current locale is UTF-8 at runtime
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 20:42:13 +00:00