Skip to content

Commit

Permalink
task: refactor translations for themes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaseberle committed Nov 9, 2023
1 parent a7583f8 commit 500cb86
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="messages" date="2022-11-27T22:26:21Z" product-name="cookieman_test">
<header />
<body>
<trans-unit id="trackingobject.CrowdinWidget" xml:space="preserve">
<source>Crowdin Widget</source>
</trans-unit>
<trans-unit id="trackingobject.CrowdinWidget.desc" xml:space="preserve">
<source>This is just a test but on the other hand it is useful: It displays the Crowdin Widget which allows you to help translating cookieman ;)</source>
</trans-unit>
<trans-unit id="group.testgroup" xml:space="preserve">
<source>Test group (does not respect Do-Not-Track header)</source>
</trans-unit>
<trans-unit id="type.script" xml:space="preserve">
<source>JavaScript</source>
</trans-unit>
</body>
</file>
</xliff>
11 changes: 11 additions & 0 deletions Build/cookieman_test/ext_localconf.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

defined('TYPO3') || die();

(static function () {
// @todo: Currently TypoScript _LOCAL_LANG does not work in non-plugin context. https://forge.typo3.org/issues/100759
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:cookieman/Resources/Private/Language/locallang.xlf'][]
= 'EXT:cookieman_test/Resources/Private/Language/locallang_cookieman.xlf';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['de']['EXT:cookieman/Resources/Private/Language/locallang.xlf'][]
= 'EXT:cookieman_test/Resources/Private/Language/de.locallang_cookieman.xlf';
})();
15 changes: 2 additions & 13 deletions Build/cookieman_test/ext_typoscript_setup.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ plugin.tx_cookieman.settings {
}
show {
CrowdinWidget {
duration = -
durationUnit = -
duration =
durationUnit = none
type = script
provider = Crowdin
}
Expand All @@ -54,14 +54,3 @@ plugin.tx_cookieman.settings {
}
}
}

plugin.tx_cookieman._LOCAL_LANG {
en {
trackingobject\.CrowdinWidget = Crowdin Widget
trackingobject\.CrowdinWidget\.desc = This is just a test but on the other hand it is useful: It displays the Crowdin Widget which allows you to help translating cookieman ;)
group\.testgroup = Test group (does not respect Do-Not-Track header)
type\.script = JavaScript
}

default < .en
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"codeception/module-asserts": "^3.0",
"codeception/module-webdriver": "^3.2",
"dmind/cookieman-test": "@dev",
"dmind/cookieman-test-bootstrap5-modal": "@dev",
"dmind/cookieman-test-bootstrap4-modal": "@dev",
"friendsofphp/php-cs-fixer": "^3.14",
"helhum/typo3-console": "^8.0",
"php-coveralls/php-coveralls": "^2.1",
Expand Down

0 comments on commit 500cb86

Please sign in to comment.