summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-04-06 13:15:54 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-04-07 12:59:59 +0200
commita5a48ae65c9db6016d5547287d80b115f2c6883d (patch)
treea644b0db732d834456d866ac11a5bf0426e3f7cb /apps/files_external
parentf5c5f45572b389d97c0f07c867abca0f4ea28489 (diff)
downloadnextcloud-server-a5a48ae65c9db6016d5547287d80b115f2c6883d.tar.gz
nextcloud-server-a5a48ae65c9db6016d5547287d80b115f2c6883d.zip
Move some translation stings around to enable xgettext to detect them
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/js/settings.js12
-rw-r--r--apps/files_external/templates/settings.php8
2 files changed, 9 insertions, 11 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index 0b33458bec2..55c12cc0ac9 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -34,17 +34,7 @@ var MOUNT_OPTIONS_DROPDOWN_TEMPLATE =
' </select>' +
' </div>' +
'</div>';
-
- /* TODO the current l10n extrator can't handle JS functions within handlebar
- templates therefore they are duplicated here
- t("files_external", "Enable encryption")
- t("files_external", "Enable previews")
- t("files_external", "Enable sharing")
- t("files_external", "Check for changes")
- t("files_external", "Never")
- t("files_external", "Once every direct access")
- */
-
+
/**
* Returns the selection of applicable users in the given configuration row
*
diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php
index feccd2a4e45..7edd66fe4d5 100644
--- a/apps/files_external/templates/settings.php
+++ b/apps/files_external/templates/settings.php
@@ -3,11 +3,19 @@
use \OCA\Files_External\Lib\DefinitionParameter;
use \OCA\Files_External\Service\BackendService;
+ $l->t("Enable encryption");
+ $l->t("Enable previews");
+ $l->t("Enable sharing");
+ $l->t("Check for changes");
+ $l->t("Never");
+ $l->t("Once every direct access");
+
script('files_external', 'settings');
style('files_external', 'settings');
// load custom JS
foreach ($_['backends'] as $backend) {
+ /** @var Backend $backend */
if ($backend->getCustomJs()) {
script('files_external', $backend->getCustomJs());
}