Commit 9003d856 authored by Antoni Bella Pérez's avatar Antoni Bella Pérez 🚵🏻
Browse files

GUI l10n fixes

* Add @title:window helpers
parent 2a51004e
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
ChatDlg::ChatDlg(KGame *game,QWidget *parent) ChatDlg::ChatDlg(KGame *game,QWidget *parent)
: QDialog(parent),mChat(), mChatDlg() : QDialog(parent),mChat(), mChatDlg()
{ {
setWindowTitle(i18n("Chat Dlg")); setWindowTitle(i18nc("@title:window", "Chat Dlg"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok); QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok);
QVBoxLayout *mainLayout = new QVBoxLayout; QVBoxLayout *mainLayout = new QVBoxLayout;
setLayout(mainLayout); setLayout(mainLayout);
......
...@@ -77,7 +77,7 @@ void KChatDialog::init() ...@@ -77,7 +77,7 @@ void KChatDialog::init()
d->mTextPage = new QFrame( this ); d->mTextPage = new QFrame( this );
QGridLayout* layout = new QGridLayout(d->mTextPage); QGridLayout* layout = new QGridLayout(d->mTextPage);
setWindowTitle(i18n("Configure Chat")); setWindowTitle(i18nc("@title:window", "Configure Chat"));
buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel|QDialogButtonBox::Apply); buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel|QDialogButtonBox::Apply);
QWidget *mainWidget = new QWidget(this); QWidget *mainWidget = new QWidget(this);
setLayout(layout); setLayout(layout);
......
...@@ -116,7 +116,7 @@ KGameDebugDialog::KGameDebugDialog(KGame* g, QWidget* parent, bool modal) ...@@ -116,7 +116,7 @@ KGameDebugDialog::KGameDebugDialog(KGame* g, QWidget* parent, bool modal)
: KPageDialog(parent), : KPageDialog(parent),
d( new KGameDebugDialogPrivate ) d( new KGameDebugDialogPrivate )
{ {
setWindowTitle(i18n("KGame Debug Dialog")); setWindowTitle(i18nc("@title:window", "KGame Debug Dialog"));
//QT5 setButtons(Close); //QT5 setButtons(Close);
//QT5 setDefaultButton(Close); //QT5 setDefaultButton(Close);
setModal(modal); setModal(modal);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment