|
@@ -1148,13 +1148,13 @@ Boards.helpers({
|
|
|
permission: this.permission,
|
|
permission: this.permission,
|
|
|
members: this.members,
|
|
members: this.members,
|
|
|
color: this.color,
|
|
color: this.color,
|
|
|
- description: TAPi18n.__('default-subtasks-board', {
|
|
|
|
|
|
|
+ description: TAPi18n && TAPi18n.i18n ? TAPi18n.__('default-subtasks-board', {
|
|
|
board: this.title,
|
|
board: this.title,
|
|
|
- }),
|
|
|
|
|
|
|
+ }) : `Default subtasks board for ${this.title}`,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
Swimlanes.insert({
|
|
Swimlanes.insert({
|
|
|
- title: TAPi18n.__('default'),
|
|
|
|
|
|
|
+ title: TAPi18n && TAPi18n.i18n ? TAPi18n.__('default') : 'Default',
|
|
|
boardId: this.subtasksDefaultBoardId,
|
|
boardId: this.subtasksDefaultBoardId,
|
|
|
});
|
|
});
|
|
|
Boards.update(this._id, {
|
|
Boards.update(this._id, {
|
|
@@ -1181,13 +1181,13 @@ Boards.helpers({
|
|
|
permission: this.permission,
|
|
permission: this.permission,
|
|
|
members: this.members,
|
|
members: this.members,
|
|
|
color: this.color,
|
|
color: this.color,
|
|
|
- description: TAPi18n.__('default-dates-board', {
|
|
|
|
|
|
|
+ description: TAPi18n && TAPi18n.i18n ? TAPi18n.__('default-dates-board', {
|
|
|
board: this.title,
|
|
board: this.title,
|
|
|
- }),
|
|
|
|
|
|
|
+ }) : `Default dates board for ${this.title}`,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
Swimlanes.insert({
|
|
Swimlanes.insert({
|
|
|
- title: TAPi18n.__('default'),
|
|
|
|
|
|
|
+ title: TAPi18n && TAPi18n.i18n ? TAPi18n.__('default') : 'Default',
|
|
|
boardId: this.dateSettingsDefaultBoardId,
|
|
boardId: this.dateSettingsDefaultBoardId,
|
|
|
});
|
|
});
|
|
|
Boards.update(this._id, {
|
|
Boards.update(this._id, {
|
|
@@ -1209,7 +1209,7 @@ Boards.helpers({
|
|
|
this.subtasksDefaultListId === undefined
|
|
this.subtasksDefaultListId === undefined
|
|
|
) {
|
|
) {
|
|
|
this.subtasksDefaultListId = Lists.insert({
|
|
this.subtasksDefaultListId = Lists.insert({
|
|
|
- title: TAPi18n.__('queue'),
|
|
|
|
|
|
|
+ title: TAPi18n && TAPi18n.i18n ? TAPi18n.__('queue') : 'Queue',
|
|
|
boardId: this._id,
|
|
boardId: this._id,
|
|
|
swimlaneId: this.getDefaultSwimline()._id, // Set default swimlane for subtasks list
|
|
swimlaneId: this.getDefaultSwimline()._id, // Set default swimlane for subtasks list
|
|
|
});
|
|
});
|
|
@@ -1228,7 +1228,7 @@ Boards.helpers({
|
|
|
this.dateSettingsDefaultListId === undefined
|
|
this.dateSettingsDefaultListId === undefined
|
|
|
) {
|
|
) {
|
|
|
this.dateSettingsDefaultListId = Lists.insert({
|
|
this.dateSettingsDefaultListId = Lists.insert({
|
|
|
- title: TAPi18n.__('queue'),
|
|
|
|
|
|
|
+ title: TAPi18n && TAPi18n.i18n ? TAPi18n.__('queue') : 'Queue',
|
|
|
boardId: this._id,
|
|
boardId: this._id,
|
|
|
swimlaneId: this.getDefaultSwimline()._id, // Set default swimlane for date settings list
|
|
swimlaneId: this.getDefaultSwimline()._id, // Set default swimlane for date settings list
|
|
|
});
|
|
});
|
|
@@ -1244,8 +1244,10 @@ Boards.helpers({
|
|
|
getDefaultSwimline() {
|
|
getDefaultSwimline() {
|
|
|
let result = ReactiveCache.getSwimlane({ boardId: this._id });
|
|
let result = ReactiveCache.getSwimlane({ boardId: this._id });
|
|
|
if (result === undefined) {
|
|
if (result === undefined) {
|
|
|
|
|
+ // Use fallback title if i18n is not available (e.g., during migration)
|
|
|
|
|
+ const title = TAPi18n && TAPi18n.i18n ? TAPi18n.__('default') : 'Default';
|
|
|
Swimlanes.insert({
|
|
Swimlanes.insert({
|
|
|
- title: TAPi18n.__('default'),
|
|
|
|
|
|
|
+ title: title,
|
|
|
boardId: this._id,
|
|
boardId: this._id,
|
|
|
});
|
|
});
|
|
|
result = ReactiveCache.getSwimlane({ boardId: this._id });
|
|
result = ReactiveCache.getSwimlane({ boardId: this._id });
|
|
@@ -2212,7 +2214,7 @@ if (Meteor.isServer) {
|
|
|
migrationVersion: 1, // Latest version - no migration needed
|
|
migrationVersion: 1, // Latest version - no migration needed
|
|
|
});
|
|
});
|
|
|
const swimlaneId = Swimlanes.insert({
|
|
const swimlaneId = Swimlanes.insert({
|
|
|
- title: TAPi18n.__('default'),
|
|
|
|
|
|
|
+ title: TAPi18n && TAPi18n.i18n ? TAPi18n.__('default') : 'Default',
|
|
|
boardId: id,
|
|
boardId: id,
|
|
|
});
|
|
});
|
|
|
JsonRoutes.sendResult(res, {
|
|
JsonRoutes.sendResult(res, {
|