efc11c4ac50ac51cd71d4dcfa84e63b11000c3f5.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From efc11c4ac50ac51cd71d4dcfa84e63b11000c3f5 Mon Sep 17 00:00:00 2001
  2. From: Ian McInerney <ian.s.mcinerney@ieee.org>
  3. Date: Fri, 8 Apr 2022 01:08:12 +0100
  4. Subject: [PATCH] Remove custom languages in wx 3.1.6 and above
  5. Basque was added as a language with identifier "eu" into wx 3.1.6, so
  6. there is no more need to provide custom languages. Additionally, this
  7. struct changed formatting in 3.1.6, meaning it threw a compile error
  8. when included (so it would have to be fixed if still needed).
  9. ---
  10. src/AudacityApp.cpp | 8 +++-----
  11. 1 file changed, 3 insertions(+), 5 deletions(-)
  12. diff --git a/src/AudacityApp.cpp b/src/AudacityApp.cpp
  13. index d6e2576bf48..e3979249ceb 100644
  14. --- a/src/AudacityApp.cpp
  15. +++ b/src/AudacityApp.cpp
  16. @@ -992,12 +992,10 @@ void AudacityApp::OnTimer(wxTimerEvent& WXUNUSED(event))
  17. #define WL(lang,sublang)
  18. #endif
  19. -#if wxCHECK_VERSION(3, 0, 1)
  20. +#if wxCHECK_VERSION(3, 0, 1) && !wxCHECK_VERSION(3, 1, 6)
  21. wxLanguageInfo userLangs[] =
  22. {
  23. - // Bosnian is defined in wxWidgets already
  24. -// { wxLANGUAGE_USER_DEFINED, wxT("bs"), WL(0, SUBLANG_DEFAULT) wxT("Bosnian"), wxLayout_LeftToRight },
  25. -
  26. + // Included upstream in version 3.1.6
  27. { wxLANGUAGE_USER_DEFINED, wxT("eu"), WL(0, SUBLANG_DEFAULT) wxT("Basque"), wxLayout_LeftToRight },
  28. };
  29. #endif
  30. @@ -1332,7 +1330,7 @@ bool AudacityApp::OnInit()
  31. //
  32. // TODO: The whole Language initialization really need to be reworked.
  33. // It's all over the place.
  34. -#if wxCHECK_VERSION(3, 0, 1)
  35. +#if wxCHECK_VERSION(3, 0, 1) && !wxCHECK_VERSION(3, 1, 6)
  36. for (size_t i = 0, cnt = WXSIZEOF(userLangs); i < cnt; i++)
  37. {
  38. wxLocale::AddLanguage(userLangs[i]);