<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Default C Language errors]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6902</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6902&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Default C Language errors.]]></description>
		<lastBuildDate>Mon, 19 Mar 2018 07:36:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Default C Language errors]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31163#p31163</link>
			<description><![CDATA[<p>@oakstreet1: Thanks for the feedback as it will avoid sidetracking users especially newbies.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 19 Mar 2018 07:36:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31163#p31163</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default C Language errors]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31161#p31161</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (oakstreet1)]]></author>
			<pubDate>Mon, 19 Mar 2018 03:56:38 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31161#p31161</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default C Language errors]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31159#p31159</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (oakstreet1)]]></author>
			<pubDate>Sun, 18 Mar 2018 18:10:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31159#p31159</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default C Language errors]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31158#p31158</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 18 Mar 2018 16:26:19 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31158#p31158</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default C Language errors]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31157#p31157</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (oakstreet1)]]></author>
			<pubDate>Sun, 18 Mar 2018 16:12:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31157#p31157</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default C Language errors]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31156#p31156</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 18 Mar 2018 16:04:24 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31156#p31156</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default C Language errors]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31154#p31154</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (oakstreet1)]]></author>
			<pubDate>Sun, 18 Mar 2018 15:06:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31154#p31154</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default C Language errors]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31143#p31143</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 16 Mar 2018 21:09:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31143#p31143</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default C Language errors]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31141#p31141</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (oakstreet1)]]></author>
			<pubDate>Fri, 16 Mar 2018 17:48:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31141#p31141</guid>
		</item>
		<item>
			<title><![CDATA[Default C Language errors]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28308#p28308</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 31 Jul 2017 19:08:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28308#p28308</guid>
		</item>
	</channel>
</rss>
