Fix text in the permissions menu for share link.
authorCamila <hello@camila.codes>
Wed, 8 Jul 2020 18:28:42 +0000 (20:28 +0200)
committerMichael Schuster (Rebase PR Action) <misch7@users.noreply.github.com>
Thu, 9 Jul 2020 03:21:04 +0000 (03:21 +0000)
Changed word capitalization and replace && for andi to match the server.

Signed-off-by: Camila <hello@camila.codes>
src/gui/sharelinkwidget.cpp

index 1f832bb4caefa42f5b46110a2d114b5ba4ac255a..7882cefc7b2eb802a736b6f5ec1f5c5ab0a6f9ea 100644 (file)
@@ -155,7 +155,7 @@ void ShareLinkWidget::setupUiOptions()
 
     if (_isFile) {
         checked = (perm & SharePermissionRead) && (perm & SharePermissionUpdate);
-        _allowEditingLinkAction = _linkContextMenu->addAction(tr("Allow Editing"));
+        _allowEditingLinkAction = _linkContextMenu->addAction(tr("Allow editing"));
         _allowEditingLinkAction->setCheckable(true);
         _allowEditingLinkAction->setChecked(checked);
 
@@ -167,12 +167,12 @@ void ShareLinkWidget::setupUiOptions()
 
         checked = (perm & SharePermissionRead) && (perm & SharePermissionCreate)
             && (perm & SharePermissionUpdate) && (perm & SharePermissionDelete);
-        _allowUploadEditingLinkAction = permissionsGroup->addAction(tr("Allow Upload && Editing"));
+        _allowUploadEditingLinkAction = permissionsGroup->addAction(tr("Allow upload and editing"));
         _allowUploadEditingLinkAction->setCheckable(true);
         _allowUploadEditingLinkAction->setChecked(checked);
 
         checked = (perm == SharePermissionCreate);
-        _allowUploadLinkAction = permissionsGroup->addAction(tr("File Drop (Upload Only)"));
+        _allowUploadLinkAction = permissionsGroup->addAction(tr("File drop (upload only)"));
         _allowUploadLinkAction->setCheckable(true);
         _allowUploadLinkAction->setChecked(checked);
     }
@@ -187,7 +187,7 @@ void ShareLinkWidget::setupUiOptions()
     }
 
     // Adds action to display note widget (check box)
-    _noteLinkAction = _linkContextMenu->addAction(tr("Add note to recipient"));
+    _noteLinkAction = _linkContextMenu->addAction(tr("Note to recipient"));
     _noteLinkAction->setCheckable(true);
 
     if (_linkShare->getNote().isSimpleText() && !_linkShare->getNote().isEmpty()) {
@@ -197,7 +197,7 @@ void ShareLinkWidget::setupUiOptions()
     }
 
     // Adds action to display password widget (check box)
-    _passwordProtectLinkAction = _linkContextMenu->addAction(tr("Password Protect"));
+    _passwordProtectLinkAction = _linkContextMenu->addAction(tr("Password protect"));
     _passwordProtectLinkAction->setCheckable(true);
 
     if (_linkShare.data()->isPasswordSet()) {
@@ -214,7 +214,7 @@ void ShareLinkWidget::setupUiOptions()
     }
 
     // Adds action to display expiration date widget (check box)
-    _expirationDateLinkAction = _linkContextMenu->addAction(tr("Expiration Date"));
+    _expirationDateLinkAction = _linkContextMenu->addAction(tr("Set expiration date"));
     _expirationDateLinkAction->setCheckable(true);
     if (!expireDate.isNull()) {
         _ui->calendar->setDate(expireDate);
@@ -233,7 +233,7 @@ void ShareLinkWidget::setupUiOptions()
 
     // Adds action to unshare widget (check box)
     _unshareLinkAction = _linkContextMenu->addAction(QIcon(":/client/theme/delete.svg"),
-        tr("Unshare"));
+        tr("Delete share link"));
 
     _linkContextMenu->addSeparator();