i18n: Translate bulk action categories

This commit is contained in:
Elian Doran 2024-11-19 23:38:49 +02:00
parent da95e15b01
commit 779218849a
No known key found for this signature in database
3 changed files with 17 additions and 8 deletions

View File

@ -13,22 +13,23 @@ import ExecuteScriptBulkAction from "../widgets/bulk_actions/execute_script.js";
import AddLabelBulkAction from "../widgets/bulk_actions/label/add_label.js"; import AddLabelBulkAction from "../widgets/bulk_actions/label/add_label.js";
import AddRelationBulkAction from "../widgets/bulk_actions/relation/add_relation.js"; import AddRelationBulkAction from "../widgets/bulk_actions/relation/add_relation.js";
import RenameNoteBulkAction from "../widgets/bulk_actions/note/rename_note.js"; import RenameNoteBulkAction from "../widgets/bulk_actions/note/rename_note.js";
import { t } from "./i18n.js";
const ACTION_GROUPS = [ const ACTION_GROUPS = [
{ {
title: 'Labels', title: t("bulk_actions.labels"),
actions: [AddLabelBulkAction, UpdateLabelValueBulkAction, RenameLabelBulkAction, DeleteLabelBulkAction] actions: [AddLabelBulkAction, UpdateLabelValueBulkAction, RenameLabelBulkAction, DeleteLabelBulkAction]
}, },
{ {
title: 'Relations', title: t("bulk_actions.relations"),
actions: [AddRelationBulkAction, UpdateRelationTargetBulkAction, RenameRelationBulkAction, DeleteRelationBulkAction] actions: [AddRelationBulkAction, UpdateRelationTargetBulkAction, RenameRelationBulkAction, DeleteRelationBulkAction]
}, },
{ {
title: 'Notes', title: t("bulk_actions.notes"),
actions: [RenameNoteBulkAction, MoveNoteBulkAction, DeleteNoteBulkAction, DeleteRevisionsBulkAction], actions: [RenameNoteBulkAction, MoveNoteBulkAction, DeleteNoteBulkAction, DeleteRevisionsBulkAction],
}, },
{ {
title: 'Other', title: t("bulk_actions.other"),
actions: [ExecuteScriptBulkAction] actions: [ExecuteScriptBulkAction]
} }
]; ];

View File

@ -51,7 +51,11 @@
"chosen_actions": "Chosen actions", "chosen_actions": "Chosen actions",
"execute_bulk_actions": "Execute bulk actions", "execute_bulk_actions": "Execute bulk actions",
"bulk_actions_executed": "Bulk actions have been executed successfully.", "bulk_actions_executed": "Bulk actions have been executed successfully.",
"none_yet": "None yet... add an action by clicking one of the available ones above." "none_yet": "None yet... add an action by clicking one of the available ones above.",
"labels": "Labels",
"relations": "Relations",
"notes": "Notes",
"other": "Other"
}, },
"clone_to": { "clone_to": {
"clone_notes_to": "Clone notes to...", "clone_notes_to": "Clone notes to...",

View File

@ -299,7 +299,11 @@
"close": "Închide", "close": "Închide",
"execute_bulk_actions": "Execută acțiunile în masă", "execute_bulk_actions": "Execută acțiunile în masă",
"include_descendants": "Include descendenții notiței selectate", "include_descendants": "Include descendenții notiței selectate",
"none_yet": "Nicio acțiune... adaugați una printr-un click pe cele disponibile mai jos." "none_yet": "Nicio acțiune... adaugați una printr-un click pe cele disponibile mai jos.",
"labels": "Etichete",
"notes": "Notițe",
"other": "Altele",
"relations": "Relații"
}, },
"calendar": { "calendar": {
"april": "Aprilie", "april": "Aprilie",