22#include <wx/translation.h>
27#define BOOL_TRUE _HKI( "True" )
28#define BOOL_FALSE _HKI( "False" )
33 return wxGetTranslation( aNativeLabel ).IsSameAs( aStr, aCaseSensitive )
34 || aStr.IsSameAs( aNativeLabel, aCaseSensitive );
43 return aValue ? wxT(
"1" ) : wxT(
"0" );
47 wxFAIL_MSG(
"Invalid BOOL_FORMAT" );
56 if( aValue == wxS(
"1" ) )
58 else if( aValue == wxS(
"0" ) )
65 aReporter.
Report( wxString::Format(
_(
"The value '%s' can't be converted to boolean correctly, "
66 "it has been interpreted as 'False'" ),
A pure virtual class used to derive REPORTER objects from.
virtual REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)
Report a string with a given severity.
Some functions to handle hotkeys in KiCad.