Skip to content

Commit

Permalink
FEATURE: Add content.header option with translations
Browse files Browse the repository at this point in the history
  • Loading branch information
grebaldi committed May 23, 2019
1 parent 4883bf3 commit 5a4927d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Resources/Private/Fusion/Root.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ prototype(Neos.Neos:Page) {
compliance = ${Configuration.setting('KaufmannDigital.CookieConsent.compliance')}
cookie = ${Configuration.setting('KaufmannDigital.CookieConsent.cookie')}
content = Neos.Fusion:RawArray {
header = ${Translation.translate('header', null, [], Configuration.setting('KaufmannDigital.CookieConsent.translations.source'), Configuration.setting('KaufmannDigital.CookieConsent.translations.package'))}
message = ${Translation.translate('message', null, [], Configuration.setting('KaufmannDigital.CookieConsent.translations.source'), Configuration.setting('KaufmannDigital.CookieConsent.translations.package'))}
dismiss = ${Translation.translate('dismiss', null, [], Configuration.setting('KaufmannDigital.CookieConsent.translations.source'), Configuration.setting('KaufmannDigital.CookieConsent.translations.package'))}
allow = ${Translation.translate('allow', null, [], Configuration.setting('KaufmannDigital.CookieConsent.translations.source'), Configuration.setting('KaufmannDigital.CookieConsent.translations.package'))}
Expand Down
3 changes: 3 additions & 0 deletions Resources/Private/Translations/de/Main.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file original="" source-language="de" datatype="plaintext">
<body>
<trans-unit id="header">
<source>Cookie Richtlinien</source>
</trans-unit>
<trans-unit id="message">
<source>Um unsere Webseite für Sie optimal zu gestalten und fortlaufend verbessern zu können, verwenden wir Cookies. Durch die weitere Nutzung der Webseite stimmen Sie der Verwendung von Cookies zu. Weitere Informationen zu Cookies erhalten Sie in unserer</source>
</trans-unit>
Expand Down
3 changes: 3 additions & 0 deletions Resources/Private/Translations/en/Main.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file original="" source-language="en" datatype="plaintext">
<body>
<trans-unit id="header">
<source>Cookie Policy</source>
</trans-unit>
<trans-unit id="message">
<source>This website uses cookies to ensure you get the best experience on our website.</source>
</trans-unit>
Expand Down

0 comments on commit 5a4927d

Please sign in to comment.