wxwidgets/src
Václav Slavík 2af36e9560 Partially revert "Add AddAvailableCatalog() and use it in AddStdCatalog()"
This commit partially reverts 94b1a17aeb.

The above commit changed translation lookup logic to differentiate
between msgid and "available" translations (the latter being loaded from
a file or resource). It first attempted to use available translations
and only felt back to msgid language as the last resort.

Unfortunately, doing that broke lookup in cases when the user had msgid
language as not-last preference in their UI languages list, or even when
a similar translation was available. For example:

- msgid=en, user preference [cs,en,fr], only fr.po available: fr would
  be used instead of en
- msgid=en_US or en, user preference [en], but en_GB.po available:
  British English would be used even for US users

This commit fixes this by restoring the previous behavior where msgid
language was treated as a first-class citizen in lookup, while
preserving the API that allows distinguishing between the two cases.

It also reimplements AddStdCatalog() in a more straightforward way that
doesn't rely on AddAvailableCatalog().
2024-02-13 16:12:38 +01:00
..
aui Merge branch 'aui-events' 2024-01-12 18:38:24 +01:00
common Partially revert "Add AddAvailableCatalog() and use it in AddStdCatalog()" 2024-02-13 16:12:38 +01:00
dfb Fix compiling calls to CopyBits() in C++17 2023-10-24 01:22:17 +02:00
expat@23b7f47ef6 Apply fix for CVE-2022-40674 to Expat submodule 2022-10-07 02:02:33 +02:00
generic Merge branch 'generic-listctrl-center-label' 2024-02-09 18:36:53 +01:00
gtk Partial fix for wxSearchCtrl mouse enter/leave events 2024-02-09 12:52:30 -08:00
html Avoid Clang -Wcomma warnings 2023-11-23 09:17:21 -08:00
jpeg@8524936115
msw Reuse wxButton::GetDefaultSize() instead of duplicating it 2024-02-05 19:05:02 +01:00
osx Do common wxApp cleanup before port-specific part in all ports 2024-01-30 21:07:29 +01:00
png@d675c669c8 Update libpng and libtiff to fix warnings with latest clang 2022-03-20 16:01:31 +01:00
propgrid Allow passing -1 to wxPGProperty::SetChoiceSelection() again 2024-02-09 17:21:52 +01:00
qt Add wxRendererNative implementation for wxQt 2024-01-23 03:22:06 +01:00
ribbon Modernize ribbon code 2024-02-09 17:04:43 +01:00
richtext Fix wrong uses of wxBitmap::CreateWithDIPSize() 2024-01-09 15:09:31 +01:00
stc Use wxBitmap::CreateWithLogicalSize() in wxSTC code 2024-01-09 15:09:31 +01:00
tiff@227d3d489f Synchronize config.* files in submodules with top-level repository 2023-07-27 17:14:48 +02:00
univ wxUniv: wxWindow: rename SetCurrent() to WXMakeCurrent() 2024-01-17 00:52:01 -05:00
unix Add wxStandardPaths::GetSharedLibrariesDir() 2024-01-28 18:41:20 +01:00
x11 Do common wxApp cleanup before port-specific part in all ports 2024-01-30 21:07:29 +01:00
xml Add optional wxXmlParseError to wxXmlDocument::Load() 2024-01-19 02:55:54 +01:00
xrc Don't use wxXmlNode directly in wxPropertyGridXmlHandler 2024-02-03 21:46:15 +01:00
zlib@a6c8900ecb Update bundled zlib to 1.2.13.1 2023-01-26 23:41:10 +01:00