Add share/locale to catalog paths on windows
This commit is contained in:
parent
88dc531d91
commit
fc62d36441
|
@ -184,6 +184,17 @@ wxString PATHS::GetStockDataPath( bool aRespectRunFromBuildDir )
|
|||
}
|
||||
|
||||
|
||||
#ifdef __WXMSW__
|
||||
/**
|
||||
* Gets the stock (install) data path, which is the base path for things like scripting, etc
|
||||
*/
|
||||
wxString PATHS::GetWindowsBaseSharePath()
|
||||
{
|
||||
return getWindowsKiCadRoot() + wxT( "share\\" );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
wxString PATHS::GetStockEDALibraryPath()
|
||||
{
|
||||
wxString path;
|
||||
|
|
|
@ -813,6 +813,10 @@ wxString PGM_BASE::GetLanguageTag()
|
|||
|
||||
void PGM_BASE::SetLanguagePath()
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
wxLocale::AddCatalogLookupPathPrefix( PATHS::GetWindowsBaseSharePath()
|
||||
+ wxT( "locale" ) );
|
||||
#endif
|
||||
wxLocale::AddCatalogLookupPathPrefix( PATHS::GetLocaleDataPath() );
|
||||
|
||||
if( wxGetEnv( wxT( "KICAD_RUN_FROM_BUILD_DIR" ), nullptr ) )
|
||||
|
|
|
@ -182,6 +182,12 @@ public:
|
|||
* @return The directory the font config support files can be found
|
||||
*/
|
||||
static wxString GetWindowsFontConfigDir();
|
||||
|
||||
|
||||
/**
|
||||
* Gets the stock (install) data path, which is the base path for things like scripting, etc
|
||||
*/
|
||||
static wxString GetWindowsBaseSharePath();
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue