Skip to content

Commit 16a7fac

Browse files
pavelsjirkadev
authored andcommitted
I18n
1 parent f71dfce commit 16a7fac

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

client/src/main/resources/k5client.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ facets.used=Pou\u017eit\u00e9 filtry
191191

192192
ctx.actions.pdftitle=Download title as pdf
193193
ctx.actions.onepagepdf=Download current page as pdf
194+
ctx.actions.pdftitle.message.1=Maximum number of pages is limited to:
195+
ctx.actions.pdftitle.message.2=. The pdf starts from current selected page.
196+
194197

195198
ctx.actions.printandpdf=Print or pdf output
196199
ctx.actions.print=Print
@@ -339,4 +342,4 @@ dctitle.none=unknown
339342
common.founded=Found
340343
common.page.singural=page
341344
common.page.plural_1=pages
342-
common.page.plural_2=pages
345+
common.page.plural_2=pages

client/src/main/resources/k5client_cs.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ ctx.actions.downloadoriginal=Stáhnout originál
8686
ctx.actions.edit=Editace ...
8787
ctx.actions.pdftitle=Stáhnout více stran jako pdf
8888
ctx.actions.onepagepdf=Stáhnout aktuální stranu jako pdf
89+
ctx.actions.pdftitle.message.1=Maximání poočet stránek limitován na:
90+
ctx.actions.pdftitle.message.2=. Tiskne se od aktuálně vybrané.
91+
8992

9093
ctx.actions.printandpdf=Tiskovy nebo PDF vystup
9194
ctx.actions.printonepage=Tisk aktuální strany

client/src/main/webapp/js/item/downloadItem.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ DownloadItem.prototype.open = function() {
130130
var selAction = K5.gui.selected.download.selectAction();
131131
if (selAction && selAction.object.message) {
132132
var tMess = selAction.object.message();
133-
$("#download_action_message").text(tMess);
133+
$("#download_action_message").html(tMess);
134134
} else {
135-
$("#download_action_message").text("");
135+
$("#download_action_message").html("");
136136
}
137137

138138
});
@@ -192,4 +192,4 @@ DownloadItem.prototype.open = function() {
192192

193193
DownloadItem.prototype.cleanDialog = function() {
194194
$("#download_options").empty();
195-
}
195+
}

client/src/main/webapp/js/menu/menu.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,9 @@ PDFSiblingsTitle.prototype = {
528528
'message' :function() {
529529
if (this.ctx && this.ctx.conf) {
530530
if (this.ctx.conf.pdfMaxRange !== "unlimited") {
531-
return "Maximalni pocet stranek limitovan na:"+this.ctx.conf.pdfMaxRange+". Tiskne se od aktualne vybrane.";
531+
var f = K5.i18n.ctx.dictionary['ctx.actions.pdftitle.message.1'];
532+
var s = K5.i18n.ctx.dictionary['ctx.actions.pdftitle.message.2'];
533+
return f+this.ctx.conf.pdfMaxRange+s;
532534
}
533535
} else return null;
534536
},
@@ -565,7 +567,9 @@ PDFTitle.prototype = {
565567
this.ctx.conf
566568
if (this.ctx && this.ctx.conf) {
567569
if (this.ctx.conf.pdfMaxRange !== "unlimited") {
568-
return "Maximalni pocet stranek :"+this.ctx.conf.pdfMaxRange;
570+
var f = K5.i18n.ctx.dictionary['ctx.actions.pdftitle.message.1'];
571+
var s = K5.i18n.ctx.dictionary['ctx.actions.pdftitle.message.2'];
572+
return f+this.ctx.conf.pdfMaxRange;
569573
}
570574
} else return null;
571575
},

0 commit comments

Comments
 (0)