diff --git a/common/pgm_base.cpp b/common/pgm_base.cpp index cde791fbb2..59a6559570 100644 --- a/common/pgm_base.cpp +++ b/common/pgm_base.cpp @@ -766,6 +766,18 @@ void PGM_BASE::SetLanguagePath() wxLogTrace( traceLocale, "Adding locale lookup path: " + fn.GetPath() ); wxLocale::AddCatalogLookupPathPrefix( fn.GetPath() ); } + + // Append path for macOS install + fn.RemoveLastDir(); + fn.RemoveLastDir(); + fn.RemoveLastDir(); + fn.AppendDir( "internat" ); + + if( fn.IsDirReadable() ) + { + wxLogTrace( traceLocale, "Adding locale lookup path: " + fn.GetPath() ); + wxLocale::AddCatalogLookupPathPrefix( fn.GetPath() ); + } } if( wxGetEnv( wxT( "KICAD_RUN_FROM_BUILD_DIR" ), nullptr ) ) diff --git a/translation/CMakeLists.txt b/translation/CMakeLists.txt index 946f0c6b24..b4efbd92b1 100644 --- a/translation/CMakeLists.txt +++ b/translation/CMakeLists.txt @@ -1,6 +1,9 @@ if( UNIX AND KICAD_I18N_UNIX_STRICT_PATH ) set( KICAD_I18N_PATH ${CMAKE_INSTALL_PREFIX}/share/locale CACHE PATH "Location of KiCad i18n files." ) +elseif( APPLE ) + set( KICAD_I18N_PATH ${KICAD_DATA}/internat + CACHE PATH "Location of KiCad i18n files." ) else() # Default Unix inconvenient locale lookup path set( KICAD_I18N_PATH share/kicad/internat