Skip to content

Instantly share code, notes, and snippets.

@oliverthiele
Created June 30, 2014 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save oliverthiele/99664d529834bb3b0c41 to your computer and use it in GitHub Desktop.
Save oliverthiele/99664d529834bb3b0c41 to your computer and use it in GitHub Desktop.
Nested TYPO3 Fluid TranslateViewHelper for a localized string with localized date as argument.
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2014-06-23T17:05:17Z"
product-name="ot_website">
<header/>
<body>
<trans-unit id="page_created">
<source>Page was created on %1s.</source>
<target>Diese Seite wurde am %1s erstellt.</target>
</trans-unit>
<trans-unit id="formatDate">
<source>m/d/Y H:i</source>
<target>d.m.Y \u\m H:i</target>
</trans-unit>
</body>
</file>
</xliff>
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="2014-06-23T17:05:17Z" product-name="ot_website">
<header/>
<body>
<trans-unit id="formatDate">
<source>m/d/Y H:i</source>
</trans-unit>
<trans-unit id="page_created">
<source>Page was created on %1s.</source>
</trans-unit>
</body>
</file>
</xliff>
<f:translate extensionName="ot_website" id="page_created" arguments="{0: '{f:format.date(date: \'@{data.crdate}\', format: \'{f:translate(id: \\\'formatDate\\\', extensionName: \\\'ot_website\\\')}\')}'}" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment