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:
parent
67849b33ae
commit
aef4eefb51
@ -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
|
||||
|
@ -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.)
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user