Skip to content

Commit

Permalink
Merge pull request #11620 from nextcloud/followup/11615
Browse files Browse the repository at this point in the history
Extract translated strings of compiled handlebars
  • Loading branch information
MorrisJobke committed Oct 8, 2018
2 parents 80f7add + 8932a51 commit 75f4b7b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion core/js/share/sharedialogshareelistview.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{{#each linkReshares}}
<li data-share-id="{{shareId}}" data-share-type="{{shareType}}">
<div class="avatar" data-username="{{shareInitiator}}"></div>
<span class="has-tooltip username" title="{{shareInitiator}}"> t('core', '{{shareInitiatorDisplayName}} shared via link') + '</span>
<span class="has-tooltip username" title="{{shareInitiator}}">{{shareInitiatorText}}</span>
<span class="sharingOptionsGroup">
<a href="#" class="unshare"><span class="icon-loading-small hidden"></span><span class="icon icon-delete"></span><span class="hidden-visually">{{unshareLabel}}</span></a>
</span>
Expand Down
2 changes: 1 addition & 1 deletion core/js/sharedialogshareelistview.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
// with references
list.push(_.extend({}, universal, share, {
shareInitiator: shares[index].uid_owner,
shareInitiatorDisplayName: shares[index].displayname_owner
shareInitiatorText: t('core', '{shareInitiatorDisplayName} shared via link', {shareInitiatorDisplayName: shares[index].displayname_owner})
}));
}

Expand Down
6 changes: 3 additions & 3 deletions core/js/sharetemplates.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions settings/js/authtoken.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 3 additions & 0 deletions settings/js/authtoken_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},

Expand Down
12 changes: 10 additions & 2 deletions settings/js/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 75f4b7b

Please sign in to comment.