From dcfa070176ab3819a77edd8f97a983b3c76d5079 Mon Sep 17 00:00:00 2001 From: antelle Date: Sat, 18 Apr 2020 15:48:29 +0200 Subject: [PATCH] translated a dropbox message (cherry picked from commit abc154738c1545fe792680eedd3e7730a6dc0442) --- app/scripts/locales/base.json | 1 + app/scripts/storage/impl/storage-dropbox.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/scripts/locales/base.json b/app/scripts/locales/base.json index 34f70fb2..e8e83e49 100644 --- a/app/scripts/locales/base.json +++ b/app/scripts/locales/base.json @@ -598,6 +598,7 @@ "dropboxSetupDesc": "Some configuration is required to use Dropbox in a self-hosted app. Please create your own Dropbox app and fill in its key below.", "dropboxAppKey": "Dropbox app key", "dropboxAppKeyDesc": "Copy the key from your Dropbox app (Developer settings)", + "dropboxAppKeyHint": "your app key", "dropboxAppSecret": "Dropbox app secret", "dropboxAppSecretDesc": "The secret can be found next to the app key", "dropboxFolder": "App folder", diff --git a/app/scripts/storage/impl/storage-dropbox.js b/app/scripts/storage/impl/storage-dropbox.js index cfd73dd3..e1a339ef 100644 --- a/app/scripts/storage/impl/storage-dropbox.js +++ b/app/scripts/storage/impl/storage-dropbox.js @@ -2,6 +2,7 @@ import { StorageBase } from 'storage/storage-base'; import { Features } from 'util/features'; import { UrlFormat } from 'util/formatting/url-format'; import { DropboxApps } from 'const/cloud-storage-apps'; +import { Locale } from 'util/locale'; const DropboxCustomErrors = { BadKey: 'bad-key' @@ -203,7 +204,7 @@ class StorageDropbox extends StorageBase { value = DropboxApps.FullDropbox.id; break; case 'custom': - value = '(your app key)'; + value = `(${Locale.dropboxAppKeyHint})`; break; default: return;