From fa92c43de0f0c39b88bc5cd9fff520f5ea948cd3 Mon Sep 17 00:00:00 2001 From: Patrick Avery Date: Fri, 24 Jun 2016 07:06:04 -0400 Subject: [PATCH] Updated a few undo texts to use tr() in RWMolecule --- avogadro/qtgui/rwmolecule.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/avogadro/qtgui/rwmolecule.cpp b/avogadro/qtgui/rwmolecule.cpp index 06887957c..94d41219a 100644 --- a/avogadro/qtgui/rwmolecule.cpp +++ b/avogadro/qtgui/rwmolecule.cpp @@ -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); @@ -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); @@ -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);