<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Default Translation Support for editable Fields inside of a Fragment</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122031522" />
  <subtitle>Default Translation Support for editable Fields inside of a Fragment</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122031522</id>
  <updated>2026-04-06T20:17:49Z</updated>
  <dc:date>2026-04-06T20:17:49Z</dc:date>
  <entry>
    <title>RE: RE: Default Translation Support for editable Fields inside of a Fragment</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122090901" />
    <author>
      <name>Jamie Sammons</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122090901</id>
    <updated>2023-10-13T16:10:50Z</updated>
    <published>2023-10-13T16:10:49Z</published>
    <summary type="html">&lt;p&gt;Please see https://liferay.atlassian.net/browse/LPS-197253 for an update.&lt;/p&gt;</summary>
    <dc:creator>Jamie Sammons</dc:creator>
    <dc:date>2023-10-13T16:10:49Z</dc:date>
  </entry>
  <entry>
    <title>RE: Default Translation Support for editable Fields inside of a Fragment</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122056167" />
    <author>
      <name>Jamie Sammons</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122056167</id>
    <updated>2023-09-25T21:29:12Z</updated>
    <published>2023-09-25T21:29:11Z</published>
    <summary type="html">&lt;p&gt;Feature Request Created: https://liferay.atlassian.net/browse/LPS-197253&lt;/p&gt;</summary>
    <dc:creator>Jamie Sammons</dc:creator>
    <dc:date>2023-09-25T21:29:11Z</dc:date>
  </entry>
  <entry>
    <title>Default Translation Support for editable Fields inside of a Fragment</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122031521" />
    <author>
      <name>Dominic Blank - USU</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122031521</id>
    <updated>2024-06-05T14:40:26Z</updated>
    <published>2023-09-14T12:57:41Z</published>
    <summary type="html">&lt;p&gt;As a Content-Editor i want to provide some default translation for
  editable fields inside of a Fragment.&lt;br&gt;
  &lt;br&gt; Due to limitations listed inside
  of https://liferay.atlassian.net/browse/LRDOCS-12045 it is currently
  not possible to execute freemarker code inside of fragments and
  retrieve a translated key. For example (This does not work):&lt;/p&gt;
&lt;blockquote&gt;
  &lt;pre&gt;
&lt;code class="language-html"&gt;&amp;lt;button&amp;gt;
	&amp;lt;span  data-lfr-editable-id=&amp;quot;text1&amp;quot; data-lfr-editable-type=&amp;quot;rich-text&amp;quot;&amp;gt;
		 ${languageUtil.get(locale,'user')}
  &amp;lt;/span&amp;gt;
&amp;lt;/button&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt;
  &lt;strong&gt;Solution A:&lt;/strong&gt; Maybe liferay can allow freemarker code
  inside editable-fragments by not persisting the default value but only
  the values if edited by the user?&lt;br&gt;
  &lt;br&gt;
  &lt;strong&gt;Solution B:&lt;/strong&gt; Or alternativly Liferay could add an
  additional data-tag to perform translation on provided key entries:&lt;/p&gt;
&lt;blockquote&gt;
  &lt;pre&gt;
&lt;code class="language-html"&gt;&amp;lt;button&amp;gt;
	&amp;lt;span  data-lfr-editable-id=&amp;quot;text1&amp;quot; data-lfr-editable-type=&amp;quot;rich-text&amp;quot; data-lfr-translate-content=&amp;quot;true&amp;quot;&amp;gt;
		user
  &amp;lt;/span&amp;gt;
&amp;lt;/button&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt;So for english-users the button shows &amp;quot;User&amp;quot; and for
  german-users it would show &amp;quot;Benutzer&amp;quot;? Of course only if
  there is an Liferay Language Key available that matches.  &lt;/p&gt;</summary>
    <dc:creator>Dominic Blank - USU</dc:creator>
    <dc:date>2023-09-14T12:57:41Z</dc:date>
  </entry>
</feed>
