Filter localizable strings.

Only user facing strings.
This commit is contained in:
SET
2022-10-15 18:54:17 +02:00
parent 1061b744c2
commit f7e210a356
14 changed files with 68 additions and 68 deletions

View File

@@ -70,13 +70,13 @@ void BaseGridPicker::CreateGrid()
void BaseGridPicker::SetIntentLabel(const wxString& intent)
{
m_intentLabel = intent;
wxASSERT_MSG(m_stringTable != NULL, _("m_stringTable IS NULL"));
wxASSERT_MSG(m_stringTable != NULL, _T("m_stringTable IS NULL"));
m_stringTable->SetColLabelValue(0, m_intentLabel);
}
wxString BaseGridPicker::GetIntent() const
{
wxASSERT_MSG(m_stringTable != NULL, _("m_stringTable IS NULL"));
wxASSERT_MSG(m_stringTable != NULL, _T("m_stringTable IS NULL"));
for (uint row = 0; row < m_stringTable->GetRowsCount(); row++)
{
if (m_stringTable->GetValue(row, 2) != _T("0")
@@ -138,7 +138,7 @@ void BaseGridPicker::OnPopupHidden(wxShowEvent& evt)
void BaseGridPicker::PreparePreferredCol()
{
wxASSERT_MSG(m_stringTable != NULL, _("m_stringTable IS NULL"));
wxASSERT_MSG(m_stringTable != NULL, _T("m_stringTable IS NULL"));
wxGridCellAttr * colAtt = m_stringTable->GetAttr(m_grid->GetGridCursorRow(), 2, wxGridCellAttr::Col);
if (colAtt == NULL) colAtt = new wxGridCellAttr();
wxGridCellBoolEditor * ed = new wxGridCellBoolEditor();
@@ -151,7 +151,7 @@ void BaseGridPicker::PreparePreferredCol()
void BaseGridPicker::PrepareTypeCol()
{
wxASSERT_MSG(m_stringTable != NULL, _("m_stringTable IS NULL"));
wxASSERT_MSG(m_stringTable != NULL, _T("m_stringTable IS NULL"));
wxGridCellAttr * colAtt = m_stringTable->GetAttr(m_grid->GetGridCursorRow(), 1, wxGridCellAttr::Col);
if (colAtt == NULL) colAtt = new wxGridCellAttr();
wxGridCellChoiceEditor* ed = new wxGridCellChoiceEditor(m_colTypeChoices);
@@ -161,8 +161,8 @@ void BaseGridPicker::PrepareTypeCol()
void BaseGridPicker::PrepareGrid()
{
wxASSERT_MSG(m_grid != NULL, _("m_grid IS NULL"));
wxASSERT_MSG(m_stringTable != NULL, _("m_stringTable IS NULL"));
wxASSERT_MSG(m_grid != NULL, _T("m_grid IS NULL"));
wxASSERT_MSG(m_stringTable != NULL, _T("m_stringTable IS NULL"));
m_grid->AppendCols(4);
m_grid->AppendRows(m_nbInsertRows);
PreparePreferredCol();

View File

@@ -82,7 +82,7 @@ void JsonGridPickerCtrl::SetValue(const wxString& value)
}
if (!root.IsArray())
{
wxASSERT_MSG(root.IsArray(), _("JSON data is not an array"));
wxASSERT_MSG(root.IsArray(), _T("JSON data is not an array"));
return;
}
for (uint row = 0; row < root.Size(); row++)
@@ -117,7 +117,7 @@ wxString JsonGridPickerCtrl::GetValue()
void JsonGridPickerCtrl::FillGrid()
{
wxASSERT_MSG(m_grid != NULL, _("m_grid IS NULL"));
wxASSERT_MSG(m_grid != NULL, _T("m_grid IS NULL"));
wxJSONReader reader(wxJSONREADER_STRICT);
wxJSONValue root;
uint nbErr = reader.Parse(m_value, &root);
@@ -132,7 +132,7 @@ void JsonGridPickerCtrl::FillGrid()
}
if (!root.IsArray())
{
wxASSERT_MSG(root.IsArray(), _("JSON data is not an array"));
wxASSERT_MSG(root.IsArray(), _T("JSON data is not an array"));
return;
}
@@ -148,8 +148,8 @@ void JsonGridPickerCtrl::FillGrid()
void JsonGridPickerCtrl::DumpGrid()
{
wxASSERT_MSG(m_grid != NULL, _("m_grid IS NULL"));
wxASSERT_MSG(m_stringTable != NULL, _("m_stringTable IS NULL"));
wxASSERT_MSG(m_grid != NULL, _T("m_grid IS NULL"));
wxASSERT_MSG(m_stringTable != NULL, _T("m_stringTable IS NULL"));
if (!m_editable || !m_stringTable || !m_grid)
return;
wxJSONWriter writer;

View File

@@ -37,7 +37,7 @@ wxString JsonHelper::GetIntent(const wxString& jsonData)
}
if (!root.IsArray())
{
wxASSERT_MSG(root.IsArray(), _("JSON data is not an array"));
wxASSERT_MSG(root.IsArray(), _T("JSON data is not an array"));
return wxEmptyString;
}
for (uint row = 0; row < root.Size(); row++)

View File

@@ -59,7 +59,7 @@ void LBoundJsonGridPicker::SetNull()
bool LBoundJsonGridPicker::IsDirty()
{
wxASSERT_MSG(m_rs != NULL, _("RS = NULL"));
wxASSERT_MSG(m_rs != NULL, _T("RS = NULL"));
wxAny BEData = m_rs->GetData(m_columnName);
const wxString ctrlValue = GetValue();
/*
@@ -85,7 +85,7 @@ bool LBoundJsonGridPicker::IsDirty()
}
if (!beRoot.IsArray())
{
wxASSERT_MSG(beRoot.IsArray(), _("Back end JSON data is not an array"));
wxASSERT_MSG(beRoot.IsArray(), _T("Back end JSON data is not an array"));
return true;
}
@@ -105,7 +105,7 @@ bool LBoundJsonGridPicker::IsDirty()
}
if (!ctrlRoot.IsArray())
{
wxASSERT_MSG(ctrlRoot.IsArray(), _("Control JSON data is not an array"));
wxASSERT_MSG(ctrlRoot.IsArray(), _T("Control JSON data is not an array"));
return false;
}

View File

@@ -66,7 +66,7 @@ bool LBoundXmlGridPicker::IsDirty()
* canonical XML, AFAIK.
* Linking to other libraries for this would be an overkill.
*/
wxASSERT_MSG(m_rs != NULL, _("RS = NULL"));
wxASSERT_MSG(m_rs != NULL, _T("RS = NULL"));
wxAny BEData = m_rs->GetData(m_columnName);
return (GetValue() != BEData.As<wxString>());
}

View File

@@ -53,7 +53,7 @@ const wxString LGridJsonCellRenderer::ProcessJsonValue(const wxString& cellValue
}
if (!root.IsArray())
{
wxASSERT_MSG(root.IsArray(), _("JSON data is not an array"));
wxASSERT_MSG(root.IsArray(), _T("JSON data is not an array"));
return cellValue;
}
for (uint row = 0; row < root.Size(); row++)

View File

@@ -97,7 +97,7 @@ wxString XmlGridPickerCtrl::GetValue()
void XmlGridPickerCtrl::FillGrid()
{
wxASSERT_MSG(m_grid != NULL, _("m_grid IS NULL"));
wxASSERT_MSG(m_grid != NULL, _T("m_grid IS NULL"));
wxXmlDocument doc;
wxXmlNode * root = XmlHelper::ValidateXmlValue(doc, m_value);
if (root == NULL)
@@ -121,8 +121,8 @@ void XmlGridPickerCtrl::FillGrid()
void XmlGridPickerCtrl::DumpGrid()
{
wxASSERT_MSG(m_grid != NULL, _("m_grid IS NULL"));
wxASSERT_MSG(m_stringTable != NULL, _("m_stringTable IS NULL"));
wxASSERT_MSG(m_grid != NULL, _T("m_grid IS NULL"));
wxASSERT_MSG(m_stringTable != NULL, _T("m_stringTable IS NULL"));
if (!m_editable || !m_stringTable || !m_grid)
return;
wxXmlDocument doc;