Commit Graph

67 Commits

Author SHA1 Message Date
Vadim Zeitlin
9a83f86094 Globally replace _T() with wxT().
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Vadim Zeitlin
43b2d5e7c3 Put braces around all calls to wxLogFunctions() inside an if statement.
This suppresses all the remaining g++ -Wparentheses warnings and uses consistent style everywhere.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-20 16:47:54 +00:00
Vadim Zeitlin
42c097b83e translate wxMessageDialog labels to the language of the current locale (closes #10962)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-05 11:48:01 +00:00
Francesco Montorsi
5036c26475 include the locale name in the error message when the catalog can't be loaded
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-01 14:59:38 +00:00
Francesco Montorsi
0c54505687 put MyFrame creation code in its ctor, not in MyApp; create a status bar to show its RTL features; add some help strings to menu items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 15:31:40 +00:00
Francesco Montorsi
7256e9b6ad remove also wxT(); it's confusing, too; do load wxstd.mo catalog after calling wxLocale::Init as to show a localized error message when opening NOTEXIST.ING; add some notes about the logic of the program
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-16 16:21:59 +00:00
Francesco Montorsi
bf2d9237de remove usage of _T(); it's just confusing and it's not needed anymore; use wxTRANSLATE instead of wxGetTranslation for the 'Bad luck...' literal
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-16 15:32:59 +00:00
Francesco Montorsi
7a90a4db84 add Italian translation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-14 22:25:05 +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
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
81d3348a9b replace wx_{const,static,reinterpret}_cast with their standard C++ equivalents
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 02:43:11 +00:00
Vadim Zeitlin
79478afacd compilation fix for wxUSE_STL==1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-04 18:46:15 +00:00
Vadim Zeitlin
3a33127542 fixed command line processing which was preempted by wxApp::OnInit() call
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-26 22:57:02 +00:00
Vadim Zeitlin
ad4814e733 compilation fix after wxTRANSLATE() changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-26 22:41:53 +00:00
Vadim Zeitlin
45e6e6f8ab call OnInit() from all samples to allow using standard command line options with all of them (patch 1623971)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-04 00:34:18 +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
Vadim Zeitlin
6ea0cc70f7 use wxID_OPEN instead of INTERNAT_OPEN
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-10 23:19:50 +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
Vadim Zeitlin
89611d4d5a partly undid last commit: we still need to look in . for the message catalogs to find them under Unix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-25 22:57:49 +00:00
Vadim Zeitlin
1191c93ebc no need to add . and .. explicitely to the catalogs search path, the new catalog search code code is smart enough to find them there on its own
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-25 18:30:04 +00:00
Vadim Zeitlin
346f42313b check whether setting locale for the selected language succeeded
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-08 00:35:11 +00:00
Vadim Zeitlin
79b4079ff4 fixed the sample to work with conforming C++ compiler: local struct can't reference enclosing function's locals
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-26 20:06:35 +00:00
Mattia Barbon
996994c714 Allow displaying Japanese character with wxMotif/ANSI under a
Japanese EUC-JP locale:

- add a #define (wxMOTIF_NEW_FONT_HANDLING) defaulting to
  off
- factor the code for getting text extents in a central
  wxGetTextExtent function
- when the new font handling is enabled load a fontset instead of
  a single font. For non-Japanese locales this should load a fontset
  containing a single font.
- on a Japanese locale set the default point size to 15: the Japanese
  fonts I have are much more readable like this.
- do not set the wordwrap property for multiline wxTextCtrl with
  OpenMotif 2.1, otherwise it crashes when text is added


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-31 09:42:16 +00:00
Julian Smart
b61261dfed Applied patch [ 1217859 ] Swedish translation for the internat sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-16 17:57:23 +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
Vadim Zeitlin
de93d71f67 ensure that message catalog files are found when the sample is run under Windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-17 23:42:49 +00:00
Włodzimierz Skiba
925e9792d3 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@29684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-06 20:54:57 +00:00
Włodzimierz Skiba
f13880a907 Polish translation to i18n sample + source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-26 11:02:13 +00:00
Julian Smart
be5a51fb59 More name changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-25 11:20:37 +00:00
Julian Smart
dacaa6f142 Applied patch [ 846809 ] Cleaning of 11 samples
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 11:25:46 +00:00
Václav Slavík
552973e046 compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-09 14:01:41 +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
4c3590e409 use ngettext instead of _N
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-13 21:29:20 +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
Vadim Zeitlin
b28b097d59 added Bulgarian translations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-01 11:42:35 +00:00
Václav Slavík
96c0a5167b added Georgian translation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-12 18:37:05 +00:00
Václav Slavík
65dc921d3f don't report setlocale failure if trying to set Unicode-only language
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-11 23:20:36 +00:00
Vadim Zeitlin
085c26ac14 updated Japanese translation, minor changes to the code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-29 14:19:46 +00:00
Julian Smart
6aa89a22b8 Fixed copyrights and licence spelling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 11:55:54 +00:00
Mattia Barbon
5c0ee4a80a Fix compilation with GCC (at least 2.95.4).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-10 21:18:32 +00:00
Vadim Zeitlin
a2f26963ba added (woefully incomplete) Japanese translations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-03 23:09:13 +00:00
Vadim Zeitlin
017fcf32be allow choosing language from the command line; small cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-02 14:09:36 +00:00
Vadim Zeitlin
2b5f62a0b2 merged 2.4 branch into the trunk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Gilles Depeyrot
788233da90 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@16895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 22:31:03 +00:00
Mattia Barbon
aec18ff785 Patch [ 584078 ] Misc samples fixes from Dimitri Schoolwerth
Addresses:
  printf-format warinigs
  indentation/style
  unused variable warnings
  used wxID_ABOUT for about menu entry
  removed references to "minimal sample" in other samples
  some other misc warinigs


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-01 19:12:24 +00:00
Julian Smart
618f2efa41 Added __WXX11__ tests where appropriate
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-21 10:32:18 +00:00
Václav Slavík
b87c90c18c more wxMGL-aware samples
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-10 19:07:33 +00:00
Mattia Barbon
4693b20c75 Unicode compilation fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-09-21 20:21:44 +00:00
Gilles Depeyrot
a6c1aa9027 post wxUniv merge fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-20 18:44:10 +00:00
Vadim Zeitlin
ae0eb25f8d added russian language to the list of choices
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-02 13:44:26 +00:00