Make hardcoded hours string translatable
This commit is contained in:
@@ -10,10 +10,11 @@
|
||||
<li>
|
||||
<?= t('Time tracking:') ?>
|
||||
<?php if (! empty($subtask['time_spent'])): ?>
|
||||
<strong><?= $this->text->e($subtask['time_spent']).'h' ?></strong> <?= t('spent') ?>
|
||||
<?= t('%sh spent', n($subtask['time_spent'])) ?>
|
||||
<?php endif ?>
|
||||
<?php if (! empty($subtask['time_spent']) && ! empty($subtask['time_estimated'])): ?>/<?php endif ?>
|
||||
<?php if (! empty($subtask['time_estimated'])): ?>
|
||||
<strong><?= $this->text->e($subtask['time_estimated']).'h' ?></strong> <?= t('estimated') ?>
|
||||
<?= t('%sh estimated', n($subtask['time_estimated'])) ?>
|
||||
<?php endif ?>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
<span class="subtask-time-tracking">
|
||||
<?php if (! empty($subtask['time_spent'])): ?>
|
||||
<strong><?= $this->text->e($subtask['time_spent']).'h' ?></strong> <?= t('spent') ?>
|
||||
<?= t('%sh spent', n($subtask['time_spent'])) ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (! empty($subtask['time_spent']) && ! empty($subtask['time_estimated'])): ?>/<?php endif ?>
|
||||
|
||||
<?php if (! empty($subtask['time_estimated'])): ?>
|
||||
<strong><?= $this->text->e($subtask['time_estimated']).'h' ?></strong> <?= t('estimated') ?>
|
||||
<?= t('%sh estimated', n($subtask['time_estimated'])) ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($this->user->hasProjectAccess('SubtaskController', 'edit', $task['project_id']) && $subtask['user_id'] == $this->user->getId()): ?>
|
||||
|
||||
@@ -64,11 +64,11 @@
|
||||
</td>
|
||||
<td>
|
||||
<?php if (! empty($link['task_time_spent'])): ?>
|
||||
<strong><?= $this->text->e($link['task_time_spent']).'h' ?></strong> <?= t('spent') ?>
|
||||
<?= t('%sh spent', n($subtask['time_spent'])) ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (! empty($subtask['time_spent']) && ! empty($subtask['time_estimated'])): ?>/<?php endif ?>
|
||||
<?php if (! empty($link['task_time_estimated'])): ?>
|
||||
<strong><?= $this->text->e($link['task_time_estimated']).'h' ?></strong> <?= t('estimated') ?>
|
||||
<?= t('%sh estimated', n($subtask['time_estimated'])) ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user