add missing tr()s, etc., add some //: comments

This commit is contained in:
Oswald Buddenhagen
2009-04-17 21:11:52 +02:00
parent 9db13e3255
commit 6d5eeb7afb
35 changed files with 102 additions and 97 deletions

View File

@@ -82,7 +82,7 @@ bool HelloWorldPlugin::initialize(const QStringList &arguments, QString *error_m
QLatin1String("HelloWorld.MainView"));
// Create an action to be triggered by a menu entry
QAction *helloWorldAction = new QAction("Say \"&Hello World!\"", this);
QAction *helloWorldAction = new QAction(tr("Say \"&Hello World!\""), this);
connect(helloWorldAction, SIGNAL(triggered()), SLOT(sayHelloWorld()));
// Register the action with the action manager
@@ -143,7 +143,7 @@ void HelloWorldPlugin::sayHelloWorld()
// When passing 0 for the parent, the message box becomes an
// application-global modal dialog box
QMessageBox::information(
0, "Hello World!", "Hello World! Beautiful day today, isn't it?");
0, tr("Hello World!"), tr("Hello World! Beautiful day today, isn't it?"));
}
Q_EXPORT_PLUGIN(HelloWorldPlugin)

View File

@@ -38,6 +38,6 @@ HelloWorldWindow::HelloWorldWindow(QWidget *parent)
: QWidget(parent)
{
QBoxLayout *layout = new QVBoxLayout(this);
layout->addWidget(new QTextEdit("Focus me to activate my context!"));
layout->addWidget(new QTextEdit(tr("Focus me to activate my context!")));
setWindowTitle(tr("Hello, world!"));
}