~lubuntu-dev/juffed/trunk

« back to all changes in this revision

Viewing changes to plugins/favorites/FavoritesPlugin.cpp

  • Committer: Mezomish
  • Date: 2014-07-22 00:05:57 UTC
  • mfrom: (1054.1.3)
  • Revision ID: git-v1:5902d3e8b6037d54decec7dec15be6bb2b4f1eed
Merge pull request #66 from volkov0aa/fix-translations

Make more strings translatable and load Qt's translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
#include <PluginSettings.h>
9
9
 
10
10
FavoritesPlugin::FavoritesPlugin() : QObject(), JuffPlugin() {
11
 
        menu_ = new QMenu("Favorites");
 
11
        menu_ = new QMenu(tr("F&avorites"));
12
12
        addAct_ = new QAction(tr("Add current file"), 0);
13
13
        manageAct_ = new QAction(tr("Manage favorites"), 0);
14
14
        connect(addAct_, SIGNAL(triggered()), SLOT(addCurrent()));
24
24
        return "Favorites";
25
25
}
26
26
 
 
27
QString FavoritesPlugin::title() const {
 
28
        return tr("Favorites");
 
29
}
 
30
 
27
31
QString FavoritesPlugin::targetEngine() const {
28
32
        return "all";
29
33
}