<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Changing languages]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=235</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=235&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Changing languages.]]></description>
		<lastBuildDate>Thu, 18 Sep 2008 21:46:08 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Changing languages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1156#p1156</link>
			<description><![CDATA[<p>On both hosted systems, where the translation of FA does not work, gettext is enabled. At least that&#039;s what I see in phpinfo().</p><p>How does one check which locales are installed on a system?</p><p>On both systems the multilanguage function of phpMyAdmin works fine.</p>]]></description>
			<author><![CDATA[null@example.com (MorkvonOrk)]]></author>
			<pubDate>Thu, 18 Sep 2008 21:46:08 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1156#p1156</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing languages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1155#p1155</link>
			<description><![CDATA[<p>The translation system works on both php4 and php5 as the whole FA. First you should check if the affected systems does use gettext extension. If not emulated gettext is used and you should check write permissions to subdirectories described above. On the other hand FA does not use write access and you should check if your system have proper locale installed. <br />According to php manual there is no php settings related to gettext in php.<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 18 Sep 2008 19:14:29 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1155#p1155</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing languages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1153#p1153</link>
			<description><![CDATA[<p>Hi, I&#039;ve just finished the dutch translation and posted a message about it on the language-topic.</p><p>However, I think I have the same problem as user nicafyl. The translation works fine on my local PC (USBWebserver) but not on 2 different hosted websites - one with PHP 4 and one with PHP 5.</p><p>I think there is a php-parameter that prevents the translation....&nbsp; Anyone knows how to tackle this problem ?</p>]]></description>
			<author><![CDATA[null@example.com (MorkvonOrk)]]></author>
			<pubDate>Thu, 18 Sep 2008 17:54:49 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1153#p1153</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing languages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1133#p1133</link>
			<description><![CDATA[<p>Keep in mind that it is not enough to recode messages .po /.mo to utf-8. You should also declare proper encoding in installed_languages.php. If all three encodings are utf-8 (system locale, messages.mo and installed_languages.php entry) I have no more idea on that issue.</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Sat, 13 Sep 2008 14:46:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1133#p1133</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing languages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1059#p1059</link>
			<description><![CDATA[<p>BTW, it didn&#039;t work/solve the problem. I am going to take &quot;an intellectual vacation&quot;.</p>]]></description>
			<author><![CDATA[null@example.com (nicafyl)]]></author>
			<pubDate>Thu, 04 Sep 2008 19:15:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1059#p1059</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing languages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1058#p1058</link>
			<description><![CDATA[<p>Actually, you got it. I had thought about this realizing that es_MX is iso-8859-1 but all the locales are UTF-8. But, I then mistakenly wrote this off as English was working. But, English doesn&#039;t need a locale/gettext.</p><p>So, if I convert es_MX to UTF-8, all should be well.</p>]]></description>
			<author><![CDATA[null@example.com (nicafyl)]]></author>
			<pubDate>Thu, 04 Sep 2008 16:47:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1058#p1058</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing languages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1055#p1055</link>
			<description><![CDATA[<p>What about the locales ? I&#039;ve checked it on my installation, that without proper locales installed the gettext simply fails silently. For example I use pl_PL messages with no probnlem, but when I copy lang/pl_PL file to e.g. lang/xx_XX and make respective addition in installed_languages.php the xx_XX language doesn&#039;t work. Locales are defined in debian together with encoding e.g. pl_PL.ISO-8859-2 or es_MX.ISO-8859-1. Then if you declare improper encoding the gettext can also fail. You can list all installed locales with<br />&nbsp; &nbsp; locale -a<br />Then compare it with your FA settings.</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 04 Sep 2008 16:08:30 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1055#p1055</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing languages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1046#p1046</link>
			<description><![CDATA[<p>Ok, I give. After finding nothing obvious on the local Kubuntu setup I decided to listall on shared hosting at site5 where I run lots of other stuff. Everything seems to have installed fine. I added the es_MX.mo and es_MX.po files through the GUI. No errors. Created a new user with Spanish as their default. When I log on as that user it says they are in Spanish but everything is still English. I haven&#039;t done a thorough permissions search--just looked in the apache log and find no errors. As it works just like it did on Kubuntu, um, clearly I just need a lobotomy.</p>]]></description>
			<author><![CDATA[null@example.com (nicafyl)]]></author>
			<pubDate>Thu, 04 Sep 2008 00:19:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1046#p1046</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing languages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1042#p1042</link>
			<description><![CDATA[<p>Ok, I think we are getting close. I don&#039;t have the answer yet but my current guess is that the problem is that all the locales are UTF-8 and (I think) the es_MX file is iso-8559-1. If it isn&#039;t then I just guessed wrong when I uploaded it. In any case, I think I am on the right track. Can&#039;t do much until this evening as the computer is in use right now.</p>]]></description>
			<author><![CDATA[null@example.com (nicafyl)]]></author>
			<pubDate>Wed, 03 Sep 2008 15:13:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1042#p1042</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing languages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1041#p1041</link>
			<description><![CDATA[<p>Yes, you are right, all seems right although if you have gettext installed, the write access is not needed as the php file is not created at all. </p><p>Have you locales-all package or simply locales for es_MX installed ? This is also required to use gettext.</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Wed, 03 Sep 2008 14:50:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1041#p1041</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing languages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1036#p1036</link>
			<description><![CDATA[<p>Let&#039;s look at this again. Here is the current ls -lRa. Unless I am blind, everything in this tree is either owned by www-data and www-data has write permission or it is in group www-data and the www-data group has write permission.</p><p>drwxrwxr-x&nbsp; 5 fyl&nbsp; &nbsp; &nbsp; www-data 4096 Sep&nbsp; 1 18:01 .<br />drwxrwxr-x 23 fyl&nbsp; &nbsp; &nbsp; www-data 4096 Sep&nbsp; 1 18:19 ..<br />drwxrwxr-x&nbsp; 3 fyl&nbsp; &nbsp; &nbsp; www-data 4096 Sep&nbsp; 1 17:13 en_US<br />drwxrwxr-x&nbsp; 3 www-data www-data 4096 Sep&nbsp; 1 18:01 es_MX<br />-rwxrwxr-x&nbsp; 1 fyl&nbsp; &nbsp; &nbsp; www-data&nbsp; &nbsp;46 Mar 21&nbsp; 2007 index.php<br />-rwxrwxr-x&nbsp; 1 fyl&nbsp; &nbsp; &nbsp; www-data&nbsp; 699 Sep&nbsp; 1 18:01 installed_languages.inc<br />drwxrwxr-x&nbsp; 3 fyl&nbsp; &nbsp; &nbsp; www-data 4096 Sep&nbsp; 1 17:13 new_language_template</p><p>./en_US:<br />total 16<br />drwxrwxr-x 3 fyl www-data 4096 Sep&nbsp; 1 17:13 .<br />drwxrwxr-x 5 fyl www-data 4096 Sep&nbsp; 1 18:01 ..<br />drwxrwxr-x 2 fyl www-data 4096 Sep&nbsp; 1 17:13 LC_MESSAGES<br />-rwxrwxr-x 1 fyl www-data&nbsp; 853 Jun&nbsp; 6 09:12 stylesheet.css</p><p>./en_US/LC_MESSAGES:<br />total 12<br />drwxrwxr-x 2 fyl www-data 4096 Sep&nbsp; 1 17:13 .<br />drwxrwxr-x 3 fyl www-data 4096 Sep&nbsp; 1 17:13 ..<br />-rwxrwxr-x 1 fyl www-data&nbsp; 797 Apr 13 15:56 en_US.mo</p><p>./es_MX:<br />total 12<br />drwxrwxr-x 3 www-data www-data 4096 Sep&nbsp; 1 18:01 .<br />drwxrwxr-x 5 fyl&nbsp; &nbsp; &nbsp; www-data 4096 Sep&nbsp; 1 18:01 ..<br />drwxrwxrwx 2 www-data www-data 4096 Sep&nbsp; 1 18:01 LC_MESSAGES</p><p>./es_MX/LC_MESSAGES:<br />total 556<br />drwxrwxrwx 2 www-data www-data&nbsp; &nbsp;4096 Sep&nbsp; 1 18:01 .<br />drwxrwxr-x 3 www-data www-data&nbsp; &nbsp;4096 Sep&nbsp; 1 18:01 ..<br />-rw-r--r-- 1 www-data www-data 130652 Sep&nbsp; 1 18:01 es_MX.mo<br />-rw-r--r-- 1 www-data www-data 419946 Sep&nbsp; 1 18:01 es_MX.po</p><p>./new_language_template:<br />total 16<br />drwxrwxr-x 3 fyl www-data 4096 Sep&nbsp; 1 17:13 .<br />drwxrwxr-x 5 fyl www-data 4096 Sep&nbsp; 1 18:01 ..<br />drwxrwxr-x 2 fyl www-data 4096 Sep&nbsp; 1 17:13 LC_MESSAGES<br />-rwxrwxr-x 1 fyl www-data&nbsp; 853 Jan 15&nbsp; 2004 stylesheet.css</p><p>./new_language_template/LC_MESSAGES:<br />total 532<br />drwxrwxr-x 2 fyl www-data&nbsp; &nbsp;4096 Sep&nbsp; 1 17:13 .<br />drwxrwxr-x 3 fyl www-data&nbsp; &nbsp;4096 Sep&nbsp; 1 17:13 ..<br />-rwxrwxr-x 1 fyl www-data 531542 Apr&nbsp; 7 02:26 empty.po</p><p>So, that rules out a permission problem assuming apache is running as www-data in group www-data. From ps -g www-data or ps -u www-data, I get:<br />&nbsp; PID TTY&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TIME CMD<br /> 7276 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 apache2<br /> 7277 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 apache2<br /> 7278 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 apache2<br /> 7279 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 apache2<br /> 7280 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 apache2<br /> 7281 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 apache2<br /> 7282 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 apache2<br /> 9013 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 apache2<br /> 9014 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 apache2<br /> 9015 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 apache2</p><p>Is gettext installed?<br />&nbsp; gettext is /usr/bin/gettext</p><p>from php5 -m, gettext is in the list. But, of course, that is shell php5. So, finally, from a phpinfo(); call, I get<br />&nbsp; &nbsp; GetText Support&nbsp; &nbsp;enabled</p><p>So, what am I missing/not checking?</p>]]></description>
			<author><![CDATA[null@example.com (nicafyl)]]></author>
			<pubDate>Tue, 02 Sep 2008 21:54:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1036#p1036</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing languages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1034#p1034</link>
			<description><![CDATA[<p>The problem is the LC_MESSAGES folder is owned by fyl, not www-data, so server have no write access to it.<br />But if you have admin access to your server you can simply install gettext package. This is much better choice than fallback php solution. Otherwise try to set write permissions to 777 for the lang/es_MX/LC_MESSAGES folder.</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Tue, 02 Sep 2008 20:10:08 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1034#p1034</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing languages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1031#p1031</link>
			<description><![CDATA[<p>I tried. No change, no file created. I am sure there is something obvious here but I sure don&#039;t see it.</p>]]></description>
			<author><![CDATA[null@example.com (nicafyl)]]></author>
			<pubDate>Tue, 02 Sep 2008 14:21:42 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1031#p1031</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing languages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1030#p1030</link>
			<description><![CDATA[<p>Try to give full privilegies on /es_MX/LC_MESSAGES folder (write enable). If gettext is not installed, then PHP will create a .php file to use for the language.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 02 Sep 2008 13:35:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1030#p1030</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing languages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1029#p1029</link>
			<description><![CDATA[<p>I figure I must be missing something obvious.</p><p>Here is what is in /var/www/actg/lang/installed_languages.inc<br />$installed_languages = array (<br />&nbsp; &nbsp; &nbsp; &nbsp; 0 =&gt; array (&#039;code&#039; =&gt; &#039;en_GB&#039;, &#039;name&#039; =&gt; &#039;English&#039;, &#039;encoding&#039; =&gt; &#039;iso-8<br />859-1&#039;),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array (&#039;code&#039; =&gt; &#039;en_US&#039;, &#039;name&#039; =&gt; &#039;English (US)&#039;, &#039;encoding&#039; =<br />&gt; &#039;iso-8859-1&#039;),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array (&#039;code&#039; =&gt; &#039;es_MX&#039;, &#039;name&#039; =&gt; &#039;Spanish (MX)&#039;, &#039;encoding&#039; =<br />&gt; &#039;iso-8859-1&#039;),<br />&nbsp; &nbsp; &nbsp; &nbsp; );</p><p>Here is what an ls -lr from /var/www/actg/lang shows:<br />drwxrwxr-x 3 fyl&nbsp; &nbsp; &nbsp; www-data 4096 Sep&nbsp; 1 17:13 new_language_template<br />-rwxrwxr-x 1 fyl&nbsp; &nbsp; &nbsp; www-data&nbsp; 699 Sep&nbsp; 1 18:01 installed_languages.inc<br />-rwxrwxr-x 1 fyl&nbsp; &nbsp; &nbsp; www-data&nbsp; &nbsp;46 Mar 21&nbsp; 2007 index.php<br />drwxr-xr-x 3 www-data www-data 4096 Sep&nbsp; 1 18:01 es_MX<br />drwxrwxr-x 3 fyl&nbsp; &nbsp; &nbsp; www-data 4096 Sep&nbsp; 1 17:13 en_US<br />fyl@paraguay:/var/www/actg/lang$ ls -lR<br />.:<br />total 20<br />drwxrwxr-x 3 fyl&nbsp; &nbsp; &nbsp; www-data 4096 Sep&nbsp; 1 17:13 en_US<br />drwxr-xr-x 3 www-data www-data 4096 Sep&nbsp; 1 18:01 es_MX<br />-rwxrwxr-x 1 fyl&nbsp; &nbsp; &nbsp; www-data&nbsp; &nbsp;46 Mar 21&nbsp; 2007 index.php<br />-rwxrwxr-x 1 fyl&nbsp; &nbsp; &nbsp; www-data&nbsp; 699 Sep&nbsp; 1 18:01 installed_languages.inc<br />drwxrwxr-x 3 fyl&nbsp; &nbsp; &nbsp; www-data 4096 Sep&nbsp; 1 17:13 new_language_template</p><p>./en_US:<br />total 8<br />drwxrwxr-x 2 fyl www-data 4096 Sep&nbsp; 1 17:13 LC_MESSAGES<br />-rwxrwxr-x 1 fyl www-data&nbsp; 853 Jun&nbsp; 6 09:12 stylesheet.css</p><p>./en_US/LC_MESSAGES:<br />total 4<br />-rwxrwxr-x 1 fyl www-data 797 Apr 13 15:56 en_US.mo</p><p>./es_MX:<br />total 4<br />drwxr-xr-x 2 www-data www-data 4096 Sep&nbsp; 1 18:01 LC_MESSAGES</p><p>./es_MX/LC_MESSAGES:<br />total 548<br />-rw-r--r-- 1 www-data www-data 130652 Sep&nbsp; 1 18:01 es_MX.mo<br />-rw-r--r-- 1 www-data www-data 419946 Sep&nbsp; 1 18:01 es_MX.po</p><p>./new_language_template:<br />total 8<br />drwxrwxr-x 2 fyl www-data 4096 Sep&nbsp; 1 17:13 LC_MESSAGES<br />-rwxrwxr-x 1 fyl www-data&nbsp; 853 Jan 15&nbsp; 2004 stylesheet.css</p><p>./new_language_template/LC_MESSAGES:<br />total 524<br />-rwxrwxr-x 1 fyl www-data 531542 Apr&nbsp; 7 02:26 empty.po</p><p>No errors from debug or in the apache log.</p>]]></description>
			<author><![CDATA[null@example.com (nicafyl)]]></author>
			<pubDate>Tue, 02 Sep 2008 12:29:24 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1029#p1029</guid>
		</item>
	</channel>
</rss>
