mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
add translation for bulk action of notes
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { t } from "../../../services/i18n.js";
|
||||
import SpacedUpdate from "../../../services/spaced_update.js";
|
||||
import AbstractBulkAction from "../abstract_bulk_action.js";
|
||||
import noteAutocompleteService from "../../../services/note_autocomplete.js";
|
||||
@@ -6,12 +7,12 @@ const TPL = `
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div style="display: flex; align-items: center">
|
||||
<div style="margin-right: 10px;" class="text-nowrap">Move note</div>
|
||||
<div style="margin-right: 10px;" class="text-nowrap">${t('move_note.move_note')}</div>
|
||||
|
||||
<div style="margin-right: 10px;" class="text-nowrap">to</div>
|
||||
<div style="margin-right: 10px;" class="text-nowrap">${t('move_note.to')}</div>
|
||||
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control target-parent-note" placeholder="target parent note"/>
|
||||
<input type="text" class="form-control target-parent-note" placeholder="${t('move_note.target_parent_note')}"/>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
@@ -19,12 +20,12 @@ const TPL = `
|
||||
<div class="dropdown help-dropdown">
|
||||
<span class="bx bx-help-circle icon-action" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></span>
|
||||
<div class="dropdown-menu dropdown-menu-right p-4">
|
||||
<p>On all matched notes:</p>
|
||||
<p>${t('move_note.on_all_matched_notes')}:</p>
|
||||
|
||||
<ul>
|
||||
<li>move note to the new parent if note has only one parent (i.e. the old placement is removed and new placement into the new parent is created)</li>
|
||||
<li>clone note to the new parent if note has multiple clones/placements (it's not clear which placement should be removed)</li>
|
||||
<li>nothing will happen if note cannot be moved to the target note (i.e. this would create a tree cycle)</li>
|
||||
<li>${t('move_note.move_note_new_parent')}</li>
|
||||
<li>${t('move_note.clone_note_new_parent')}</li>
|
||||
<li>${t('move_note.nothing_will_happen')}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -35,7 +36,7 @@ const TPL = `
|
||||
|
||||
export default class MoveNoteBulkAction extends AbstractBulkAction {
|
||||
static get actionName() { return "moveNote"; }
|
||||
static get actionTitle() { return "Move note"; }
|
||||
static get actionTitle() { return t('move_note.move_note'); }
|
||||
|
||||
doRender() {
|
||||
const $action = $(TPL);
|
||||
|
||||
Reference in New Issue
Block a user