Skip to content

Commit

Permalink
Merge pull request #11 from lindesbs/8-uebersetzungen-translation
Browse files Browse the repository at this point in the history
Add en translations
  • Loading branch information
lindesbs authored Jun 10, 2023
2 parents 2cda5cf + b514114 commit 6a62c0f
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 10 deletions.
39 changes: 39 additions & 0 deletions src/Resources/contao/languages/en/default.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.1">
<file>
<body>
<trans-unit id="pageyaml.settings.title">
<target>pageYaml - Overview</target>
</trans-unit>
<trans-unit id="pageyaml.settings.importfile">
<target>Configuration file</target>
</trans-unit>
<trans-unit id="pageyaml.settings.importfile_description">
<target>File must be stored in /files directory. Just upload it via file manager. Extension must be <b>yaml</b></target>
</trans-unit>
<trans-unit id="pageyaml.settings.importtitle">
<target>Import settings</target>
</trans-unit>
<trans-unit id="pageyaml.settings.addArticle">
<target></target>
</trans-unit>
<trans-unit id="pageyaml.settings.addArticleCheckbox">
<target>add article to every page</target>
</trans-unit>
<trans-unit id="pageyaml.settings.importConfiguration">
<target>Import settings from file</target>
</trans-unit>

<trans-unit id="pageyaml.global.name">
<target>pageYAML</target>
</trans-unit>

<trans-unit id="pageyaml.global.import">
<target>
Import
</target>
</trans-unit>

</body>
</file>
</xliff>
4 changes: 2 additions & 2 deletions src/Resources/views/Backend/GlobalOperationsLink.html.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="pageyaml_dropdown">
<button class="pageyaml_dropbtn"><span class="icon"></span>PageYAML</button>
<button class="pageyaml_dropbtn"><span class="icon"></span>{{ 'pageyaml.global.name'|trans({}, 'contao_default') }}</button>

<div class="pageyaml_dropdown-content">
<a href="contao?do=page&{{ href }}&import">Import</a>
<a href="contao?do=page&{{ href }}&import">{{ 'pageyaml.global.import'|trans({}, 'contao_default') }}</a>
</div>
</div>
27 changes: 19 additions & 8 deletions src/Resources/views/Backend/settings.html.twig
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<div id="pageyaml" class="container">
<h2 class="sub_headline">Uebersicht</h2>
<h2 class="sub_headline">{{ 'pageyaml.settings.title'|trans({}, 'contao_default') }}</h2>

<div class="tl_box">
<div class="row">
<div class="col-3-sm">

<h3>Seitenbaum Konfiguration</h3>
<h3>{{ 'pageyaml.settings.importtitle'|trans({}, 'contao_default') }}</h3>
</div>
<div class="col-9">
<form class="tl_form" method="post">
Expand All @@ -16,8 +16,7 @@
<table>
<tr>
<td>

<label for="pageyaml_files">YAML Files</label>
<label for="pageyaml_files">{{ 'pageyaml.settings.importfile'|trans({}, 'contao_default') }}</label>
</td>
<td>
<select name="pageyaml_files" id="pageyaml_files">
Expand All @@ -30,16 +29,28 @@
</tr>
<tr>
<td>
<label for="additionaljobs">Weitere Aufgaben:</label>
</td>
<td>
<small>{{ 'pageyaml.settings.importfile_description'|trans({}, 'contao_default') }}</small>

</td>
</tr>
<tr>
<td>
<label for="additionaljobs">{{ 'pageyaml.settings.addArticle'|trans({}, 'contao_default') }}</label>
</td>
<td>
<input type="checkbox" id="additionaljobs" name="additionaljobs">Artikel hinzufuegen</input>
<input type="checkbox" id="additionaljobs" name="additionaljobs">{{ 'pageyaml.settings.addArticleCheckbox'|trans({}, 'contao_default') }}</input>
</td>
</tr>
</table>
<button type="submit" class="button" name="importConfig" value="1">Konfiguration importieren
<div class="tl_formbody_submit">
<div class="tl_submit_container">
<button type="submit" class="tl_submit" name="importConfig" value="1">
{{ 'pageyaml.settings.importConfiguration'|trans({}, 'contao_default') }}
</button>

</div>
</div>
</form>

</div>
Expand Down

0 comments on commit 6a62c0f

Please sign in to comment.