Skip to content

Commit

Permalink
[FEATURE] Translate module labels
Browse files Browse the repository at this point in the history
Add missing translations.

Refs #16
  • Loading branch information
pixelbrackets committed Feb 27, 2018
1 parent 99ff91b commit 777b97c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 15 deletions.
12 changes: 6 additions & 6 deletions Resources/Private/Backend/Partials/Guide/Item.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{namespace core = TYPO3\CMS\Core\ViewHelpers}
<!--
@todo translation and section
-->

<div class="col-xs-12 col-sm-6">
<div class="tour-item media clearfix" id="{tour.id}">
<a href="#" data-onclick="startTour" data-tour="{tour.name}" data-step-no="0"
Expand All @@ -14,11 +12,13 @@
<f:if condition="{tour.alreadyViewed}">
<f:then>
<f:if condition="{tour.currentStepNo} == 0">
<f:then>Sie haben diese Tour bereits gesehen.</f:then>
<f:else>Sie haben diese Tour noch nicht komplett gesehen.</f:else>
<f:then><f:translate key="tx_guide_label.tour_seen"/></f:then>
<f:else><f:translate key="tx_guide_label.tour_partially_seen"/></f:else>
</f:if>
</f:then>
<f:else>Sie haben diese Tour noch nicht gesehen.</f:else>
<f:else>
<f:translate key="tx_guide_label.tour_unseen"/>
</f:else>
</f:if>
</small><br>
<p>{tour.description}</p>
Expand Down
20 changes: 16 additions & 4 deletions Resources/Private/Language/de.locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2014-09-23T15:21:54Z" product-name="guide">
<header/>
<body>

<!-- Backend Module -->
<trans-unit id="tx_guide_label.module_menu_overview">
<source>Overview</source>
<target>Übersicht</target>
</trans-unit>

<trans-unit id="tx_guide_label.headline">
<source>Guided tours trough TYPO3</source>
<target>Führungen durch TYPO3</target>
Expand All @@ -26,6 +26,19 @@
<source>Available module guided tours</source>
<target>Verfügbare Touren durch Module</target>
</trans-unit>

<trans-unit id="tx_guide_label.tour_seen">
<source>You have already seen this tour.</source>
<target>Sie haben diese Tour bereits gesehen.</target>
</trans-unit>
<trans-unit id="tx_guide_label.tour_partially_seen">
<source>You have not seen this tour completely yet.</source>
<target>Sie haben diese Tour noch nicht komplett gesehen.</target>
</trans-unit>
<trans-unit id="tx_guide_label.tour_unseen">
<source>You have not seen this tour.</source>
<target>Sie haben diese Tour noch nicht gesehen.</target>
</trans-unit>
<trans-unit id="tx_guide_label.enable_tour">
<source>Enable tour</source>
<target>Tour aktivieren</target>
Expand All @@ -43,7 +56,7 @@
<target>Tour fortsetzen</target>
</trans-unit>

<!-- Frontend -->
<!-- Tour Steps -->
<trans-unit id="tx_guide_tour.next">
<source>Next</source>
<target>weiter</target>
Expand All @@ -64,7 +77,6 @@
<source>Don't show again</source>
<target>nicht wieder anzeigen</target>
</trans-unit>

</body>
</file>
</xliff>
19 changes: 14 additions & 5 deletions Resources/Private/Language/locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<file source-language="en" datatype="plaintext" original="messages" date="2014-09-23T15:21:54Z" product-name="guide">
<header/>
<body>

<!-- Backend Module -->
<trans-unit id="tx_guide_label.module_menu_overview">
<source>Overview</source>
</trans-unit>

<trans-unit id="tx_guide_label.headline">
<source>Guided tours trough TYPO3</source>
</trans-unit>
Expand All @@ -21,6 +21,16 @@
<trans-unit id="tx_guide_label.available_module_guided_tours">
<source>Available module guided tours</source>
</trans-unit>

<trans-unit id="tx_guide_label.tour_seen">
<source>You have already seen this tour.</source>
</trans-unit>
<trans-unit id="tx_guide_label.tour_partially_seen">
<source>You have not seen this tour completely yet.</source>
</trans-unit>
<trans-unit id="tx_guide_label.tour_unseen">
<source>You have not seen this tour.</source>
</trans-unit>
<trans-unit id="tx_guide_label.enable_tour">
<source>Enable tour</source>
</trans-unit>
Expand All @@ -33,8 +43,8 @@
<trans-unit id="tx_guide_label.resume_tour_on_step">
<source>Resume tour</source>
</trans-unit>
<!-- Frontend -->

<!-- Tour Steps -->
<trans-unit id="tx_guide_tour.next">
<source>Next</source>
</trans-unit>
Expand All @@ -50,7 +60,6 @@
<trans-unit id="tx_guide_tour.show_again">
<source>Don't show again</source>
</trans-unit>

</body>
</file>
</xliff>

0 comments on commit 777b97c

Please sign in to comment.