Always use active wxTranslations instance via wxLocale.
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 29 Apr 2010 08:31:42 +0000 (08:31 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 29 Apr 2010 08:31:42 +0000 (08:31 +0000)
commit0d28a1f9271606b5a38b4b7b2a78bd869bb7d520
tree38a09bc11a6b6937ae56c5c86b1be1d6671da109
parent02aa812cb0e5a1ae7fcf827f53f9d41cb0e53c6b
Always use active wxTranslations instance via wxLocale.

Don't use m_translations directly, if the user made changes to
wxTranslations instance, it would be too confusing if calls through
wxLocale compat API did nothing.

Also don't change active wxTranslations object from wxLocale if already
done by user, only call wxTranslations::Set() from wxLocale constructor
if it wasn't already set by the user. Still do if wxTranslations
instance currently in use was set by previous wxLocale on the locale
stack.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/intl.h
src/common/intl.cpp