@@ -273,7 +274,7 @@ export default class FindWidget extends NoteContextAwareWidget {
async entitiesReloadedEvent({loadResults}) {
if (loadResults.isNoteContentReloaded(this.noteId)) {
- this.$totalFound.text("?")
- }
+ this.$totalFound.text("?")
+ }
}
}
diff --git a/src/public/app/widgets/highlights_list.js b/src/public/app/widgets/highlights_list.js
index 6c728c8b3..ef4a0c2ac 100644
--- a/src/public/app/widgets/highlights_list.js
+++ b/src/public/app/widgets/highlights_list.js
@@ -5,6 +5,7 @@
* - For example, if there is a formula in the middle of the highlighted text, the two ends of the formula will be regarded as two entries
*/
+import { t } from "../services/i18n.js";
import attributeService from "../services/attributes.js";
import RightPanelWidget from "./right_panel_widget.js";
import options from "../services/options.js";
@@ -43,14 +44,14 @@ const TPL = `
export default class HighlightsListWidget extends RightPanelWidget {
get widgetTitle() {
- return "Highlights List";
+ return t("highlights_list_2.title");
}
get widgetButtons() {
return [
new OnClickButtonWidget()
.icon("bx-cog")
- .title("Options")
+ .title(t("highlights_list_2.options"))
.titlePlacement("left")
.onClick(() => appContext.tabManager.openContextWithNote('_optionsTextNotes', { activate: true }))
.class("icon-action"),
diff --git a/src/public/translations/cn/translation.json b/src/public/translations/cn/translation.json
index 1421197ec..892ac1c39 100644
--- a/src/public/translations/cn/translation.json
+++ b/src/public/translations/cn/translation.json
@@ -1335,5 +1335,13 @@
"toggle-on-hint": "将此笔记设为模板",
"toggle-off-hint": "取消笔记模板设置"
},
- "open-help-page": "打开帮助页面"
+ "open-help-page": "打开帮助页面",
+ "find": {
+ "case_sensitive": "区分大小写",
+ "match_words": "匹配单词"
+ },
+ "highlights_list_2": {
+ "title": "高亮列表",
+ "options": "选项"
+ }
}
diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json
index 8f661f08b..9e2c4916b 100644
--- a/src/public/translations/en/translation.json
+++ b/src/public/translations/en/translation.json
@@ -602,10 +602,10 @@
"sync_status": {
"unknown": "
Sync status will be known once the next sync attempt starts.
Click to trigger sync now.
",
"connected_with_changes": "
Connected to the sync server.
There are some outstanding changes yet to be synced.
Click to trigger sync.
",
- "connected_no_changes":"
Connected to the sync server.
All changes have been already synced.
Click to trigger sync.
",
- "disconnected_with_changes":"
Establishing the connection to the sync server was unsuccessful.
There are some outstanding changes yet to be synced.
Click to trigger sync.
",
- "disconnected_no_changes":"
Establishing the connection to the sync server was unsuccessful.
All known changes have been synced.
Click to trigger sync.
",
- "in_progress":"Sync with the server is in progress."
+ "connected_no_changes": "
Connected to the sync server.
All changes have been already synced.
Click to trigger sync.
",
+ "disconnected_with_changes": "
Establishing the connection to the sync server was unsuccessful.
There are some outstanding changes yet to be synced.
Click to trigger sync.
",
+ "disconnected_no_changes": "
Establishing the connection to the sync server was unsuccessful.
All known changes have been synced.
Click to trigger sync.
",
+ "in_progress": "Sync with the server is in progress."
},
"left_pane_toggle": {
"show_panel": "Show panel",
@@ -1335,5 +1335,13 @@
"toggle-on-hint": "Make the note a template",
"toggle-off-hint": "Remove the note as a template"
},
- "open-help-page": "Open help page"
+ "open-help-page": "Open help page",
+ "find": {
+ "case_sensitive": "case sensitive",
+ "match_words": "match words"
+ },
+ "highlights_list_2": {
+ "title": "Highlights List",
+ "options": "Options"
+ }
}