Diffstat (limited to 'noncore/settings/aqpkg/mainwin.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/mainwin.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/noncore/settings/aqpkg/mainwin.cpp b/noncore/settings/aqpkg/mainwin.cpp index 5e03f11..e577285 100644 --- a/noncore/settings/aqpkg/mainwin.cpp +++ b/noncore/settings/aqpkg/mainwin.cpp | |||
@@ -43,30 +43,30 @@ MainWindow :: MainWindow( QWidget *p, char *name ) | |||
43 | 43 | ||
44 | // Create our menu | 44 | // Create our menu |
45 | help = new QPopupMenu( this ); | 45 | help = new QPopupMenu( this ); |
46 | help->insertItem( "&General", this, SLOT(displayHelp()), Qt::CTRL+Qt::Key_G ); | 46 | help->insertItem( tr( "General" ), this, SLOT(displayHelp()) ); |
47 | help->insertItem( "&About", this, SLOT(displayAbout()), Qt::CTRL+Qt::Key_A ); | 47 | help->insertItem( tr( "About" ), this, SLOT(displayAbout()) ); |
48 | 48 | ||
49 | settings = new QPopupMenu( this ); | 49 | settings = new QPopupMenu( this ); |
50 | settings->insertItem( "&Settings", this, SLOT(displaySettings()), Qt::CTRL+Qt::Key_S ); | 50 | settings->insertItem( tr( "Settings" ), this, SLOT(displaySettings()) ); |
51 | 51 | ||
52 | edit = new QPopupMenu( this ); | 52 | edit = new QPopupMenu( this ); |
53 | edit->insertItem( "&Find", this, SLOT(searchForPackage()), Qt::CTRL+Qt::Key_I ); | 53 | edit->insertItem( tr( "Find" ), this, SLOT(searchForPackage()) ); |
54 | edit->insertItem( "Find &Next", this, SLOT(repeatSearchForPackage()), Qt::CTRL+Qt::Key_N ); | 54 | edit->insertItem( tr( "Find Next" ), this, SLOT(repeatSearchForPackage()) ); |
55 | 55 | ||
56 | filter = new QPopupMenu( this ); | 56 | filter = new QPopupMenu( this ); |
57 | mnuShowUninstalledPkgsId = filter->insertItem( "Show &Non-Installed Packages", this, SLOT(filterUninstalledPackages()), Qt::CTRL+Qt::Key_U ); | 57 | mnuShowUninstalledPkgsId = filter->insertItem( tr( "Show Non-Installed Packages" ), this, SLOT(filterUninstalledPackages()) ); |
58 | mnuShowInstalledPkgsId = filter->insertItem( "Show In&stalled Packages", this, SLOT(filterInstalledPackages()), Qt::CTRL+Qt::Key_S ); | 58 | mnuShowInstalledPkgsId = filter->insertItem( tr( "Show Installed Packages" ), this, SLOT(filterInstalledPackages()) ); |
59 | mnuShowUpgradedPkgsId = filter->insertItem( "Show U&pdated Packages", this, SLOT(filterUpgradedPackages()), Qt::CTRL+Qt::Key_P ); | 59 | mnuShowUpgradedPkgsId = filter->insertItem( tr( "Show Updated Packages" ), this, SLOT(filterUpgradedPackages()) ); |
60 | filter->insertSeparator(); | 60 | filter->insertSeparator(); |
61 | mnuFilterByCategory = filter->insertItem( "Filter By &Category", this, SLOT(filterCategory()), Qt::CTRL+Qt::Key_C ); | 61 | mnuFilterByCategory = filter->insertItem( tr( "Filter By Category" ), this, SLOT(filterCategory()) ); |
62 | mnuSetFilterCategory = filter->insertItem( "Set Filter C&ategory", this, SLOT(setFilterCategory()), Qt::CTRL+Qt::Key_A ); | 62 | mnuSetFilterCategory = filter->insertItem( tr( "Set Filter Category" ), this, SLOT(setFilterCategory()) ); |
63 | 63 | ||
64 | // Create the main menu | 64 | // Create the main menu |
65 | menu = menuBar(); //new QMenuBar( this ); | 65 | menu = menuBar(); //new QMenuBar( this ); |
66 | menu->insertItem( tr( "&Settings" ), settings ); | 66 | menu->insertItem( tr( "Settings" ), settings ); |
67 | menu->insertItem( tr( "&Edit" ), edit ); | 67 | menu->insertItem( tr( "Edit" ), edit ); |
68 | menu->insertItem( tr( "&Filter" ), filter ); | 68 | menu->insertItem( tr( "Filter" ), filter ); |
69 | menu->insertItem( tr( "&Help" ), help ); | 69 | menu->insertItem( tr( "Help" ), help ); |
70 | 70 | ||
71 | // Create UI widgets | 71 | // Create UI widgets |
72 | stack = new QWidgetStack( this ); | 72 | stack = new QWidgetStack( this ); |
@@ -145,7 +145,7 @@ void MainWindow :: repeatSearchForPackage() | |||
145 | 145 | ||
146 | void MainWindow :: displayAbout() | 146 | void MainWindow :: displayAbout() |
147 | { | 147 | { |
148 | QMessageBox::about( this, "About AQPkg", VERSION_TEXT ); | 148 | QMessageBox::about( this, tr( "About AQPkg" ), tr( VERSION_TEXT ) ); |
149 | } | 149 | } |
150 | 150 | ||
151 | 151 | ||