<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — en_US gets deleted even if UTF8 mo is remaining]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5315&amp;type=atom" />
	<updated>2014-11-16T11:27:45Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5315</id>
		<entry>
			<title type="html"><![CDATA[en_US gets deleted even if UTF8 mo is remaining]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21472#p21472" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-11-16T11:27:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21472#p21472</id>
		</entry>
</feed>
