<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Default C Language errors]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6902&amp;type=atom" />
	<updated>2018-03-19T07:36:44Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6902</id>
		<entry>
			<title type="html"><![CDATA[Re: Default C Language errors]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31163#p31163" />
			<content type="html"><![CDATA[<p>@oakstreet1: Thanks for the feedback as it will avoid sidetracking users especially newbies.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-03-19T07:36:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31163#p31163</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Default C Language errors]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31161#p31161" />
			<content type="html"><![CDATA[<p>I realized, after testing on my client&#039;s server (also CentOS 7), that I had compiled my own PHP module for another issue I had, and I had not compiled in zlib support, so I recompiled and everything is working. Sorry for wasting your time with that.</p>]]></content>
			<author>
				<name><![CDATA[oakstreet1]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42263</uri>
			</author>
			<updated>2018-03-19T03:56:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31161#p31161</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Default C Language errors]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31159#p31159" />
			<content type="html"><![CDATA[<p>Thanks. I&#039;m not sure I&#039;m ready to downgrade MySQL, as I&#039;m using it for several projects. The server I&#039;m going to install this on for my client is running server version: 5.5.56-MariaDB.</p><p>I am using my installation for my business (so I can learn FrontAccounting and do real-world testing), and so far everything has been working for me ... except the install/activate extensions stuff, which I am not sure I need for my small software development/consulting business.</p>]]></content>
			<author>
				<name><![CDATA[oakstreet1]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42263</uri>
			</author>
			<updated>2018-03-18T18:10:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31159#p31159</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Default C Language errors]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31158#p31158" />
			<content type="html"><![CDATA[<p>Keeping your MySQL version to be &lt;= 5.5 will avoid needing to enable date strict mode to allow for zero dates and times to be acceptable.</p><p><a href="https://www.siteground.com/kb/how_to_enable_zlib_compression_manually_for_php_scripts/">zLib compression - HowTo</a>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-03-18T16:26:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31158#p31158</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Default C Language errors]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31157#p31157" />
			<content type="html"><![CDATA[<p>I&#039;m using a CentOS7 server with PHP 5.6.23 and MySQL version 5.7.15.<br />I think I&#039;m missing zLib because I don&#039;t get any installed/available extensions, languages, etc. on the setup page. I haven&#039;t figured out how to add zLib to PHP using Yum. I&#039;m not in a hurry to compile a custom version of PHP because I prefer to use Yum to keep the system updated.</p>]]></content>
			<author>
				<name><![CDATA[oakstreet1]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42263</uri>
			</author>
			<updated>2018-03-18T16:12:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31157#p31157</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Default C Language errors]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31156#p31156" />
			<content type="html"><![CDATA[<p>Are you working a Windows platform? If so, you may have to disable gettext in your php.ini and you will then get array based translation.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-03-18T16:04:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31156#p31156</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Default C Language errors]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31154#p31154" />
			<content type="html"><![CDATA[<p>Ok. Thanks. I&#039;m not sure how the language translation would work with the installed_languages.inc file pointing to a non-existent folder. The error log was getting appended constantly. I just installed the en_US.po file you linked. I still have a month to get all of this working correctly. I am making progress, but I still have more questions.</p>]]></content>
			<author>
				<name><![CDATA[oakstreet1]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42263</uri>
			</author>
			<updated>2018-03-18T15:06:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31154#p31154</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Default C Language errors]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31143#p31143" />
			<content type="html"><![CDATA[<p>The file en_US.mo should not be renamed to .po. Instead remove the entire en_US folder if you want or just add in the en_US.po file for your records by either generating it from the .mo file or copying it over from <a href="https://github.com/apmuthu/frontac24/raw/master/FA24Mods/lang/en_US/LC_MESSAGES/en_US.po">here (ISO-8859-1)</a> or from here <a href="https://github.com/apmuthu/frontac24/blob/master/FA24Mods/lang/en_US-UTF8/LC_MESSAGES/en_US.po">here (UTF-8)</a>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-03-16T21:09:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31143#p31143</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Default C Language errors]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31141#p31141" />
			<content type="html"><![CDATA[<p>Apparently my installation got messed up a bit by this. I discovered that the default language in lang/installed_languages.inc was &quot;C&quot;, but the lang folder didn&#039;t have a &quot;C&quot; folder, but rather an &quot;en_US&quot; folder. I edited the installed_languages.inc file to use &#039;en_US&#039;, but I still had a problem, because the file in lang/en_US/LC_MESSAGES was named &quot;en_US.mo&quot;, rather than &quot;en_US.po&quot;. After renaming it, the errors stopped.</p><p>That is now fixed, but that&#039;s not the problem I had set out to find. <img src="https://frontaccounting.com/punbb/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></content>
			<author>
				<name><![CDATA[oakstreet1]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42263</uri>
			</author>
			<updated>2018-03-16T17:48:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31141#p31141</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Default C Language errors]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28308#p28308" />
			<content type="html"><![CDATA[<p>When no language is chosen for the FA user interface, the fallback language is &quot;C&quot;.</p><p>Older PHP versions did not have native <strong>gettext</strong> support or it was not compiled into it or it was not enabled in the php.ini.</p><p>For such instances, the fallback was a language translation array that was generated if the <strong>&lt;locale&gt;.php</strong> file was not compiled after the corresponding <strong>.po</strong> file.</p><p>If the <strong>lang/new_language_template/C.php</strong>, then it would throw up errors in the <strong>tmp/errors.log</strong> file.</p><p>To mitigate this, in the <strong>includes/lang/gettext.inc</strong> file, after:<br /></p><div class="codebox"><pre><code>    function _load_domain($domain, $path = &quot;./locale&quot;)
    {
        $src_domain = $path . &quot;/$this-&gt;_lang_code/LC_MESSAGES/$domain.po&quot;;
        $php_domain = $path . &quot;/$this-&gt;_lang_code/LC_MESSAGES/$domain.php&quot;;</code></pre></div><p>insert the following:<br /></p><div class="codebox"><pre><code>        if ( $this-&gt;_lang_code == &#039;C&#039; ) {
            $src_domain = $path . &quot;/new_language_template/LC_MESSAGES/empty.po&quot;;
            $php_domain = $path . &quot;/new_language_template/LC_MESSAGES/C.php&quot;;
        }</code></pre></div><p>and create the file <strong>lang/new_language_template/C.php</strong> with the following contents:<br /></p><div class="codebox"><pre><code>&lt;?php
return array();</code></pre></div><p>This fix is <a href="https://github.com/apmuthu/frontac24/commit/29dd0c391533a6711741140728d0147b39756a2c">available in my FA24Mods commit</a>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-07-31T19:08:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28308#p28308</id>
		</entry>
</feed>
