From de7b7e3d8fa25e71c662b07f94ea251522a5cdb0 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Thu, 20 Mar 2025 17:41:30 +0200 Subject: [PATCH] client/options/text notes/table of contents: specify the measurement unit inside of the input field --- .../type_widgets/options/text_notes/table_of_contents.ts | 5 ++++- src/public/translations/en/translation.json | 1 + src/public/translations/ro/translation.json | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/public/app/widgets/type_widgets/options/text_notes/table_of_contents.ts b/src/public/app/widgets/type_widgets/options/text_notes/table_of_contents.ts index 87ebae17f..c29472206 100644 --- a/src/public/app/widgets/type_widgets/options/text_notes/table_of_contents.ts +++ b/src/public/app/widgets/type_widgets/options/text_notes/table_of_contents.ts @@ -9,7 +9,10 @@ const TPL = ` ${t("table_of_contents.description")}
- +
+ + ${t("table_of_contents.unit")} +

${t("table_of_contents.disable_info")}

diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json index 0b6b9179c..72e4eba89 100644 --- a/src/public/translations/en/translation.json +++ b/src/public/translations/en/translation.json @@ -1224,6 +1224,7 @@ "table_of_contents": { "title": "Table of Contents", "description": "Table of contents will appear in text notes when the note has more than a defined number of headings. You can customize this number:", + "unit": "headings", "disable_info": "You can also use this option to effectively disable TOC by setting a very high number.", "shortcut_info": "You can configure a keyboard shortcut for quickly toggling the right pane (including TOC) in the Options -> Shortcuts (name 'toggleRightPane')." }, diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.json index 32eb97ee1..0638b9080 100644 --- a/src/public/translations/ro/translation.json +++ b/src/public/translations/ro/translation.json @@ -1220,6 +1220,7 @@ }, "table_of_contents": { "description": "Tabela de conținut va apărea în notițele de tip text atunci când notița are un număr de titluri mai mare decât cel definit. Acest număr se poate personaliza:", + "unit": "titluri", "disable_info": "De asemenea se poate dezactiva tabela de conținut setând o valoare foarte mare.", "shortcut_info": "Se poate configura și o scurtatură pentru a comuta rapid vizibilitatea panoului din dreapta (inclusiv tabela de conținut) în Opțiuni -> Scurtături (denumirea „toggleRightPane”).", "title": "Tabelă de conținut"