Skip to content

Commit 8466999

Browse files
committed
Make client language gender-neutral and more clear
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
1 parent fb4785c commit 8466999

14 files changed

Lines changed: 33 additions & 33 deletions

src/cmd/cmd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class EchoDisabler
125125
QString queryPassword(const QString &user)
126126
{
127127
EchoDisabler disabler;
128-
std::cout << "Password for user " << qPrintable(user) << ": ";
128+
std::cout << "Password for account with username " << qPrintable(user) << ": ";
129129
std::string s;
130130
std::getline(std::cin, s);
131131
return QString::fromStdString(s);
@@ -383,7 +383,7 @@ int main(int argc, char **argv)
383383

384384
if (options.interactive) {
385385
if (user.isEmpty()) {
386-
std::cout << "Please enter user name: ";
386+
std::cout << "Please enter username: ";
387387
std::string s;
388388
std::getline(std::cin, s);
389389
user = QString::fromStdString(s);

src/gui/application.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ Application::Application(int &argc, char **argv)
333333
nullptr,
334334
tr("Error accessing the configuration file"),
335335
tr("There was an error while accessing the configuration "
336-
"file at %1. Please make sure the file can be accessed by your user.")
336+
"file at %1. Please make sure the file can be accessed by your system account.")
337337
.arg(ConfigFile().configFile()),
338338
tr("Quit %1").arg(Theme::instance()->appNameGUI()));
339339
QTimer::singleShot(0, qApp, SLOT(quit()));

src/gui/authenticationdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ AuthenticationDialog::AuthenticationDialog(const QString &realm, const QString &
3434
lay->addWidget(label);
3535

3636
auto *form = new QFormLayout;
37-
form->addRow(tr("&User:"), _user);
37+
form->addRow(tr("&Username:"), _user);
3838
form->addRow(tr("&Password:"), _password);
3939
lay->addLayout(form);
4040
_password->setEchoMode(QLineEdit::Password);

src/gui/creds/httpcredentialsgui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void HttpCredentialsGui::showDialog()
9696
{
9797
QString msg = tr("Please enter %1 password:<br>"
9898
"<br>"
99-
"User: %2<br>"
99+
"Username: %2<br>"
100100
"Account: %3<br>")
101101
.arg(Utility::escape(Theme::instance()->appNameGUI()),
102102
Utility::escape(_user),

src/gui/creds/oauth.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ void OAuth::start()
137137
}
138138
if (!_expectedUser.isNull() && user != _expectedUser) {
139139
// Connected with the wrong user
140-
QString message = tr("<h1>Wrong user</h1>"
141-
"<p>You logged-in with user <em>%1</em>, but must login with user <em>%2</em>.<br>"
140+
QString message = tr("<h1>Wrong account</h1>"
141+
"<p>You logged-in with account <em>%1</em>, but must login with account <em>%2</em>.<br>"
142142
"Please log out of %3 in another tab, then <a href='%4'>click here</a> "
143-
"and log in as user %2</p>")
143+
"and log in with account %2</p>")
144144
.arg(user, _expectedUser, Theme::instance()->appNameGUI(),
145145
authorisationLink().toString(QUrl::FullyEncoded));
146146
httpReplyAndClose(socket, "200 OK", message.toUtf8().constData());

src/gui/creds/webflowcredentials.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ void WebFlowCredentials::askFromUser() {
162162
_askDialog->setUrl(url);
163163
}
164164

165-
QString msg = tr("You have been logged out of %1 as user %2. Please login again.")
166-
.arg(_account->displayName(), _user);
165+
QString msg = tr("You have been logged out of your account %1 at %2. Please login again.")
166+
.arg(_user, _account->displayName());
167167
_askDialog->setInfo(msg);
168168

169169
_askDialog->show();
@@ -186,7 +186,7 @@ void WebFlowCredentials::slotAskFromUserCredentialsProvided(const QString &user,
186186
} else {
187187
qCInfo(lcWebFlowCredentials()) << "Authed with the wrong user!";
188188

189-
QString msg = tr("Please login with the user: %1")
189+
QString msg = tr("Please login with the account: %1")
190190
.arg(_user);
191191
_askDialog->setError(msg);
192192

src/gui/folderman.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ QString FolderMan::trayTooltipStatusString(
14971497
QString folderMessage;
14981498
switch (syncStatus) {
14991499
case SyncResult::Undefined:
1500-
folderMessage = tr("Undefined State.");
1500+
folderMessage = tr("Undefined state.");
15011501
break;
15021502
case SyncResult::NotYetStarted:
15031503
folderMessage = tr("Waiting to start syncing.");
@@ -1513,16 +1513,16 @@ QString FolderMan::trayTooltipStatusString(
15131513
if (hasUnresolvedConflicts) {
15141514
folderMessage = tr("Sync finished with unresolved conflicts.");
15151515
} else {
1516-
folderMessage = tr("Last Sync was successful.");
1516+
folderMessage = tr("Last sync was successful.");
15171517
}
15181518
break;
15191519
case SyncResult::Error:
15201520
break;
15211521
case SyncResult::SetupError:
1522-
folderMessage = tr("Setup Error.");
1522+
folderMessage = tr("Setup error.");
15231523
break;
15241524
case SyncResult::SyncAbortRequested:
1525-
folderMessage = tr("User Abort.");
1525+
folderMessage = tr("Sync request was aborted.");
15261526
break;
15271527
case SyncResult::Paused:
15281528
folderMessage = tr("Sync is paused.");

src/gui/tray/UserLine.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ MenuItem {
8787
sourceSize.height: Style.accountAvatarStateIndicatorSize
8888

8989
Accessible.role: Accessible.Indicator
90-
Accessible.name: model.desktopNotificationsAllowed ? qsTr("Current user status is online") : qsTr("Current user status is do not disturb")
90+
Accessible.name: model.desktopNotificationsAllowed ? qsTr("Current account status is online") : qsTr("Current account status is do not disturb")
9191
}
9292
}
9393

src/gui/tray/Window.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ Window {
227227
delegate: UserLine {
228228
onShowUserStatusSelectorDialog: {
229229
userStatusSelectorDialogLoader.source = "qrc:/qml/src/gui/UserStatusSelectorDialog.qml"
230-
userStatusSelectorDialogLoader.item.title = qsTr("Set user status")
230+
userStatusSelectorDialogLoader.item.title = qsTr("Set account status")
231231
userStatusSelectorDialogLoader.item.model.load(index)
232232
userStatusSelectorDialogLoader.item.show()
233233
}
@@ -381,7 +381,7 @@ Window {
381381
Layout.preferredWidth: Style.accountAvatarSize
382382

383383
Accessible.role: Accessible.Graphic
384-
Accessible.name: qsTr("Current user avatar")
384+
Accessible.name: qsTr("Current account avatar")
385385

386386
Rectangle {
387387
id: currentAccountStatusIndicatorBackground
@@ -420,7 +420,7 @@ Window {
420420
sourceSize.height: Style.accountAvatarStateIndicatorSize
421421

422422
Accessible.role: Accessible.Indicator
423-
Accessible.name: UserModel.desktopNotificationsAllowed ? qsTr("Current user status is online") : qsTr("Current user status is do not disturb")
423+
Accessible.name: UserModel.desktopNotificationsAllowed ? qsTr("Current account status is online") : qsTr("Current account status is do not disturb")
424424
}
425425
}
426426

src/gui/userstatusselectormodel.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,23 +141,23 @@ void UserStatusSelectorModel::onError(UserStatusConnector::Error error)
141141
return;
142142

143143
case UserStatusConnector::Error::CouldNotFetchUserStatus:
144-
setError(tr("Could not fetch user status. Make sure you are connected to the server."));
144+
setError(tr("Could not fetch status. Make sure you are connected to the server."));
145145
return;
146146

147147
case UserStatusConnector::Error::UserStatusNotSupported:
148-
setError(tr("User status feature is not supported. You will not be able to set your user status."));
148+
setError(tr("Status feature is not supported. You will not be able to set your status."));
149149
return;
150150

151151
case UserStatusConnector::Error::EmojisNotSupported:
152-
setError(tr("Emojis feature is not supported. Some user status functionality may not work."));
152+
setError(tr("Emojis feature is not supported. Some status functionality may not work."));
153153
return;
154154

155155
case UserStatusConnector::Error::CouldNotSetUserStatus:
156-
setError(tr("Could not set user status. Make sure you are connected to the server."));
156+
setError(tr("Could not set status. Make sure you are connected to the server."));
157157
return;
158158

159159
case UserStatusConnector::Error::CouldNotClearMessage:
160-
setError(tr("Could not clear user status message. Make sure you are connected to the server."));
160+
setError(tr("Could not clear status message. Make sure you are connected to the server."));
161161
return;
162162
}
163163

0 commit comments

Comments
 (0)