Added translations to questions about are you sure.

Thanks to xet7 !

Related https://github.com/wekan/wekan/pull/5745
pull/5750/head
Lauri Ojansivu 4 weeks ago
parent bc2eab6f9d
commit 4d145ab4ad
  1. 9
      client/components/boards/boardsList.js
  2. 2
      imports/i18n/data/en.i18n.json

@ -239,7 +239,7 @@ BlazeComponent.extendComponent({
evt.preventDefault();
},
'click .js-clone-board'(evt) {
if (confirm('Are you sure you want to clone this board?')) {
if (confirm(TAPi18n.__('duplicate-board-confirm')) {
let title =
getSlug(ReactiveCache.getBoard(this.currentData()._id).title) ||
'cloned-board';
@ -268,11 +268,10 @@ BlazeComponent.extendComponent({
}
},
'click .js-archive-board'(evt) {
if (confirm('Are you sure you want to archive this board?'))
{
if (confirm(TAPi18n.__('archive-board-confirm')) {
const boardId = this.currentData()._id;
Meteor.call('archiveBoard', boardId);
evt.preventDefault();
Meteor.call('archiveBoard', boardId);
evt.preventDefault();
}
},
'click .js-accept-invite'() {

@ -125,6 +125,7 @@
"archive": "Move to Archive",
"archive-all": "Move All to Archive",
"archive-board": "Move Board to Archive",
"archive-board-confirm": "Are you sure you want to archive this board?",
"archive-card": "Move Card to Archive",
"archive-list": "Move List to Archive",
"archive-swimlane": "Move Swimlane to Archive",
@ -896,6 +897,7 @@
"oidc-button-text": "Customize the OIDC button text",
"default-authentication-method": "Default Authentication Method",
"duplicate-board": "Duplicate Board",
"duplicate-board-confirm": "Are you sure you want to duplicate this board?",
"org-number": "The number of organizations is: ",
"team-number": "The number of teams is: ",
"people-number": "The number of people is: ",

Loading…
Cancel
Save