Skip to content

Commit

Permalink
Merge pull request cryos#89 from psavery/rwmolecule-use-tr
Browse files Browse the repository at this point in the history
Updated a few undo texts to use tr() in RWMolecule
  • Loading branch information
cryos authored Jun 27, 2016
2 parents c3fc0f6 + fa92c43 commit 52d4e9f
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 52d4e9f

Please sign in to comment.