Shorten lang names in wxTranslations, not wxFileTranslationsLoader.
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 26 Apr 2010 20:51:16 +0000 (20:51 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 26 Apr 2010 20:51:16 +0000 (20:51 +0000)
commit076c0a8ee8c9238af2037b66ef97bda7cede4e4a
tree76126e20aded6aa09a07886248e353dc56451c8a
parent8dffb6b1a7ddfbb22667d9544dbe11ca49ca046c
Shorten lang names in wxTranslations, not wxFileTranslationsLoader.

If a catalog with full language name ("fr_BE") doesn't exist,
wxFileTranslationsLoader tries to look for just the base language ("fr")
too. This isn't something specific to wxFileTranslationsLoader, it makes
sense to do it regardless of the loader.

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