1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-29 15:19:44 +02:00

Force all language catalog names to lowercase

That way it's consistent across platforms.
This commit is contained in:
Leland Lucius 2020-04-27 08:45:24 -05:00
parent 67849b33ae
commit aef4eefb51
2 changed files with 3 additions and 8 deletions

View File

@ -103,7 +103,7 @@ foreach( source ${SOURCES} )
endif()
set( po "${_SRCDIR}/${source}" )
set( mo "${dst}/${AUDACITY_NAME}.mo" )
set( mo "${dst}/audacity.mo" )
add_custom_command(
DEPENDS

View File

@ -300,7 +300,6 @@ wxString GUIPrefs::InitLang( wxString langCode )
return SetLang(langCode);
}
#define IPC_APPL wxT("audacity")
static std::unique_ptr<wxLocale> sLocale;
wxString GUIPrefs::SetLang( const wxString & lang )
@ -344,12 +343,8 @@ wxString GUIPrefs::SetLang( const wxString & lang )
// catalogs are search in LIFO order, so add wxstd first.
sLocale->AddCatalog(wxT("wxstd"));
// AUDACITY_NAME is legitimately used on some *nix configurations.
#ifdef AUDACITY_NAME
sLocale->AddCatalog(wxT(AUDACITY_NAME));
#else
sLocale->AddCatalog(IPC_APPL);
#endif
// Must match TranslationExists() in Languages.cpp
sLocale->AddCatalog("audacity");
// Initialize internationalisation (number formats etc.)
//