<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Changing languages]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=235&amp;type=atom" />
	<updated>2008-09-18T21:46:08Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=235</id>
		<entry>
			<title type="html"><![CDATA[Re: Changing languages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1156#p1156" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[MorkvonOrk]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=215</uri>
			</author>
			<updated>2008-09-18T21:46:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1156#p1156</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing languages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1155#p1155" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2008-09-18T19:14:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1155#p1155</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing languages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1153#p1153" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[MorkvonOrk]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=215</uri>
			</author>
			<updated>2008-09-18T17:54:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1153#p1153</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing languages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1133#p1133" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2008-09-13T14:46:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1133#p1133</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing languages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1059#p1059" />
			<content type="html"><![CDATA[<p>BTW, it didn&#039;t work/solve the problem. I am going to take &quot;an intellectual vacation&quot;.</p>]]></content>
			<author>
				<name><![CDATA[nicafyl]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=191</uri>
			</author>
			<updated>2008-09-04T19:15:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1059#p1059</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing languages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1058#p1058" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[nicafyl]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=191</uri>
			</author>
			<updated>2008-09-04T16:47:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1058#p1058</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing languages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1055#p1055" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2008-09-04T16:08:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1055#p1055</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing languages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1046#p1046" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[nicafyl]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=191</uri>
			</author>
			<updated>2008-09-04T00:19:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1046#p1046</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing languages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1042#p1042" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[nicafyl]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=191</uri>
			</author>
			<updated>2008-09-03T15:13:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1042#p1042</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing languages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1041#p1041" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2008-09-03T14:50:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1041#p1041</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing languages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1036#p1036" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[nicafyl]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=191</uri>
			</author>
			<updated>2008-09-02T21:54:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1036#p1036</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing languages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1034#p1034" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2008-09-02T20:10:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1034#p1034</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing languages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1031#p1031" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[nicafyl]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=191</uri>
			</author>
			<updated>2008-09-02T14:21:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1031#p1031</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing languages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1030#p1030" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2008-09-02T13:35:20Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1030#p1030</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing languages]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1029#p1029" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[nicafyl]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=191</uri>
			</author>
			<updated>2008-09-02T12:29:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1029#p1029</id>
		</entry>
</feed>
