Decrease complexity of translations

presentation
Ulrich Huber 7 years ago
parent 1897979bd5
commit 56d8701406
  1. 31
      src/undo/AddUndoAction.cpp

@ -116,26 +116,27 @@ string AddUndoAction::getText()
PageLayerPosEntry<Element>* e = (PageLayerPosEntry<Element>*) l->data;
if (type != e->element->getType())
{
text += _(" elements");
text += " ";
text += _("elements");
return text;
}
}
if (type == ELEMENT_STROKE)
text += " ";
switch(type)
{
text += _(" stroke");
}
else if (type == ELEMENT_TEXT)
{
text += _(" text");
}
else if (type == ELEMENT_IMAGE)
{
text += _(" image");
}
else if (type == ELEMENT_TEXIMAGE)
{
text += _(" latex");
case ELEMENT_STROKE:
text += _(" stroke");
break;
case ELEMENT_IMAGE:
text += _(" image");
break;
case ELEMENT_TEXIMAGE:
text += _(" latex");
break;
case ELEMENT_TEXT:
text += _(" text");
break;
}
}
}

Loading…
Cancel
Save