<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — en_US gets deleted even if UTF8 mo is remaining]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5315</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5315&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in en_US gets deleted even if UTF8 mo is remaining.]]></description>
		<lastBuildDate>Sun, 16 Nov 2014 11:27:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[en_US gets deleted even if UTF8 mo is remaining]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=21472#p21472</link>
			<description><![CDATA[<p>A default FA install comes with lang/en_US/LC_MESSAGES/en_US.mo file which is UTF-8 encoded. Therefore it must be included in the lang/installed_languages.inc file like:<br /></p><div class="codebox"><pre><code>&lt;?php

/* How to make new entries here for non-packaged languages:

-- &#039;code&#039; should match the name of the directory for the language under \lang
.-- &#039;name&#039; is the name that will be displayed in the language selection list (in Users and Display Setup)
-- &#039;rtl&#039; only needs to be set for right-to-left languages like Arabic and Hebrew
-- &#039;encoding&#039; used in translation file
-- &#039;version&#039; always set to &#039;&#039; for manually installed languages.
-- &#039;path&#039; installation path related to FA root (e.g. &#039;lang/en_US&#039;).
*/


$installed_languages = array (
  0 =&gt; 
  array (
    &#039;code&#039; =&gt; &#039;C&#039;,
    &#039;name&#039; =&gt; &#039;English&#039;,
    &#039;encoding&#039; =&gt; &#039;iso-8859-1&#039;,
  ),
  1 =&gt; 
  array (
    &#039;code&#039; =&gt; &#039;en_US&#039;,
    &#039;name&#039; =&gt; &#039;English US UTF8&#039;,
    &#039;encoding&#039; =&gt; &#039;utf-8&#039;,
    &#039;path&#039; =&gt; &#039;lang/en_US&#039;,
    &#039;version&#039; =&gt; &#039;&#039;,
  ),
);

$dflt_lang = &#039;C&#039;;
?&gt;</code></pre></div><p>Now when we install the en_US ISO 8859-1 version from the official repo, the new mo and po files with the version number as part of their filename get into the same folder along with the original en_US UTF-8 encoded file.</p><p>Now only the official ISO encoded en_US is available in the language choice drop down boxes.</p><p>When we now uninstall the official en_US ISO language, the whole en_US folder gets deleted including the original UTF-8 encoded mo file.</p><p>If the original path is changed from en_US to en_US_UTF8 to prevent such deletion, then it does not show up as part of the installed languages!</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 16 Nov 2014 11:27:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=21472#p21472</guid>
		</item>
	</channel>
</rss>
