Skip to content

Commit

Permalink
fix(i18n): add missing i18n labels and references
Browse files Browse the repository at this point in the history
  • Loading branch information
tuurma committed Oct 30, 2020
1 parent 5564ee1 commit 40c7788
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions i18n/common/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@
"view-type": "Page View",
"add-panel": "Add View",
"caveat-heading": "Caveat",
"settings": "Settings",
"caveat": "Experiment with different page templates and ODDs just changing these options here. Please note that not every combination of settings makes sense for every document. For example, a map cannot be produced without coordinates explicitly encoded and processed, and page view assumes page breaks have been marked up. If you see 'the server did not return any content' message, it is usually a sign of such misalignment between encoded data, ODD and page template."
},
"browse": {
"description": "Use this app to experiment and try out various ODDs containing processing model instructions. Upload your own files and create a custom ODD.",
"login": "to upload files or see administrative functions (default user: 'tei-demo', password: 'demo').",
"sort": "Sort by",
"filter": "Filter by",
"filterPlaceholder": "Filter",
"items": "Found {{count}} item",
"items_plural": "Found {{count}} items",
"title": "Title",
Expand Down
7 changes: 6 additions & 1 deletion src/pb-browse-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ export class PbBrowseDocs extends PbLoad {
filterByLabel: {
type: String
},
filterPlaceholderLabel: {
type: String
},
collection: {
type: String
},
Expand Down Expand Up @@ -104,6 +107,8 @@ export class PbBrowseDocs extends PbLoad {
}
];
this.filterByLabel = 'browse.filter';
this.filterPlaceholderLabel = 'browse.filterPlaceholder';

this.filterBy = 'title';
this._allowModification = false;
this._suggestions = [];
Expand Down Expand Up @@ -204,7 +209,7 @@ export class PbBrowseDocs extends PbLoad {
)}
</paper-listbox>
</paper-dropdown-menu>
<paper-input id="filterString" type="search" name="filter" label="Filter" value="${this.filter}"
<paper-input id="filterString" type="search" name="filter" label="${translate(this.filterPlaceholderLabel)}" value="${this.filter}"
@keyup="${this._handleEnter}">
<iron-icon icon="search" @click="${this._filter}" slot="prefix"></iron-icon>
</paper-input>
Expand Down

0 comments on commit 40c7788

Please sign in to comment.