| 1 | package Daje::Plugin::Kanban::Languages; | ||
| 2 | use Mojo::Base -base, -signatures; | ||
| 3 | use v5.42; | ||
| 4 | |||
| 5 | # NAME | ||
| 6 | # ==== | ||
| 7 | # | ||
| 8 | # Daje::Plugin::Kanban::Languages - Model class | ||
| 9 | # | ||
| 10 | # SYNOPSIS | ||
| 11 | # ======== | ||
| 12 | # | ||
| 13 | # | ||
| 14 | # | ||
| 15 | # | ||
| 16 | # DESCRIPTION | ||
| 17 | # =========== | ||
| 18 | # | ||
| 19 | # Daje::Plugin::Kanban::Languages is the standard routes | ||
| 20 | # | ||
| 21 | # METHODS | ||
| 22 | # ======= | ||
| 23 | # | ||
| 24 | # | ||
| 25 | # LICENSE | ||
| 26 | # ======= | ||
| 27 | # | ||
| 28 | # Copyright (C) janeskil1525. | ||
| 29 | # | ||
| 30 | # This library is free software; you can redistribute it and/or modify | ||
| 31 | # it under the same terms as Perl itself. | ||
| 32 | # | ||
| 33 | # AUTHOR | ||
| 34 | # ====== | ||
| 35 | # | ||
| 36 | # janeskil1525 E<lt>janeskil1525@gmail.com | ||
| 37 | # | ||
| 38 | |||
| 39 | # This file is generated automatically by Daje Tools 2026-03-28 17:58:35. | ||
| 40 | # It will be generated by Daje Tools again. | ||
| 41 | # <!-- Autogenerated file 2026-03-28 17:58:35 --> | ||
| 42 | |||
| 43 | use Daje::Helper::Languages::InsertKeys; | ||
| 44 | |||
| 45 | has 'db'; | ||
| 46 | |||
| 47 | sub language($self) { | ||
| 48 | |||
| 49 | try { | ||
| 50 | my $tx = $self->db->begin; | ||
| 51 | my @keys; | ||
| 52 | push @keys, { | ||
| 53 | plugin => 'kanban', | ||
| 54 | key => 'list', | ||
| 55 | field => 'table', | ||
| 56 | type => 'Label', | ||
| 57 | translation => 'List', | ||
| 58 | comment => 'Kanban column', | ||
| 59 | }; | ||
| 60 | push @keys, { | ||
| 61 | plugin => 'kanban', | ||
| 62 | key => 'list', | ||
| 63 | field => 'planboard', | ||
| 64 | type => 'Label', | ||
| 65 | translation => 'Planboard', | ||
| 66 | comment => 'Planboard' | ||
| 67 | }; | ||
| 68 | push @keys, { | ||
| 69 | plugin => 'kanban', | ||
| 70 | key => 'list', | ||
| 71 | field => 'planboard', | ||
| 72 | type => 'Tool tips', | ||
| 73 | translation => 'Planboard', | ||
| 74 | comment => 'Planboard' | ||
| 75 | }; | ||
| 76 | |||
| 77 | push @keys, { | ||
| 78 | plugin => 'kanban', | ||
| 79 | key => 'list', | ||
| 80 | field => 'title', | ||
| 81 | type => 'Label', | ||
| 82 | translation => 'Title', | ||
| 83 | comment => 'Title' | ||
| 84 | }; | ||
| 85 | push @keys, { | ||
| 86 | plugin => 'kanban', | ||
| 87 | key => 'list', | ||
| 88 | field => 'title', | ||
| 89 | type => 'Tool tips', | ||
| 90 | translation => 'Title', | ||
| 91 | comment => 'Title' | ||
| 92 | }; | ||
| 93 | |||
| 94 | push @keys, { | ||
| 95 | plugin => 'kanban', | ||
| 96 | key => 'list', | ||
| 97 | field => 'active', | ||
| 98 | type => 'Label', | ||
| 99 | translation => 'Active', | ||
| 100 | comment => 'Active' | ||
| 101 | }; | ||
| 102 | push @keys, { | ||
| 103 | plugin => 'kanban', | ||
| 104 | key => 'list', | ||
| 105 | field => 'active', | ||
| 106 | type => 'Tool tips', | ||
| 107 | translation => 'Active', | ||
| 108 | comment => 'Active' | ||
| 109 | }; | ||
| 110 | |||
| 111 | push @keys, { | ||
| 112 | plugin => 'kanban', | ||
| 113 | key => 'list', | ||
| 114 | field => 'listid', | ||
| 115 | type => 'Label', | ||
| 116 | translation => 'ListId', | ||
| 117 | comment => 'ListId' | ||
| 118 | }; | ||
| 119 | push @keys, { | ||
| 120 | plugin => 'kanban', | ||
| 121 | key => 'list', | ||
| 122 | field => 'listid', | ||
| 123 | type => 'Tool tips', | ||
| 124 | translation => 'ListId', | ||
| 125 | comment => 'ListId' | ||
| 126 | }; | ||
| 127 | |||
| 128 | push @keys, { | ||
| 129 | plugin => 'kanban', | ||
| 130 | key => 'list', | ||
| 131 | field => 'sort_order', | ||
| 132 | type => 'Label', | ||
| 133 | translation => 'Sort Order', | ||
| 134 | comment => 'Sort Order' | ||
| 135 | }; | ||
| 136 | push @keys, { | ||
| 137 | plugin => 'kanban', | ||
| 138 | key => 'list', | ||
| 139 | field => 'sort_order', | ||
| 140 | type => 'Tool tips', | ||
| 141 | translation => 'Sort Order', | ||
| 142 | comment => 'Sort Order' | ||
| 143 | }; | ||
| 144 | |||
| 145 | push @keys, { | ||
| 146 | plugin => 'kanban', | ||
| 147 | key => 'planboard', | ||
| 148 | field => 'table', | ||
| 149 | type => 'Label', | ||
| 150 | translation => 'Planboard', | ||
| 151 | comment => 'Planboard (data)', | ||
| 152 | }; | ||
| 153 | push @keys, { | ||
| 154 | plugin => 'kanban', | ||
| 155 | key => 'planboard', | ||
| 156 | field => 'workflow', | ||
| 157 | type => 'Label', | ||
| 158 | translation => 'Workflow', | ||
| 159 | comment => 'Workflow' | ||
| 160 | }; | ||
| 161 | push @keys, { | ||
| 162 | plugin => 'kanban', | ||
| 163 | key => 'planboard', | ||
| 164 | field => 'workflow', | ||
| 165 | type => 'Tool tips', | ||
| 166 | translation => 'Workflow', | ||
| 167 | comment => 'Workflow' | ||
| 168 | }; | ||
| 169 | |||
| 170 | push @keys, { | ||
| 171 | plugin => 'kanban', | ||
| 172 | key => 'planboard', | ||
| 173 | field => 'comment', | ||
| 174 | type => 'Label', | ||
| 175 | translation => 'Comment', | ||
| 176 | comment => 'Comment' | ||
| 177 | }; | ||
| 178 | push @keys, { | ||
| 179 | plugin => 'kanban', | ||
| 180 | key => 'planboard', | ||
| 181 | field => 'comment', | ||
| 182 | type => 'Tool tips', | ||
| 183 | translation => 'Comment', | ||
| 184 | comment => 'Comment' | ||
| 185 | }; | ||
| 186 | |||
| 187 | push @keys, { | ||
| 188 | plugin => 'kanban', | ||
| 189 | key => 'planboard', | ||
| 190 | field => 'name', | ||
| 191 | type => 'Label', | ||
| 192 | translation => 'Name', | ||
| 193 | comment => 'Planboard name' | ||
| 194 | }; | ||
| 195 | push @keys, { | ||
| 196 | plugin => 'kanban', | ||
| 197 | key => 'planboard', | ||
| 198 | field => 'name', | ||
| 199 | type => 'Tool tips', | ||
| 200 | translation => 'Planboard name', | ||
| 201 | comment => 'Planboard name' | ||
| 202 | }; | ||
| 203 | |||
| 204 | push @keys, { | ||
| 205 | plugin => 'kanban', | ||
| 206 | key => 'planboard', | ||
| 207 | field => 'companies', | ||
| 208 | type => 'Label', | ||
| 209 | translation => 'Companies', | ||
| 210 | comment => 'Companies' | ||
| 211 | }; | ||
| 212 | push @keys, { | ||
| 213 | plugin => 'kanban', | ||
| 214 | key => 'planboard', | ||
| 215 | field => 'companies', | ||
| 216 | type => 'Tool tips', | ||
| 217 | translation => 'Companies', | ||
| 218 | comment => 'Companies' | ||
| 219 | }; | ||
| 220 | |||
| 221 | push @keys, { | ||
| 222 | plugin => 'kanban', | ||
| 223 | key => 'planboard', | ||
| 224 | field => 'users', | ||
| 225 | type => 'Label', | ||
| 226 | translation => 'User', | ||
| 227 | comment => 'User' | ||
| 228 | }; | ||
| 229 | push @keys, { | ||
| 230 | plugin => 'kanban', | ||
| 231 | key => 'planboard', | ||
| 232 | field => 'users', | ||
| 233 | type => 'Tool tips', | ||
| 234 | translation => 'User', | ||
| 235 | comment => 'User' | ||
| 236 | }; | ||
| 237 | |||
| 238 | push @keys, { | ||
| 239 | plugin => 'kanban', | ||
| 240 | key => 'planboard', | ||
| 241 | field => 'active', | ||
| 242 | type => 'Label', | ||
| 243 | translation => 'Active', | ||
| 244 | comment => 'Active' | ||
| 245 | }; | ||
| 246 | push @keys, { | ||
| 247 | plugin => 'kanban', | ||
| 248 | key => 'planboard', | ||
| 249 | field => 'active', | ||
| 250 | type => 'Tool tips', | ||
| 251 | translation => 'Active', | ||
| 252 | comment => 'Active' | ||
| 253 | }; | ||
| 254 | |||
| 255 | push @keys, { | ||
| 256 | plugin => 'kanban', | ||
| 257 | key => 'planboard', | ||
| 258 | field => 'duedate', | ||
| 259 | type => 'Label', | ||
| 260 | translation => 'Due date', | ||
| 261 | comment => 'Due date' | ||
| 262 | }; | ||
| 263 | push @keys, { | ||
| 264 | plugin => 'kanban', | ||
| 265 | key => 'planboard', | ||
| 266 | field => 'duedate', | ||
| 267 | type => 'Tool tips', | ||
| 268 | translation => 'Due date', | ||
| 269 | comment => 'Due date' | ||
| 270 | }; | ||
| 271 | |||
| 272 | push @keys, { | ||
| 273 | plugin => 'kanban', | ||
| 274 | key => 'cards', | ||
| 275 | field => 'table', | ||
| 276 | type => 'Label', | ||
| 277 | translation => 'Planboard Cards', | ||
| 278 | comment => 'Planboard cards', | ||
| 279 | }; | ||
| 280 | push @keys, { | ||
| 281 | plugin => 'kanban', | ||
| 282 | key => 'cards', | ||
| 283 | field => 'title', | ||
| 284 | type => 'Label', | ||
| 285 | translation => 'Title', | ||
| 286 | comment => 'Title' | ||
| 287 | }; | ||
| 288 | push @keys, { | ||
| 289 | plugin => 'kanban', | ||
| 290 | key => 'cards', | ||
| 291 | field => 'title', | ||
| 292 | type => 'Tool tips', | ||
| 293 | translation => 'Title', | ||
| 294 | comment => 'Title' | ||
| 295 | }; | ||
| 296 | |||
| 297 | push @keys, { | ||
| 298 | plugin => 'kanban', | ||
| 299 | key => 'cards', | ||
| 300 | field => 'description', | ||
| 301 | type => 'Label', | ||
| 302 | translation => 'Description', | ||
| 303 | comment => 'Description' | ||
| 304 | }; | ||
| 305 | push @keys, { | ||
| 306 | plugin => 'kanban', | ||
| 307 | key => 'cards', | ||
| 308 | field => 'description', | ||
| 309 | type => 'Tool tips', | ||
| 310 | translation => 'Description', | ||
| 311 | comment => 'Description' | ||
| 312 | }; | ||
| 313 | |||
| 314 | push @keys, { | ||
| 315 | plugin => 'kanban', | ||
| 316 | key => 'cards', | ||
| 317 | field => 'startdate', | ||
| 318 | type => 'Label', | ||
| 319 | translation => 'Start date', | ||
| 320 | comment => 'Start date' | ||
| 321 | }; | ||
| 322 | push @keys, { | ||
| 323 | plugin => 'kanban', | ||
| 324 | key => 'cards', | ||
| 325 | field => 'startdate', | ||
| 326 | type => 'Tool tips', | ||
| 327 | translation => 'Start date', | ||
| 328 | comment => 'Start date' | ||
| 329 | }; | ||
| 330 | |||
| 331 | push @keys, { | ||
| 332 | plugin => 'kanban', | ||
| 333 | key => 'cards', | ||
| 334 | field => 'duedate', | ||
| 335 | type => 'Label', | ||
| 336 | translation => 'Due date', | ||
| 337 | comment => 'Due date' | ||
| 338 | }; | ||
| 339 | push @keys, { | ||
| 340 | plugin => 'kanban', | ||
| 341 | key => 'cards', | ||
| 342 | field => 'duedate', | ||
| 343 | type => 'Tool tips', | ||
| 344 | translation => 'Due date', | ||
| 345 | comment => 'Due date' | ||
| 346 | }; | ||
| 347 | |||
| 348 | push @keys, { | ||
| 349 | plugin => 'kanban', | ||
| 350 | key => 'cards', | ||
| 351 | field => 'completed', | ||
| 352 | type => 'Label', | ||
| 353 | translation => 'Completed', | ||
| 354 | comment => 'Completed' | ||
| 355 | }; | ||
| 356 | push @keys, { | ||
| 357 | plugin => 'kanban', | ||
| 358 | key => 'cards', | ||
| 359 | field => 'completed', | ||
| 360 | type => 'Tool tips', | ||
| 361 | translation => 'Completed', | ||
| 362 | comment => 'Completed' | ||
| 363 | }; | ||
| 364 | |||
| 365 | push @keys, { | ||
| 366 | plugin => 'kanban', | ||
| 367 | key => 'cards', | ||
| 368 | field => 'progress', | ||
| 369 | type => 'Label', | ||
| 370 | translation => 'Progress', | ||
| 371 | comment => 'Progress' | ||
| 372 | }; | ||
| 373 | push @keys, { | ||
| 374 | plugin => 'kanban', | ||
| 375 | key => 'cards', | ||
| 376 | field => 'progress', | ||
| 377 | type => 'Tool tips', | ||
| 378 | translation => 'Progress', | ||
| 379 | comment => 'Progress' | ||
| 380 | }; | ||
| 381 | |||
| 382 | push @keys, { | ||
| 383 | plugin => 'kanban', | ||
| 384 | key => 'cards', | ||
| 385 | field => 'priority', | ||
| 386 | type => 'Label', | ||
| 387 | translation => 'Priority', | ||
| 388 | comment => 'Priority' | ||
| 389 | }; | ||
| 390 | push @keys, { | ||
| 391 | plugin => 'kanban', | ||
| 392 | key => 'cards', | ||
| 393 | field => 'priority', | ||
| 394 | type => 'Tool tips', | ||
| 395 | translation => 'Priority', | ||
| 396 | comment => 'Priority' | ||
| 397 | }; | ||
| 398 | |||
| 399 | push @keys, { | ||
| 400 | plugin => 'kanban', | ||
| 401 | key => 'cards', | ||
| 402 | field => 'list', | ||
| 403 | type => 'Label', | ||
| 404 | translation => 'List', | ||
| 405 | comment => 'List' | ||
| 406 | }; | ||
| 407 | push @keys, { | ||
| 408 | plugin => 'kanban', | ||
| 409 | key => 'cards', | ||
| 410 | field => 'list', | ||
| 411 | type => 'Tool tips', | ||
| 412 | translation => 'List', | ||
| 413 | comment => 'List' | ||
| 414 | }; | ||
| 415 | |||
| 416 | push @keys, { | ||
| 417 | plugin => 'kanban', | ||
| 418 | key => 'cards', | ||
| 419 | field => 'id', | ||
| 420 | type => 'Label', | ||
| 421 | translation => 'Card id', | ||
| 422 | comment => 'Card id' | ||
| 423 | }; | ||
| 424 | push @keys, { | ||
| 425 | plugin => 'kanban', | ||
| 426 | key => 'cards', | ||
| 427 | field => 'id', | ||
| 428 | type => 'Tool tips', | ||
| 429 | translation => 'Card id', | ||
| 430 | comment => 'Card id' | ||
| 431 | }; | ||
| 432 | |||
| 433 | push @keys, { | ||
| 434 | plugin => 'kanban', | ||
| 435 | key => 'cards', | ||
| 436 | field => 'sort_order', | ||
| 437 | type => 'Label', | ||
| 438 | translation => 'Sort Order', | ||
| 439 | comment => 'Sort Order' | ||
| 440 | }; | ||
| 441 | push @keys, { | ||
| 442 | plugin => 'kanban', | ||
| 443 | key => 'cards', | ||
| 444 | field => 'sort_order', | ||
| 445 | type => 'Tool tips', | ||
| 446 | translation => 'Sort Order', | ||
| 447 | comment => 'Sort Order' | ||
| 448 | }; | ||
| 449 | |||
| 450 | push @keys, { | ||
| 451 | plugin => 'kanban', | ||
| 452 | key => 'assignees', | ||
| 453 | field => 'table', | ||
| 454 | type => 'Label', | ||
| 455 | translation => 'Assignees', | ||
| 456 | comment => 'Assignees', | ||
| 457 | }; | ||
| 458 | push @keys, { | ||
| 459 | plugin => 'kanban', | ||
| 460 | key => 'assignees', | ||
| 461 | field => 'cards', | ||
| 462 | type => 'Label', | ||
| 463 | translation => 'Cards', | ||
| 464 | comment => 'Cards' | ||
| 465 | }; | ||
| 466 | push @keys, { | ||
| 467 | plugin => 'kanban', | ||
| 468 | key => 'assignees', | ||
| 469 | field => 'cards', | ||
| 470 | type => 'Tool tips', | ||
| 471 | translation => 'Cards', | ||
| 472 | comment => 'Cards' | ||
| 473 | }; | ||
| 474 | |||
| 475 | push @keys, { | ||
| 476 | plugin => 'kanban', | ||
| 477 | key => 'assignees', | ||
| 478 | field => 'users', | ||
| 479 | type => 'Label', | ||
| 480 | translation => 'Users', | ||
| 481 | comment => 'Users' | ||
| 482 | }; | ||
| 483 | push @keys, { | ||
| 484 | plugin => 'kanban', | ||
| 485 | key => 'assignees', | ||
| 486 | field => 'users', | ||
| 487 | type => 'Tool tips', | ||
| 488 | translation => 'Users', | ||
| 489 | comment => 'Users' | ||
| 490 | }; | ||
| 491 | |||
| 492 | push @keys, { | ||
| 493 | plugin => 'kanban', | ||
| 494 | key => 'assignees', | ||
| 495 | field => 'comment', | ||
| 496 | type => 'Label', | ||
| 497 | translation => 'Comment', | ||
| 498 | comment => 'Comment' | ||
| 499 | }; | ||
| 500 | push @keys, { | ||
| 501 | plugin => 'kanban', | ||
| 502 | key => 'assignees', | ||
| 503 | field => 'comment', | ||
| 504 | type => 'Tool tips', | ||
| 505 | translation => 'Comment', | ||
| 506 | comment => 'Comment' | ||
| 507 | }; | ||
| 508 | |||
| 509 | push @keys, { | ||
| 510 | plugin => 'kanban', | ||
| 511 | key => 'assignees', | ||
| 512 | field => 'name', | ||
| 513 | type => 'Label', | ||
| 514 | translation => 'Name', | ||
| 515 | comment => 'Name' | ||
| 516 | }; | ||
| 517 | push @keys, { | ||
| 518 | plugin => 'kanban', | ||
| 519 | key => 'assignees', | ||
| 520 | field => 'name', | ||
| 521 | type => 'Tool tips', | ||
| 522 | translation => 'Name', | ||
| 523 | comment => 'Name' | ||
| 524 | }; | ||
| 525 | |||
| 526 | push @keys, { | ||
| 527 | plugin => 'kanban', | ||
| 528 | key => 'assignees', | ||
| 529 | field => 'image', | ||
| 530 | type => 'Label', | ||
| 531 | translation => 'Image', | ||
| 532 | comment => 'Image' | ||
| 533 | }; | ||
| 534 | push @keys, { | ||
| 535 | plugin => 'kanban', | ||
| 536 | key => 'assignees', | ||
| 537 | field => 'image', | ||
| 538 | type => 'Tool tips', | ||
| 539 | translation => 'Image', | ||
| 540 | comment => 'Image' | ||
| 541 | }; | ||
| 542 | |||
| 543 | push @keys, { | ||
| 544 | plugin => 'kanban', | ||
| 545 | key => 'comments', | ||
| 546 | field => 'table', | ||
| 547 | type => 'Label', | ||
| 548 | translation => 'Comments', | ||
| 549 | comment => 'Comments', | ||
| 550 | }; | ||
| 551 | push @keys, { | ||
| 552 | plugin => 'kanban', | ||
| 553 | key => 'comments', | ||
| 554 | field => 'cards', | ||
| 555 | type => 'Label', | ||
| 556 | translation => 'Cards', | ||
| 557 | comment => 'Cards' | ||
| 558 | }; | ||
| 559 | push @keys, { | ||
| 560 | plugin => 'kanban', | ||
| 561 | key => 'comments', | ||
| 562 | field => 'cards', | ||
| 563 | type => 'Tool tips', | ||
| 564 | translation => 'Cards', | ||
| 565 | comment => 'Cards' | ||
| 566 | }; | ||
| 567 | |||
| 568 | push @keys, { | ||
| 569 | plugin => 'kanban', | ||
| 570 | key => 'comments', | ||
| 571 | field => 'id', | ||
| 572 | type => 'Label', | ||
| 573 | translation => 'id', | ||
| 574 | comment => 'id' | ||
| 575 | }; | ||
| 576 | push @keys, { | ||
| 577 | plugin => 'kanban', | ||
| 578 | key => 'comments', | ||
| 579 | field => 'id', | ||
| 580 | type => 'Tool tips', | ||
| 581 | translation => 'id', | ||
| 582 | comment => 'id' | ||
| 583 | }; | ||
| 584 | |||
| 585 | push @keys, { | ||
| 586 | plugin => 'kanban', | ||
| 587 | key => 'comments', | ||
| 588 | field => 'text', | ||
| 589 | type => 'Label', | ||
| 590 | translation => 'Text', | ||
| 591 | comment => 'Text' | ||
| 592 | }; | ||
| 593 | push @keys, { | ||
| 594 | plugin => 'kanban', | ||
| 595 | key => 'comments', | ||
| 596 | field => 'text', | ||
| 597 | type => 'Tool tips', | ||
| 598 | translation => 'Text', | ||
| 599 | comment => 'Text' | ||
| 600 | }; | ||
| 601 | |||
| 602 | push @keys, { | ||
| 603 | plugin => 'kanban', | ||
| 604 | key => 'comments', | ||
| 605 | field => 'name', | ||
| 606 | type => 'Label', | ||
| 607 | translation => 'User commenting', | ||
| 608 | comment => 'User commenting' | ||
| 609 | }; | ||
| 610 | push @keys, { | ||
| 611 | plugin => 'kanban', | ||
| 612 | key => 'comments', | ||
| 613 | field => 'name', | ||
| 614 | type => 'Tool tips', | ||
| 615 | translation => 'User commenting', | ||
| 616 | comment => 'User commenting' | ||
| 617 | }; | ||
| 618 | |||
| 619 | push @keys, { | ||
| 620 | plugin => 'kanban', | ||
| 621 | key => 'comments', | ||
| 622 | field => 'image', | ||
| 623 | type => 'Label', | ||
| 624 | translation => 'Avatar', | ||
| 625 | comment => 'Avatar' | ||
| 626 | }; | ||
| 627 | push @keys, { | ||
| 628 | plugin => 'kanban', | ||
| 629 | key => 'comments', | ||
| 630 | field => 'image', | ||
| 631 | type => 'Tool tips', | ||
| 632 | translation => 'Avatar', | ||
| 633 | comment => 'Avatar' | ||
| 634 | }; | ||
| 635 | |||
| 636 | push @keys, { | ||
| 637 | plugin => 'kanban', | ||
| 638 | key => 'comments', | ||
| 639 | field => 'comment_date', | ||
| 640 | type => 'Label', | ||
| 641 | translation => 'Comment Date', | ||
| 642 | comment => 'Comment Date' | ||
| 643 | }; | ||
| 644 | push @keys, { | ||
| 645 | plugin => 'kanban', | ||
| 646 | key => 'comments', | ||
| 647 | field => 'comment_date', | ||
| 648 | type => 'Tool tips', | ||
| 649 | translation => 'Comment Date', | ||
| 650 | comment => 'Comment Date' | ||
| 651 | }; | ||
| 652 | |||
| 653 | push @keys, { | ||
| 654 | plugin => 'kanban', | ||
| 655 | key => 'priority', | ||
| 656 | field => 'table', | ||
| 657 | type => 'Label', | ||
| 658 | translation => 'Priority', | ||
| 659 | comment => 'Priority', | ||
| 660 | }; | ||
| 661 | push @keys, { | ||
| 662 | plugin => 'kanban', | ||
| 663 | key => 'priority', | ||
| 664 | field => 'color', | ||
| 665 | type => 'Label', | ||
| 666 | translation => 'Color', | ||
| 667 | comment => 'Color' | ||
| 668 | }; | ||
| 669 | push @keys, { | ||
| 670 | plugin => 'kanban', | ||
| 671 | key => 'priority', | ||
| 672 | field => 'color', | ||
| 673 | type => 'Tool tips', | ||
| 674 | translation => 'Color', | ||
| 675 | comment => 'Color' | ||
| 676 | }; | ||
| 677 | |||
| 678 | push @keys, { | ||
| 679 | plugin => 'kanban', | ||
| 680 | key => 'priority', | ||
| 681 | field => 'title', | ||
| 682 | type => 'Label', | ||
| 683 | translation => 'Title', | ||
| 684 | comment => 'Title' | ||
| 685 | }; | ||
| 686 | push @keys, { | ||
| 687 | plugin => 'kanban', | ||
| 688 | key => 'priority', | ||
| 689 | field => 'title', | ||
| 690 | type => 'Tool tips', | ||
| 691 | translation => 'Title', | ||
| 692 | comment => 'Title' | ||
| 693 | }; | ||
| 694 | |||
| 695 | push @keys, { | ||
| 696 | plugin => 'kanban', | ||
| 697 | key => 'attachments', | ||
| 698 | field => 'table', | ||
| 699 | type => 'Label', | ||
| 700 | translation => 'Attachments', | ||
| 701 | comment => 'Attachments', | ||
| 702 | }; | ||
| 703 | push @keys, { | ||
| 704 | plugin => 'kanban', | ||
| 705 | key => 'attachments', | ||
| 706 | field => 'cards', | ||
| 707 | type => 'Label', | ||
| 708 | translation => 'Cards', | ||
| 709 | comment => 'Cards' | ||
| 710 | }; | ||
| 711 | push @keys, { | ||
| 712 | plugin => 'kanban', | ||
| 713 | key => 'attachments', | ||
| 714 | field => 'cards', | ||
| 715 | type => 'Tool tips', | ||
| 716 | translation => 'Cards', | ||
| 717 | comment => 'Cards' | ||
| 718 | }; | ||
| 719 | |||
| 720 | push @keys, { | ||
| 721 | plugin => 'kanban', | ||
| 722 | key => 'attachments', | ||
| 723 | field => 'filename', | ||
| 724 | type => 'Label', | ||
| 725 | translation => 'Filename', | ||
| 726 | comment => 'Filename' | ||
| 727 | }; | ||
| 728 | push @keys, { | ||
| 729 | plugin => 'kanban', | ||
| 730 | key => 'attachments', | ||
| 731 | field => 'filename', | ||
| 732 | type => 'Tool tips', | ||
| 733 | translation => 'Filename', | ||
| 734 | comment => 'Filename' | ||
| 735 | }; | ||
| 736 | |||
| 737 | push @keys, { | ||
| 738 | plugin => 'kanban', | ||
| 739 | key => 'attachments', | ||
| 740 | field => 'comment', | ||
| 741 | type => 'Label', | ||
| 742 | translation => 'Comment', | ||
| 743 | comment => 'Comment' | ||
| 744 | }; | ||
| 745 | push @keys, { | ||
| 746 | plugin => 'kanban', | ||
| 747 | key => 'attachments', | ||
| 748 | field => 'comment', | ||
| 749 | type => 'Tool tips', | ||
| 750 | translation => 'Comment', | ||
| 751 | comment => 'Comment' | ||
| 752 | }; | ||
| 753 | |||
| 754 | push @keys, { | ||
| 755 | plugin => 'kanban', | ||
| 756 | key => 'attachments', | ||
| 757 | field => 'document', | ||
| 758 | type => 'Label', | ||
| 759 | translation => 'Document', | ||
| 760 | comment => 'Document' | ||
| 761 | }; | ||
| 762 | push @keys, { | ||
| 763 | plugin => 'kanban', | ||
| 764 | key => 'attachments', | ||
| 765 | field => 'document', | ||
| 766 | type => 'Tool tips', | ||
| 767 | translation => 'Document', | ||
| 768 | comment => 'Document' | ||
| 769 | }; | ||
| 770 | |||
| 771 | push @keys, { | ||
| 772 | plugin => 'kanban', | ||
| 773 | key => 'attachments', | ||
| 774 | field => 'type', | ||
| 775 | type => 'Label', | ||
| 776 | translation => 'Type', | ||
| 777 | comment => 'Type' | ||
| 778 | }; | ||
| 779 | push @keys, { | ||
| 780 | plugin => 'kanban', | ||
| 781 | key => 'attachments', | ||
| 782 | field => 'type', | ||
| 783 | type => 'Tool tips', | ||
| 784 | translation => 'Type', | ||
| 785 | comment => 'Type' | ||
| 786 | }; | ||
| 787 | |||
| 788 | push @keys, { | ||
| 789 | plugin => 'kanban', | ||
| 790 | key => 'tasks', | ||
| 791 | field => 'table', | ||
| 792 | type => 'Label', | ||
| 793 | translation => 'Tasks', | ||
| 794 | comment => 'Tasks', | ||
| 795 | }; | ||
| 796 | push @keys, { | ||
| 797 | plugin => 'kanban', | ||
| 798 | key => 'tasks', | ||
| 799 | field => 'cards', | ||
| 800 | type => 'Label', | ||
| 801 | translation => 'Cards', | ||
| 802 | comment => 'Cards' | ||
| 803 | }; | ||
| 804 | push @keys, { | ||
| 805 | plugin => 'kanban', | ||
| 806 | key => 'tasks', | ||
| 807 | field => 'cards', | ||
| 808 | type => 'Tool tips', | ||
| 809 | translation => 'Cards', | ||
| 810 | comment => 'Cards' | ||
| 811 | }; | ||
| 812 | |||
| 813 | push @keys, { | ||
| 814 | plugin => 'kanban', | ||
| 815 | key => 'tasks', | ||
| 816 | field => 'completed', | ||
| 817 | type => 'Label', | ||
| 818 | translation => 'Completed', | ||
| 819 | comment => 'Completed' | ||
| 820 | }; | ||
| 821 | push @keys, { | ||
| 822 | plugin => 'kanban', | ||
| 823 | key => 'tasks', | ||
| 824 | field => 'completed', | ||
| 825 | type => 'Tool tips', | ||
| 826 | translation => 'Completed', | ||
| 827 | comment => 'Completed' | ||
| 828 | }; | ||
| 829 | |||
| 830 | push @keys, { | ||
| 831 | plugin => 'kanban', | ||
| 832 | key => 'tasks', | ||
| 833 | field => 'estimated', | ||
| 834 | type => 'Label', | ||
| 835 | translation => 'Estimated time (h)', | ||
| 836 | comment => 'Estimated time (h)' | ||
| 837 | }; | ||
| 838 | push @keys, { | ||
| 839 | plugin => 'kanban', | ||
| 840 | key => 'tasks', | ||
| 841 | field => 'estimated', | ||
| 842 | type => 'Tool tips', | ||
| 843 | translation => 'Estimated time (h)', | ||
| 844 | comment => 'Estimated time (h)' | ||
| 845 | }; | ||
| 846 | |||
| 847 | push @keys, { | ||
| 848 | plugin => 'kanban', | ||
| 849 | key => 'tasks', | ||
| 850 | field => 'booked', | ||
| 851 | type => 'Label', | ||
| 852 | translation => 'Booked time (h)', | ||
| 853 | comment => 'Booked time (h)' | ||
| 854 | }; | ||
| 855 | push @keys, { | ||
| 856 | plugin => 'kanban', | ||
| 857 | key => 'tasks', | ||
| 858 | field => 'booked', | ||
| 859 | type => 'Tool tips', | ||
| 860 | translation => 'Booked time (h)', | ||
| 861 | comment => 'Booked time (h)' | ||
| 862 | }; | ||
| 863 | |||
| 864 | push @keys, { | ||
| 865 | plugin => 'kanban', | ||
| 866 | key => 'tasks', | ||
| 867 | field => 'id', | ||
| 868 | type => 'Label', | ||
| 869 | translation => 'id', | ||
| 870 | comment => 'id' | ||
| 871 | }; | ||
| 872 | push @keys, { | ||
| 873 | plugin => 'kanban', | ||
| 874 | key => 'tasks', | ||
| 875 | field => 'id', | ||
| 876 | type => 'Tool tips', | ||
| 877 | translation => 'id', | ||
| 878 | comment => 'id' | ||
| 879 | }; | ||
| 880 | |||
| 881 | push @keys, { | ||
| 882 | plugin => 'kanban', | ||
| 883 | key => 'tasks', | ||
| 884 | field => 'title', | ||
| 885 | type => 'Label', | ||
| 886 | translation => 'title', | ||
| 887 | comment => 'title' | ||
| 888 | }; | ||
| 889 | push @keys, { | ||
| 890 | plugin => 'kanban', | ||
| 891 | key => 'tasks', | ||
| 892 | field => 'title', | ||
| 893 | type => 'Tool tips', | ||
| 894 | translation => 'title', | ||
| 895 | comment => 'title' | ||
| 896 | }; | ||
| 897 | |||
| 898 | push @keys, { | ||
| 899 | plugin => 'kanban', | ||
| 900 | key => 'task', | ||
| 901 | field => 'table', | ||
| 902 | type => 'Label', | ||
| 903 | translation => 'Task', | ||
| 904 | comment => 'Task', | ||
| 905 | }; | ||
| 906 | push @keys, { | ||
| 907 | plugin => 'kanban', | ||
| 908 | key => 'task', | ||
| 909 | field => 'text', | ||
| 910 | type => 'Label', | ||
| 911 | translation => 'Text', | ||
| 912 | comment => 'Text' | ||
| 913 | }; | ||
| 914 | push @keys, { | ||
| 915 | plugin => 'kanban', | ||
| 916 | key => 'task', | ||
| 917 | field => 'text', | ||
| 918 | type => 'Tool tips', | ||
| 919 | translation => 'Text', | ||
| 920 | comment => 'Text' | ||
| 921 | }; | ||
| 922 | |||
| 923 | push @keys, { | ||
| 924 | plugin => 'kanban', | ||
| 925 | key => 'task', | ||
| 926 | field => 'completed', | ||
| 927 | type => 'Label', | ||
| 928 | translation => 'completed', | ||
| 929 | comment => 'completed' | ||
| 930 | }; | ||
| 931 | push @keys, { | ||
| 932 | plugin => 'kanban', | ||
| 933 | key => 'task', | ||
| 934 | field => 'completed', | ||
| 935 | type => 'Tool tips', | ||
| 936 | translation => 'completed', | ||
| 937 | comment => 'completed' | ||
| 938 | }; | ||
| 939 | |||
| 940 | push @keys, { | ||
| 941 | plugin => 'kanban', | ||
| 942 | key => 'task', | ||
| 943 | field => 'tasks', | ||
| 944 | type => 'Label', | ||
| 945 | translation => 'Tasks', | ||
| 946 | comment => 'Tasks' | ||
| 947 | }; | ||
| 948 | push @keys, { | ||
| 949 | plugin => 'kanban', | ||
| 950 | key => 'task', | ||
| 951 | field => 'tasks', | ||
| 952 | type => 'Tool tips', | ||
| 953 | translation => 'Tasks', | ||
| 954 | comment => 'Tasks' | ||
| 955 | }; | ||
| 956 | |||
| 957 | |||
| 958 | Daje::Helper::Languages::InsertKeys->new( | ||
| 959 | db => $self->db | ||
| 960 | )->process( | ||
| 961 | \@keys | ||
| 962 | ); | ||
| 963 | $tx->commit(); | ||
| 964 | } catch($e) { | ||
| 965 | say $e; | ||
| 966 | } | ||
| 967 | } | ||
| 968 | |||
| 969 | 1; | ||
| 970 | |||
| 971 |