Skip to content

Commit

Permalink
FIX: Code Translations
Browse files Browse the repository at this point in the history
- #9
  • Loading branch information
aljawaid committed Jan 14, 2023
1 parent a99b540 commit 57e8811
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions Template/comment/show.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<?php endif ?>

<small class="comment-date"><?= t('Created at:') ?>&nbsp;
<kbd class="comment-created"><?= $this->dt->datetime($comment['date_creation']) ?><abbr title="Local Time">LT</abbr></kbd>
<kbd class="comment-created"><?= $this->dt->datetime($comment['date_creation']) ?><abbr title="<?= t('Local Time') ?>"><?= t('LT') ?></abbr></kbd>
</small>
<small class="comment-date updated-comment"><?= t('Updated at:') ?>&nbsp;
<kbd class="comment-updated"><?= $this->dt->datetime($comment['date_modification']) ?><abbr title="Local Time">LT</abbr></kbd>
<kbd class="comment-updated"><?= $this->dt->datetime($comment['date_modification']) ?><abbr title="<?= t('Local Time') ?>"><?= t('LT') ?></abbr></kbd>
</small>
<small class="comment-date comment-id"><i class="fa fa-comment-o fa-fw"></i> <?= t('ID: ') ?> <kbd class="comment-created"><?= $this->text->e($comment['id']) ?></kbd></small>
</div>
Expand All @@ -20,4 +20,4 @@
</div>
</div>
</div>
<hr>
<hr>
8 changes: 4 additions & 4 deletions Template/notification/footer.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<hr/>
My PP Workspace
<?= t('System Generated Email') ?>&nbsp;

<?php if ($this->app->config('application_url') != ''): ?>
<?php if (isset($task['id'])): ?>
- <?= $this->url->absoluteLink(t('view the task on Kanboard'), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
- <?= $this->url->absoluteLink(t('View Task'), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
<?php endif ?>
- <?= $this->url->absoluteLink(t('view the board on Kanboard'), 'BoardViewController', 'show', array('project_id' => $task['project_id'])) ?>
- <?= $this->url->absoluteLink(t('View Board'), 'BoardViewController', 'show', array('project_id' => $task['project_id'])) ?>
<?php endif ?>
</body>
</html>
</html>
14 changes: 7 additions & 7 deletions Template/notification/task_create.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<h3><?= t('Summary') ?></h3>
<ul class="">
<li class="">
Task Status: <?php if ($task['is_active'] == 1): ?>
<?= t('Task Status:') ?> <?php if ($task['is_active'] == 1): ?>
<strong style="text-transform: uppercase; color: green;"><?= t('open') ?></strong>
<?php else: ?>
<strong style="text-transform: uppercase; color: red;"><?= t('closed') ?></strong>
<?php endif ?>
</li>
<li class="">
Task N°: <strong>#<?= $this->text->e($task['id']) ?></strong>
<?= t('Task N°:') ?> <strong>#<?= $this->text->e($task['id']) ?></strong>
</li>
<li class="">
<?= t('Project:') ?> <strong><?= $this->text->e($task['project_name']) ?></strong>
Expand Down Expand Up @@ -47,7 +47,7 @@
</li>
<?php if ($task['date_due']): ?>
<li class="">
<strong><?= t('Due date:').' '.$this->dt->datetime($task['date_due']) ?></strong>
<strong><?= t('Due Date:').' '.$this->dt->datetime($task['date_due']) ?></strong>
</li>
<?php endif ?>
<?php if ($task['date_completed']): ?>
Expand All @@ -66,13 +66,13 @@
<?php if (! empty($task['assignee_username'])): ?>
<?= t('Assigned to %s', $task['assignee_name'] ?: $task['assignee_username']) ?>
<?php else: ?>
<?= t('There is nobody assigned') ?>
<?= t('Nobody was assigned to this task') ?>
<?php endif ?>
</strong>
</li>
<li class="">
<hr style="list-style-type: none;">
<?= t('Column on the board:') ?> <strong><?= $this->text->e($task['column_title']) ?></strong>
<?= t('Board Column:') ?> <strong><?= $this->text->e($task['column_title']) ?></strong>
</li>
<?php if (! empty($task['swimlane_name'])): ?>
<li class="">
Expand All @@ -85,7 +85,7 @@
</li>
<?php endif ?>
<li class="">
<?= t('Task position:').' '.$this->text->e($task['position']) ?>
<?= t('Task Position:').' '.$this->text->e($task['position']) ?>
</li>
<?php if ($task['recurrence_status'] == \Kanboard\Model\TaskModel::RECURRING_STATUS_PENDING): ?>
<li class="">
Expand All @@ -101,7 +101,7 @@
<?php if ($task['recurrence_parent'] || $task['recurrence_child']): ?>
<?php if ($task['recurrence_parent']): ?>
<li>
<?= t('This task has been created by: ') ?>
<?= t('This task was created by: ') ?>
<?= $this->url->link('#'.$task['recurrence_parent'], 'TaskViewController', 'show', array('task_id' => $task['recurrence_parent'], 'project_id' => $task['project_id'])) ?>
</li>
<?php endif ?>
Expand Down

0 comments on commit 57e8811

Please sign in to comment.