Add share/locale to catalog paths on windows

This commit is contained in:
Marek Roszko 2024-01-15 22:08:17 -05:00
parent 88dc531d91
commit fc62d36441
3 changed files with 21 additions and 0 deletions

View File

@ -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;

View File

@ -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 ) )

View File

@ -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
/**