mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-01 02:46:59 +03:00
Changed all strings displayed to end user to use qts localization system
This commit is contained in:
parent
cbf3238f0e
commit
31e5a0fe6d
11 changed files with 47 additions and 36 deletions
|
|
@ -24,8 +24,8 @@ LoginDialog::LoginDialog(QWidget *parent, const QString& loginErrMsg) :
|
|||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
//TODO: make translateable
|
||||
offlineButton = new QPushButton("Offline Once");
|
||||
//: Use offline mode one time
|
||||
offlineButton = new QPushButton(tr("Offline Once"));
|
||||
|
||||
ui->loginButtonBox->addButton(offlineButton, QDialogButtonBox::ActionRole);
|
||||
|
||||
|
|
@ -33,8 +33,8 @@ LoginDialog::LoginDialog(QWidget *parent, const QString& loginErrMsg) :
|
|||
isOnline_ = true;
|
||||
onlineForced = false;
|
||||
|
||||
//FIXME: translateable?
|
||||
ui->usernameTextBox->lineEdit()->setPlaceholderText(QApplication::translate("LoginDialog", "Name", 0));
|
||||
//: The username during login (placeholder)
|
||||
ui->usernameTextBox->lineEdit()->setPlaceholderText(tr("Name"));
|
||||
|
||||
connect(ui->usernameTextBox, SIGNAL(currentTextChanged(QString)), this, SLOT(userTextChanged(QString)));
|
||||
connect(ui->forgetButton, SIGNAL(clicked(bool)), this, SLOT(forgetCurrentUser()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue