Skip to content

Commit

Permalink
Updated a few undo texts to use tr() in RWMolecule
Browse files Browse the repository at this point in the history
  • Loading branch information
psavery committed Jun 24, 2016
1 parent ddf16f2 commit fa92c43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions avogadro/qtgui/rwmolecule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ bool RWMolecule::removeAtom(Index atomId)

RemoveAtomCommand *comm = new RemoveAtomCommand(
*this, atomId, uniqueId, atomicNumber(atomId), atomPosition3d(atomId));
comm->setText("Remove Atom");
comm->setText(tr("Remove Atom"));

m_undoStack.push(comm);

Expand All @@ -255,7 +255,7 @@ bool RWMolecule::removeAtom(Index atomId)

void RWMolecule::clearAtoms()
{
m_undoStack.beginMacro("Clear Atoms");
m_undoStack.beginMacro(tr("Clear Atoms"));

while (atomCount() != 0)
removeAtom(0);
Expand Down Expand Up @@ -710,7 +710,7 @@ bool RWMolecule::removeBond(Index bondId)

void RWMolecule::clearBonds()
{
m_undoStack.beginMacro("Clear Bonds");
m_undoStack.beginMacro(tr("Clear Bonds"));

while (bondCount() != 0)
removeBond(0);
Expand Down

0 comments on commit fa92c43

Please sign in to comment.