Skip to content

Commit

Permalink
fixed translation for the action and the confirmation to disable a co…
Browse files Browse the repository at this point in the history
…mmand (#77)
  • Loading branch information
DieWallSoCom authored Sep 24, 2023
1 parent 93ccec4 commit a9e0854
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Resources/translations/DukecityCommandScheduler.de.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@
<source>action.cancel</source>
<target>Stornieren</target>
</trans-unit>
<trans-unit id="111">
<source>confirm.disable</source>
<target>Die Aufgabe könnte gerade ausgeführt werden. Möchtest du sie wirklich deaktivieren?</target>
</trans-unit>
<trans-unit id="112">
<source>action.disable</source>
<target>Aufgabe deaktivieren</target>
</trans-unit>

<!-- Detail -->
<trans-unit id="201">
Expand Down
8 changes: 8 additions & 0 deletions Resources/translations/DukecityCommandScheduler.en.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@
<source>action.cancel</source>
<target>Cancel</target>
</trans-unit>
<trans-unit id="111">
<source>confirm.disable</source>
<target>The task may be running. Are you sure you want to disable it ?</target>
</trans-unit>
<trans-unit id="112">
<source>action.disable</source>
<target>Disable task</target>
</trans-unit>

<!-- Detail -->
<trans-unit id="201">
Expand Down
2 changes: 1 addition & 1 deletion Resources/views/List/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<tr {% if command.disabled == true %}class="text-muted" {% endif %}>
<td {% if command.disabled == false %}data-search="active" data-order="0"{% else %}data-search="deactive" data-order="1"{% endif %}>
<a href="{{ path('dukecity_command_scheduler_action_toggle', {'id': command.id}) }}"
data-toggle="confirmation" data-btn-ok-label="{{ "action.unlock"|trans }}" data-title="{{ "confirm.unlock"|trans }}">
data-toggle="confirmation" data-btn-ok-label="{{ "action.disable"|trans }}" data-title="{{ "confirm.disable"|trans }}">
{% if command.disabled == true %}
<i class="bi bi-power text-danger" title="Activate command"></i>
{% else %}
Expand Down

0 comments on commit a9e0854

Please sign in to comment.