Merge pull request #315 from nextcloud/fix/314/translate_rev_history

Translate the Revision History
This commit is contained in:
Andras Timar 2018-11-22 16:16:45 +01:00 коммит произвёл GitHub
Родитель 4b05dea92a 50897cc1f2
Коммит fa1cbc41fd
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -319,7 +319,8 @@ console.log(view);
var revHistoryContainer = OCA.RichDocuments.Templates.revHistoryContainer({
filename: documentsMain.fileName,
moreVersionsLabel: t('richdocuments', 'More versions…'),
closeButtonUrl: OC.imagePath('core', 'actions/close')
closeButtonUrl: OC.imagePath('core', 'actions/close'),
revisionHistoryLabel: t('richdocuments', 'Revision History')
});
$('#revViewerContainer').prepend(revHistoryContainer);

Просмотреть файл

@ -3,7 +3,9 @@
templates['revHistoryContainer'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
return "<div id=\"revPanelContainer\" class=\"loleaflet-font\">\n <div id=\"revPanelHeader\">\n <h2>Revision History</h2>\n <span>"
return "<div id=\"revPanelContainer\" class=\"loleaflet-font\">\n <div id=\"revPanelHeader\">\n <h2>"
+ alias4(((helper = (helper = helpers.revisionHistoryLabel || (depth0 != null ? depth0.revisionHistoryLabel : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"revisionHistoryLabel","hash":{},"data":data}) : helper)))
+ "</h2>\n <span>"
+ alias4(((helper = (helper = helpers.filename || (depth0 != null ? depth0.filename : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"filename","hash":{},"data":data}) : helper)))
+ "</span>\n <a class=\"closeButton\"><img src="
+ alias4(((helper = (helper = helpers.closeButtonUrl || (depth0 != null ? depth0.closeButtonUrl : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"closeButtonUrl","hash":{},"data":data}) : helper)))

Просмотреть файл

@ -1,6 +1,6 @@
<div id="revPanelContainer" class="loleaflet-font">
<div id="revPanelHeader">
<h2>Revision History</h2>
<h2>{{revisionHistoryLabel}}</h2>
<span>{{filename}}</span>
<a class="closeButton"><img src={{closeButtonUrl}} width="22px" height="22px"></a>
</div>