diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-10-08 10:24:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-08 10:24:31 +0200 |
commit | 75f4b7b1918f56afe18e1ec77d4e1f41ce776383 (patch) | |
tree | cab40eed6381e6d3667904a87546cdebcb4e6115 /settings | |
parent | 80f7add485b4e55d6d3b19cee12231e13bd4ff62 (diff) | |
parent | 8932a51b91f339937be860f773bb8c1fc4143907 (diff) | |
download | nextcloud-server-75f4b7b1918f56afe18e1ec77d4e1f41ce776383.tar.gz nextcloud-server-75f4b7b1918f56afe18e1ec77d4e1f41ce776383.zip |
Merge pull request #11620 from nextcloud/followup/11615
Extract translated strings of compiled handlebars
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/authtoken.handlebars | 4 | ||||
-rw-r--r-- | settings/js/authtoken_view.js | 3 | ||||
-rw-r--r-- | settings/js/templates.js | 12 |
3 files changed, 15 insertions, 4 deletions
diff --git a/settings/js/authtoken.handlebars b/settings/js/authtoken.handlebars index ab3405c8899..7c222d863fe 100644 --- a/settings/js/authtoken.handlebars +++ b/settings/js/authtoken.handlebars @@ -13,12 +13,12 @@ {{#if canScope}} <li><span class="menuitem"> <input class="filesystem checkbox" type="checkbox" id="{{id}}_filesystem" {{#if scope.filesystem}}checked{{/if}}/> - <label for="{{id}}_filesystem">' + t('settings', 'Allow filesystem access') </label><br/> + <label for="{{id}}_filesystem">{{allowFSAccess}}</label><br/> </span></li> {{/if}} {{#if canDelete}} <li> - <a class="icon icon-delete has-tooltip" title="' + t('settings', 'Disconnect') ">' + t('settings', 'Revoke') +'</a> + <a class="icon icon-delete has-tooltip" title="{{disconnectText}}">{{revokeText}}</a> </li> {{/if}} </div> diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js index 0ab5ebe2b63..76c6c8c0f66 100644 --- a/settings/js/authtoken_view.js +++ b/settings/js/authtoken_view.js @@ -31,6 +31,9 @@ _template: undefined, template: function (data) { + data.disconnectText = t('settings', 'Disconnect'); + data.revokeText = t('settings', 'Revoke'); + data.allowFSAccess = t('settings', 'Allow filesystem access'); return OC.Settings.Templates['authtoken'](data); }, diff --git a/settings/js/templates.js b/settings/js/templates.js index 649f2e95960..9d7457cd652 100644 --- a/settings/js/templates.js +++ b/settings/js/templates.js @@ -11,11 +11,19 @@ templates['authtoken'] = template({"1":function(container,depth0,helpers,partial + ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.scope : depth0)) != null ? stack1.filesystem : stack1),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") + "/>\n <label for=\"" + alias4(((helper = (helper = helpers.id || (depth0 != null ? depth0.id : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"id","hash":{},"data":data}) : helper))) - + "_filesystem\">' + t('settings', 'Allow filesystem access') </label><br/>\n </span></li>\n"; + + "_filesystem\">" + + alias4(((helper = (helper = helpers.allowFSAccess || (depth0 != null ? depth0.allowFSAccess : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"allowFSAccess","hash":{},"data":data}) : helper))) + + "</label><br/>\n </span></li>\n"; },"4":function(container,depth0,helpers,partials,data) { return "checked"; },"6":function(container,depth0,helpers,partials,data) { - return " <li>\n <a class=\"icon icon-delete has-tooltip\" title=\"' + t('settings', 'Disconnect') \">' + t('settings', 'Revoke') +'</a>\n </li>\n"; + var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression; + + return " <li>\n <a class=\"icon icon-delete has-tooltip\" title=\"" + + alias4(((helper = (helper = helpers.disconnectText || (depth0 != null ? depth0.disconnectText : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"disconnectText","hash":{},"data":data}) : helper))) + + "\">" + + alias4(((helper = (helper = helpers.revokeText || (depth0 != null ? depth0.revokeText : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"revokeText","hash":{},"data":data}) : helper))) + + "</a>\n </li>\n"; },"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression; |