Allow translations to load from build dir
This commit is contained in:
parent
1bb3135888
commit
884de1f932
|
@ -767,6 +767,14 @@ void PGM_BASE::SetLanguagePath()
|
||||||
wxLocale::AddCatalogLookupPathPrefix( fn.GetPath() );
|
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…
Reference in New Issue