aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fakevim/fakevimactions.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-08-25 17:05:11 +0200
committerhjk <hjk121@nokiamail.com>2014-08-26 11:59:39 +0200
commit513ee02f10437a74fad6c00b9955accc5c4b6e12 (patch)
tree5cdfaaea06fbca13c497d27b661a52fe149039f2 /src/plugins/fakevim/fakevimactions.cpp
parent6fc20eeccb1c8cadc0f125c554fe9c49f601936e (diff)
FakeVim: Use a single "FakeVim" translation context
Change-Id: I624dedddf88a017af107670794034282f0aafdcc Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/fakevim/fakevimactions.cpp')
-rw-r--r--src/plugins/fakevim/fakevimactions.cpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/plugins/fakevim/fakevimactions.cpp b/src/plugins/fakevim/fakevimactions.cpp
index 977ddc06bc..cb00fe3697 100644
--- a/src/plugins/fakevim/fakevimactions.cpp
+++ b/src/plugins/fakevim/fakevimactions.cpp
@@ -29,6 +29,7 @@
#include "fakevimactions.h"
#include "fakevimhandler.h"
+#include "fakevimtr.h"
// Please do not add any direct dependencies to other Qt Creator code here.
// Instead emit signals and let the FakeVimPlugin channel the information to
@@ -39,8 +40,6 @@
#include <utils/qtcassert.h>
#include <QDebug>
-#include <QObject>
-#include <QCoreApplication>
#ifdef FAKEVIM_STANDALONE
using namespace FakeVim::Internal::Utils;
@@ -150,15 +149,15 @@ QString FakeVimSettings::trySetValue(const QString &name, const QString &value)
{
int code = m_nameToCode.value(name, -1);
if (code == -1)
- return FakeVimHandler::tr("Unknown option: %1").arg(name);
+ return Tr::tr("Unknown option: %1").arg(name);
if (code == ConfigTabStop || code == ConfigShiftWidth) {
if (value.toInt() <= 0)
- return FakeVimHandler::tr("Argument must be positive: %1=%2")
+ return Tr::tr("Argument must be positive: %1=%2")
.arg(name).arg(value);
}
SavedAction *act = item(code);
if (!act)
- return FakeVimHandler::tr("Unknown option: %1").arg(name);
+ return Tr::tr("Unknown option: %1").arg(name);
act->setValue(value);
return QString();
}
@@ -191,12 +190,9 @@ FakeVimSettings *theFakeVimSettings()
createAction(s, ConfigVimRcPath, QString(), _("VimRcPath"));
#ifndef FAKEVIM_STANDALONE
createAction(s, ConfigUseFakeVim, false, _("UseFakeVim"));
- s->item(ConfigUseFakeVim)->setText(QCoreApplication::translate("FakeVim::Internal",
- "Use Vim-style Editing"));
- s->item(ConfigReadVimRc)->setText(QCoreApplication::translate("FakeVim::Internal",
- "Read .vimrc"));
- s->item(ConfigVimRcPath)->setText(QCoreApplication::translate("FakeVim::Internal",
- "Path to .vimrc"));
+ s->item(ConfigUseFakeVim)->setText(Tr::tr("Use Vim-style Editing"));
+ s->item(ConfigReadVimRc)->setText(Tr::tr("Read .vimrc"));
+ s->item(ConfigVimRcPath)->setText(Tr::tr("Path to .vimrc"));
#endif
createAction(s, ConfigShowMarks, false, _("ShowMarks"), _("sm"));
createAction(s, ConfigPassControlKey, false, _("PassControlKey"), _("pck"));