Browse Source

Allow translations to load from build dir

6.0.7
Jon Evans 5 years ago
parent
commit
884de1f932
  1. 8
      common/pgm_base.cpp

8
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() );
}
}

Loading…
Cancel
Save