Skip to content

Commit

Permalink
Bugfix: Translations of field featured recommendation in tl_module mo…
Browse files Browse the repository at this point in the history
…ved from tl_module to tl_recommendation to prevent wrong translations in contao news bundle.
  • Loading branch information
eki89 committed Aug 4, 2020
1 parent 67b001a commit a595a90
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 22 deletions.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
]
},
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
},
"contao-manager-plugin": "Oveleon\\ContaoRecommendationBundle\\ContaoManager\\Plugin"
}
}
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
'exclude' => true,
'inputType' => 'select',
'options' => array('all_items', 'featured', 'unfeatured'),
'reference' => &$GLOBALS['TL_LANG']['tl_module'],
'reference' => &$GLOBALS['TL_LANG']['tl_recommendation'],
'eval' => array('tl_class'=>'w50'),
'sql' => "varchar(16) NOT NULL default ''"
);
Expand Down
12 changes: 0 additions & 12 deletions src/Resources/contao/languages/de/tl_module.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,6 @@
<source>Here you can select the recommendation template.</source>
<target>Hier können Sie das Bewertungstemplate auswählen.</target>
</trans-unit>
<trans-unit id="tl_module.all_items">
<source>Show all recommendations</source>
<target>Alle Bewertungen anzeigen</target>
</trans-unit>
<trans-unit id="tl_module.featured">
<source>Show featured recommendation only</source>
<target>Nur hervorgehobene Bewertungen anzeigen</target>
</trans-unit>
<trans-unit id="tl_module.unfeatured">
<source>Skip featured recommendations</source>
<target>Hervorgehobene Bewertungen überspringen</target>
</trans-unit>
</body>
</file>
</xliff>
12 changes: 12 additions & 0 deletions src/Resources/contao/languages/de/tl_recommendation.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,18 @@
<source>Date and time of the latest revision</source>
<target>Datum und Uhrzeit der letzten Änderung</target>
</trans-unit>
<trans-unit id="tl_recommendation.all_items">
<source>Show all recommendations</source>
<target>Alle Bewertungen anzeigen</target>
</trans-unit>
<trans-unit id="tl_recommendation.featured">
<source>Show featured recommendation only</source>
<target>Nur hervorgehobene Bewertungen anzeigen</target>
</trans-unit>
<trans-unit id="tl_recommendation.unfeatured">
<source>Skip featured recommendations</source>
<target>Hervorgehobene Bewertungen überspringen</target>
</trans-unit>
<trans-unit id="tl_recommendation.title_legend">
<source>Title and author</source>
<target>Titel und Autor</target>
Expand Down
9 changes: 0 additions & 9 deletions src/Resources/contao/languages/en/tl_module.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@
<trans-unit id="tl_module.recommendation_template.1">
<source>Here you can select the recommendation template.</source>
</trans-unit>
<trans-unit id="tl_module.all_items">
<source>Show all recommendations</source>
</trans-unit>
<trans-unit id="tl_module.featured">
<source>Show featured recommendation only</source>
</trans-unit>
<trans-unit id="tl_module.unfeatured">
<source>Skip featured recommendations</source>
</trans-unit>
</body>
</file>
</xliff>
9 changes: 9 additions & 0 deletions src/Resources/contao/languages/en/tl_recommendation.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,15 @@
<trans-unit id="tl_recommendation.tstamp.1">
<source>Date and time of the latest revision</source>
</trans-unit>
<trans-unit id="tl_recommendation.all_items">
<source>Show all recommendations</source>
</trans-unit>
<trans-unit id="tl_recommendation.featured">
<source>Show featured recommendation only</source>
</trans-unit>
<trans-unit id="tl_recommendation.unfeatured">
<source>Skip featured recommendations</source>
</trans-unit>
<trans-unit id="tl_recommendation.title_legend">
<source>Title and author</source>
</trans-unit>
Expand Down

0 comments on commit a595a90

Please sign in to comment.