Skip to content

Commit

Permalink
update translation for 0.49.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Nriver committed Jan 18, 2022
1 parent 0abd050 commit 69bcc28
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1318,4 +1318,8 @@
'status': '',
'Protecting': '',
'Unprotecting': '',
'Edit a read-only note': '',
'Ribbon tabs': '',
"`${resp.count} backlink`
+ (resp.count === 1 ? '' : 's')": '',
}
7 changes: 7 additions & 0 deletions trilium_trans.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,12 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
]
replace_in_file(file_path, translation)

file_path = 'src/public/app/widgets/backlinks.js'
translation = [
"{{`${resp.count} backlink`\n + (resp.count === 1 ? '' : 's')}}",
]
replace_in_file(file_path, translation)

file_path = 'src/public/app/widgets/bookmark_switch.js'
translation = [
'title="{{Bookmark this note to the left side panel}}"',
Expand Down Expand Up @@ -2708,6 +2714,7 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
'description: "{{Pastes Markdown from clipboard into text note}}"',
'description: "{{Cuts the selection from the current note and creates subnote with the selected text}}"',
'description: "{{Opens the dialog to include a note}}"',
'description: "{{Edit a read-only note}}"',
'description: "{{Put focus into attribute editor}}"',
'description: "{{Create new label}}"',
'description: "{{Create new relation}}"',
Expand Down

0 comments on commit 69bcc28

Please sign in to comment.