Localization in 7.2Localization in 7.2https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1187997092024-03-29T10:56:24Z2024-03-29T10:56:24ZRE: Localization in 7.2Christoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1187990482020-03-24T09:14:51Z2020-03-24T09:14:51Z<html><head></head><body>The only way I see to do this is to delete them using a script to update all content xml structures (and titles and descriptions of course, but there it is easier, since you can simply set titleMap/descriptionMap)<br>So, you would need to delete the available locales, maybe update the default-locale (use JournalArticle.setDefaultLanguage()) and remove the dynamic content entries for the languages you don't need. <br>So, you would change:<br><pre><code><!--?xml version="1.0"?-->
<root available-locales="fr_FR,en_US" default-locale="en_US">
<dynamic-element name="content" type="text_area" index-type="text" instance-id="nofk">
<dynamic-content language-id="fr_FR">&lt;p&gt;test2&lt;/p&gt;</dynamic-content>
<dynamic-content language-id="en_US">&lt;p&gt;test&lt;/p&gt;</dynamic-content>
</dynamic-element>
</root></code></pre>to<br><pre><code><!--?xml version="1.0"?-->
<root available-locales="en_US" default-locale="en_US">
<dynamic-element name="content" type="text_area" index-type="text" instance-id="nofk">
<dynamic-content language-id="en_US">&lt;p&gt;test&lt;/p&gt;</dynamic-content>
</dynamic-element>
</root></code></pre>Please take care to do this through the JournalArticle API, don't do this e.g. directly in the database!!</body></html>Christoph Rabel2020-03-24T09:14:51ZLocalization in 7.2Shruti Mishrahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1187997082020-03-24T05:27:33Z2020-03-24T05:27:33ZHi,<br />Using Liferay 7.2.1 ga2<br />We had enable two locale for portal earlier en_GB and en_US. All the web content was translated in both Locale.<br />Now we want to keep only one Locale en_US and remove other. Can we some how delete all translations of en_GB