<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Change display language from English to another]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5993</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5993&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Change display language from English to another.]]></description>
		<lastBuildDate>Sun, 01 Nov 2015 12:50:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Change display language from English to another]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24603#p24603</link>
			<description><![CDATA[<p><s>Hence gettext is compiled natively into the PHP in your XAMPP version.</s></p><p>When gettext is disabled in php.ini (especially needed in windows 5.3.0 to 5.3.5), <strong>php_gettext_support</strong> takes over and the .po files get parsed into .php files with same lang name containing the translated stings array.</p><p>The php_gettext library is not needed as it&#039;s functionality is already in the <strong>includes/lang/gettext.php</strong> file.</p><p>In this array based translation, some strings will not be present if the .po file has &quot;\n&quot; in the index of the string and it spans several lines. One such example in the .po file would be the string:<br /></p><div class="codebox"><pre><code>#: admin/backups.php:195
msgid &quot;&quot;
&quot;You are about to restore database from backup file.\n&quot;
&quot;Do you want to continue?&quot;
msgstr &quot;&quot;
&quot;Zamierzasz odtworzyæ bazê danych z pliku.\n&quot;
&quot; Czy chcesz kontynuowaæ?&quot;</code></pre></div><p>It will get translated in the array if it is corrected to be:<br /></p><div class="codebox"><pre><code>#: admin/backups.php:195
msgid &quot;You are about to restore database from backup file.\nDo you want to continue?&quot;
msgstr &quot;Zamierzasz odtworzyæ bazê danych z pliku.\n Czy chcesz kontynuowaæ?&quot;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 01 Nov 2015 12:50:37 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24603#p24603</guid>
		</item>
		<item>
			<title><![CDATA[Re: Change display language from English to another]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24601#p24601</link>
			<description><![CDATA[<p>Thank you very much for your help.</p><p>It work now for me</p><p>I just change the PHP.ini file (one line)</p><p>from<br />extension=php_gettext.dll<br />to<br />;extension=php_gettext.dll</p>]]></description>
			<author><![CDATA[null@example.com (aRTx)]]></author>
			<pubDate>Sun, 01 Nov 2015 08:41:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24601#p24601</guid>
		</item>
		<item>
			<title><![CDATA[Re: Change display language from English to another]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24591#p24591</link>
			<description><![CDATA[<p>On your popular hosting server, make sure the locale for the language you need is installed in the operating system on the host box by your sysadmin first.</p><p>The <a href="https://github.com/apmuthu/frontaccounting/tree/master/extensions/Languages/ta_IN">Tamil language</a> translation is only a partial one (just over 11%) since most Tamil people can understand <strong>username</strong> instead of it&#039;s more complex translated equivalent (transliterated) &quot;Payanar Payir&quot; - பயனர் பெயர். Anyway, this string is in the translation .mo file.</p><p>You can use it as a basis for filling in the full .po file and compiling the .mo file and using it. </p><p>Most languages supported in FA have fewer translations than Tamil in my repo. You can compute the % translation of any language by parsing the .po files obtained from the decompiled .mo files for translated strings instead of relying on the full .po files in the repo.</p><p>Wonder why it is not being included in the official repo (@joe: <img src="https://frontaccounting.com/punbb/img/smilies/wink.png" width="15" height="15" alt="wink" /> ?) !</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 31 Oct 2015 05:59:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24591#p24591</guid>
		</item>
		<item>
			<title><![CDATA[Re: Change display language from English to another]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24585#p24585</link>
			<description><![CDATA[<p>for Tamil Transalations i saw your language. but its not working fully. I mean the things you applied. but that brings few texts. not the whole thing.&nbsp; say for example it retrieves translation for the pass word. but not working for the username. </p><p>like most of the things not working</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sat, 31 Oct 2015 05:02:16 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24585#p24585</guid>
		</item>
		<item>
			<title><![CDATA[Re: Change display language from English to another]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24584#p24584</link>
			<description><![CDATA[<p>Yes,</p><p>Sorry for the delayed response. Actually gettext is working. and no need to hook it again.&nbsp; and my php is 5.6.3</p><p>and its windows 8 64x </p><p>the thing is its not working on the popular hosting server too.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sat, 31 Oct 2015 04:54:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24584#p24584</guid>
		</item>
		<item>
			<title><![CDATA[Re: Change display language from English to another]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24574#p24574</link>
			<description><![CDATA[<p>Even after installing the necessary locales in Windows (before starting Apache) if you cannot get gettext to work for locales other than the default one, then use the php-gettext workaround. <br />1. Disable the gettext extension in the php.ini file.<br />2. Restart Apache.<br />3. upload the files in the attachment into the FA webroot - your index.php will get overwritten too. If you would like to manually patch the index.php, then make the following line the first executable one in your index.php file:<br /></p><div class="codebox"><pre><code>include_once(&quot;gettext.inc&quot;);</code></pre></div><p>Now all standard language files in FA should display. </p><p>Ref: https://launchpad.net/php-gettext</p><p>***** This is not needed anymore - see later post. Just disable gettext extension in php.ini and php_gettext_support takes over.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 28 Oct 2015 19:33:19 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24574#p24574</guid>
		</item>
		<item>
			<title><![CDATA[Re: Change display language from English to another]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24573#p24573</link>
			<description><![CDATA[<p>Windows uses 3 character locale names in (PHP 5.3.1 atleast) alomg with language_Country.encoding format for LC_CTYPE:<br /></p><div class="codebox"><pre><code>&lt;?php
echo setlocale(LC_ALL, 0) . &quot;\n&quot;;
// LC_COLLATE=C;LC_CTYPE=English_United States.1252;LC_MONETARY=C;LC_NUMERIC=C;LC_TIME=C

setlocale(LC_CTYPE, &#039;Bulgarian_Bulgaria.1251&#039;);
echo setlocale(LC_ALL, 0) . &quot;\n&quot;;
// LC_COLLATE=C;LC_CTYPE=Bulgarian_Bulgaria.1251;LC_MONETARY=C;LC_NUMERIC=C;LC_TIME=C

setlocale(LC_CTYPE, &#039;Tamil_India.1252&#039;);
echo setlocale(LC_ALL, 0) . &quot;\n&quot;;
// LC_COLLATE=C;LC_CTYPE=Tamil_India.1252;LC_MONETARY=C;LC_NUMERIC=C;LC_TIME=C

setlocale(LC_ALL, &quot;fra_fra&quot;);
echo strftime(&quot;%A %d %B %Y&quot;, mktime(0, 0, 0, 12, 22, 1978));
/* Output nld_nld: vrijdag 22 december 1978 */
/* Output deu_deu: Freitag 22 Dezember 1978 */
/* Output fra_fra: vendredi 22 décembre 1978 */</code></pre></div><p>Pay attention to the syntax.<br />- UTF8 without dash (&#039;-&#039;)<br />- locale.codeset and not locale-codeset. </p><div class="codebox"><pre><code>&lt;?php
$codeset = &quot;UTF8&quot;;  // warning ! not UTF-8 with dash &#039;-&#039;
       
// for windows compatibility (e.g. xampp) : theses 3 lines are useless for linux systems

putenv(&#039;LANG=&#039;.$lang.&#039;.&#039;.$codeset);
putenv(&#039;LANGUAGE=&#039;.$lang.&#039;.&#039;.$codeset);
bind_textdomain_codeset(&#039;mydomain&#039;, $codeset);

// set locale
bindtextdomain(&#039;mydomain&#039;, ABSPATH.&#039;/locale/&#039;);
setlocale(LC_ALL, $lang.&#039;.&#039;.$codeset);
textdomain(&#039;mydomain&#039;);
?&gt;</code></pre></div><p>where directory structure of locale is (for example) :<br /></p><div class="codebox"><pre><code>locale/fr_FR/LC_MESSAGES/mydomain.mo
locale/en_US/LC_MESSAGES/mydomain.mo</code></pre></div><p>and ABSPATH is the absolute path to the locale dir</p><p>Further note, under linux systems, it seems to be necessary to create the locale at os level using &#039;locale-gen&#039;.</p><p>Ref: <br />http://php.net/manual/en/function.setlocale.php<br />https://msdn.microsoft.com/en-us/library/x99tb11d%28v=vs.140%29.aspx</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 28 Oct 2015 18:28:13 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24573#p24573</guid>
		</item>
		<item>
			<title><![CDATA[Re: Change display language from English to another]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24569#p24569</link>
			<description><![CDATA[<p>In XAMPP it will work only if the gettext() function is available to PHP:<br /></p><div class="codebox"><pre><code>&lt;?php
$func = &quot;gettext&quot;;
if (function_exists($func)) echo &quot;Yes, $func() exists&quot;;
else echo &quot;No, $func() does not exist&quot;;</code></pre></div><p>What do your error logs say?</p><p>Check how your version of windows perceives your locale names:<br />https://bugs.php.net/bug.php?id=66265</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 28 Oct 2015 07:48:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24569#p24569</guid>
		</item>
		<item>
			<title><![CDATA[Re: Change display language from English to another]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24564#p24564</link>
			<description><![CDATA[<p>in XAMPP. its not working, even mine is also not working the language translations sometime.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Tue, 27 Oct 2015 11:55:42 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24564#p24564</guid>
		</item>
		<item>
			<title><![CDATA[Re: Change display language from English to another]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24559#p24559</link>
			<description><![CDATA[<p>Use the <a href="https://github.com/FrontAccountingERP/FA/archive/master.zip">latest snapshot</a> of the stable version.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 26 Oct 2015 21:13:36 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24559#p24559</guid>
		</item>
		<item>
			<title><![CDATA[Re: Change display language from English to another]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24552#p24552</link>
			<description><![CDATA[<p>Did you try it on WAMP.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sun, 25 Oct 2015 12:37:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24552#p24552</guid>
		</item>
		<item>
			<title><![CDATA[Change display language from English to another]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24551#p24551</link>
			<description><![CDATA[<p>Hi there</p><p>I have a new laptop and I have install XAMPP for local use, then I install new fresh FrontAccounting 2.3.24</p><p>I try to change the language from English to another language but it is not working.</p><p>Please checks is it working in the latest version!?</p><p>I try in this way:<br />1. Login as administrator to the default company<br />2. Setup - Install/Update Languages and I have put different language from english.<br />3. Setup - User Accounts Setup - Language and I have seen there is a new language selected<br />4. Preferences - Language - ( there is also new language)<br />6. I logout and Login again but there is no change it is again english.</p><p>Please help ....</p>]]></description>
			<author><![CDATA[null@example.com (aRTx)]]></author>
			<pubDate>Sun, 25 Oct 2015 08:24:11 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24551#p24551</guid>
		</item>
	</channel>
</rss>
