diff --git a/common/pgm_base.cpp b/common/pgm_base.cpp index 56dcc9c347..cde791fbb2 100644 --- a/common/pgm_base.cpp +++ b/common/pgm_base.cpp @@ -767,6 +767,14 @@ void PGM_BASE::SetLanguagePath() wxLocale::AddCatalogLookupPathPrefix( fn.GetPath() ); } } + + if( wxGetEnv( wxT( "KICAD_RUN_FROM_BUILD_DIR" ), nullptr ) ) + { + wxFileName fn( Pgm().GetExecutablePath() ); + fn.RemoveLastDir(); + fn.AppendDir( "translation" ); + wxLocale::AddCatalogLookupPathPrefix( fn.GetPath() ); + } }