feat:Add python API GetKicadCurrentLanguage
This commit is contained in:
parent
e72f563033
commit
9b8fa85b32
|
@ -605,3 +605,11 @@ bool WriteDRCReport( BOARD* aBoard, const wxString& aFileName, EDA_UNITS aUnits,
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
wxString GetLanguage()
|
||||
{
|
||||
if( s_PcbEditFrame )
|
||||
return GetSettingsManager()->GetCommonSettings()->m_System.language;
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
|
|
@ -209,4 +209,11 @@ bool IsActionRunning();
|
|||
bool WriteDRCReport( BOARD* aBoard, const wxString& aFileName, EDA_UNITS aUnits,
|
||||
bool aReportAllTrackErrors );
|
||||
|
||||
/**
|
||||
* Get the language string from COMMON_SETTINGS.
|
||||
*
|
||||
* @return the current language string.
|
||||
*/
|
||||
wxString GetLanguage();
|
||||
|
||||
#endif // __PCBNEW_SCRIPTING_HELPERS_H
|
||||
|
|
Loading…
Reference in New Issue