Commit Graph

181 Commits

Author SHA1 Message Date
Vadim Zeitlin
f0a6989d8b look for catalogs with LC_MESSAGES subdirectory and without it under Unix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-25 22:57:19 +00:00
Vadim Zeitlin
f830b2b1fc simplified message catalog search code using the new wxStandardPaths::GetLocalizedResourcesDir()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-25 18:28:29 +00:00
Julian Smart
5c7a8a092a wxMotif/ANSI can't cope with UTF-8
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-16 18:59:12 +00:00
Vadim Zeitlin
b7e1957a67 we need to pass szLocale allocated by strdup() and not retloc itself to setlocale()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-24 23:40:18 +00:00
Julian Smart
3f5c62f982 Reverted semicolons patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-18 16:45:41 +00:00
Julian Smart
edef87c827 Applied patch [ 1399013 ] More removals of extraneous semicolons
Wlodek Szafran


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-18 11:46:53 +00:00
Włodzimierz Skiba
ead190e478 Warning fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-16 15:51:35 +00:00
Michael Wetherell
4a10ea8b13 Warning fixes for win64
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-17 22:08:05 +00:00
Vadim Zeitlin
d368dbeaef try setting locale n wxLocale::Init(lang) to xx_YY.utf8 if xx_YY is not supported
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-08 00:37:31 +00:00
Włodzimierz Skiba
550343399a Source cleaning. wxMotif/OS2 adjustements.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-03 16:39:45 +00:00
Vadim Zeitlin
f15fa3a93f fix for a crash due to using NULL inputConv in Unicode build introduced in rev 1.162
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-28 09:41:55 +00:00
Vadim Zeitlin
c88c6e94c0 fixed a signed/unsigned comparison warning introudced by last warning fix...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 20:45:25 +00:00
Vadim Zeitlin
17a1ebd101 first round of Intel compiler warning fixes: down from a few thousands just to slightly more than 100
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 19:59:19 +00:00
Vadim Zeitlin
4115960d4b remove extraneous semicolons (patch 1299687)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-24 20:29:22 +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
420de418ea workaround for buggy setlocale() under AIX (without this wxLocale didn't work at all)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-18 23:38:06 +00:00
Vadim Zeitlin
6b91d11340 condensed 2 very similar trace messages into one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-18 23:04:11 +00:00
Vadim Zeitlin
09d2016d9d GetSystemEncodingName() cleanup: we don't need to check for US-ASCII synonyms here any more, wxFontMapper::GetEncodingFromName() knows about them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-18 20:09:51 +00:00
Vadim Zeitlin
ca6a9a1486 look in codeset-specific directory for locale files first, then fallback to the one without codeset
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-18 19:49:28 +00:00
Vadim Zeitlin
35d10652f4 don't create conversion objects unless we really need to convert
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-18 16:41:22 +00:00
Vadim Zeitlin
7cb0687287 avoid unnecessary conversions when loading the catalog (i.e. if the catalog encoding is the same as the currently used one)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-18 14:48:17 +00:00
Michael Wetherell
4d931bcca0 Translate '&Help' to '&' for italian Windows only
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-12 15:29:57 +00:00
Dimitri Schoolwerth
3c832d589d added Thai/CP874 support for MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-16 14:16:50 +00:00
Włodzimierz Skiba
963ad140d0 Second part of '[ 1216148 ] cleanup: unused variables and declarations'.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-08 14:32:16 +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
Vadim Zeitlin
de085fccce removed extra dot from msg catalog names (fix for the fix for the patch 1169837)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-29 18:12:26 +00:00
Vadim Zeitlin
58ad1bab8c use wxFileName to change catalog extension instead wxString methods, this fixes problems with dots inside file names (modified patch 1169837)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-27 16:21:41 +00:00
David Elliott
267e11c550 Use wxFontMapperBase::Get instead of wxFontMapper::Get from wxBase code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-26 06:51:56 +00:00
Włodzimierz Skiba
525d858363 Last .empty() string source cleaning before 2.5.4.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-02 13:57:02 +00:00
Stefan Csomor
b51daa4f6c using lang param, to have a CFLanguage be consistent with C-Locale
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-04 06:45:27 +00:00
Vadim Zeitlin
eb48778d4d fix to the last fix (see comments in patch 1093811)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-03 13:51:06 +00:00
Vadim Zeitlin
bea561cec0 fixed crash when setting locale failed (replaces patch 1093811)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-02 23:44:36 +00:00
Stefan Csomor
85fb220621 corrected setting the locale of the c-lib for mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-23 13:42:14 +00:00
Stefan Csomor
1ad48afbfd avoid locale that always returns US-ASCII on wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-18 09:50:11 +00:00
Włodzimierz Skiba
2e0ef2ae56 Warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-12 14:36:46 +00:00
Ron Lee
f8a586e08e Cruft cleanup from MJW, strip the tabs out of sound.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-12 03:30:07 +00:00
Vadim Zeitlin
30984deafc new set of fixes for problems due to huge files support: drop wxFileSize_t, use wxFileOffset only, make wxInvalidOffset an int (main part of the patch 1063498)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-10 21:02:58 +00:00
Ron Lee
b40a6748eb This size/offset stuff is a mess, but leaving this one warning
about a mismatch that makes the test a NOOP is just silly.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-10 14:37:55 +00:00
Vadim Zeitlin
170b04bae6 use size_t for the total size of data instead of wxFileSize_t (msg catalogs can't be that big...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-16 11:31:27 +00:00
Vadim Zeitlin
67c20e133e use wxFileSize_t instead of wxFileOffset or off_t
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 00:34:21 +00:00
Włodzimierz Skiba
254a21292b Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-05 15:38:40 +00:00
Vadim Zeitlin
4be927a2d0 signed/unsigned comparison warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 11:16:22 +00:00
Vadim Zeitlin
c4761f668a wxFile::Length() return type fix (replaces last check in)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-28 12:05:29 +00:00
Vadim Zeitlin
ed7c11abc8 warning fix after huge file patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-27 11:29:12 +00:00
Ryan Norton
1cc549e58c warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-25 00:12:28 +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
e6bf95736e compilation fix for a patch which didn't compile...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-25 15:52:40 +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
Vadim Zeitlin
f0ab09ccd0 replace wxLANGUAGE_DEFAULT with GetSystemLanguage() result in GetLanguageInfo()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-12 22:22:31 +00:00
Vadim Zeitlin
976266244c recognize roman8 charset as us-ascii (this is wrong but better than not recognizing it at all) (fixes bug 978251)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-29 07:48:15 +00:00