<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Hard-coded problems in reports for translation]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3702&amp;type=atom" />
	<updated>2013-01-05T05:11:38Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=3702</id>
		<entry>
			<title type="html"><![CDATA[Re: Hard-coded problems in reports for translation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14871#p14871" />
			<content type="html"><![CDATA[<p>Thanks Joe for Changesets 3127/3131 addressing this problem. It however needs an entry in the empty.po file. Attempting to reconstruct the empty.po afresh yielded a file that is 341KB as against the current one in the fa repo that is 359KB. There are a lot of legacy entries with wrong filenames and line numbers in the repo one.</p><p>The shell script to generate the empty.po file I wrote is:<br /></p><div class="codebox"><pre><code>#!/bin/bash
 
FRONTACFILE=FrontAc_default_Mer_3127_2012-12-20.tar.gz
WEBROOT=/var/www/frontac
 
mkdir -p $WEBROOT
cd $WEBROOT
 
wget http://www.apmuthu.com/bugfixes/$FRONTACFILE
tar -xzf $FRONTACFILE
rm -f $FRONTACFILE
 
MAINDIR=`pwd`/
 
# Generate the main empty.po file
 
TPL=lang/new_language_template/LC_MESSAGES/empty
GTEXEC=&quot;xgettext  -d empty --language=PHP  --from-code=ISO-8859-1 \
                  -p $MAINDIR/lang/new_language_template/LC_MESSAGES &quot;
 
# Backup the old main empty.po
mv $MAINDIR/$TPL.po $MAINDIR/$TPL.po.org
 
# Generate main header as well
$GTEXEC -k_ -n *.php
 
# set the charset
sed -i &#039;s/charset=CHARSET/charset=ISO-8859-1/g&#039; $MAINDIR/$TPL.po
 
 
mv install ..
 
$GTEXEC -k_ -n -j */*.php
$GTEXEC -k_ -n -j */*/*.php
$GTEXEC -k_ -n -j */*/*/*.php
$GTEXEC -k_ -n -j */*.inc
$GTEXEC -k_ -n -j */*/*.inc
$GTEXEC -k_ -n -j */*/*/*.inc
 
mv ../install .
 
# Generate the install empty.po file
 
TPL=install/lang/new_language_template/LC_MESSAGES/empty
GTEXEC=&quot;xgettext  -d empty --language=PHP  --from-code=ISO-8859-1 \
                  -p $MAINDIR/install/lang/new_language_template/LC_MESSAGES &quot;
 
# Backup the old install empty.po
mv $MAINDIR/$TPL.po $MAINDIR/$TPL.po.org
 
# Generate install header as well
$GTEXEC -k_ -n install/*.php
 
# set the charset
sed -i &#039;s/charset=CHARSET/charset=ISO-8859-1/g&#039; $MAINDIR/$TPL.po
 
$GTEXEC -k_ -n -j install/*.inc
$GTEXEC -k_ -n -j includes/system_tests.inc
$GTEXEC -k_ -n -j includes/packages.inc</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-01-05T05:11:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14871#p14871</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hard-coded problems in reports for translation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14842#p14842" />
			<content type="html"><![CDATA[<p>Joe / Apmuthu, thnx for your suggestions.</p><br /><div class="quotebox"><cite>joe wrote:</cite><blockquote><p>@erwindebruin<br />Will the work <strong>into</strong> be sufficient?</p><p>/Joe</p></blockquote></div><br /><p>Yes into, would be sufficient.</p>]]></content>
			<author>
				<name><![CDATA[erwindebruin]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=4582</uri>
			</author>
			<updated>2013-01-03T08:45:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14842#p14842</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hard-coded problems in reports for translation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14839#p14839" />
			<content type="html"><![CDATA[<p>@erwindebruin<br />Will the work <strong>into</strong> be sufficient?</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-01-03T07:17:36Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14839#p14839</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hard-coded problems in reports for translation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14833#p14833" />
			<content type="html"><![CDATA[<p>Will <em>deposit <strong>in</strong> bank</em> suffice or possibly <em>deposit <strong>with</strong> bank</em> or <em>deposit <strong>into</strong> bank</em> ?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-01-03T02:32:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14833#p14833</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hard-coded problems in reports for translation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14831#p14831" />
			<content type="html"><![CDATA[<p>Regarding your first issue, it is possible to use a hook extension. I am not sure how it works. Janusz has changed the way itshould be used. Maybe he sees this and can give you a hint about this.</p><p>Regarding your last issue it should be included in a sentence. I am not sure about how to solve this.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-01-02T22:07:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14831#p14831</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Hard-coded problems in reports for translation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14825#p14825" />
			<content type="html"><![CDATA[<p>First all the best wishes for 2013!</p><p>During optimalizing the Ducth language translation files I experienced some hard-coded problems... Is it possible to fix this problems in a new release?</p><br /><p>[../reporting/reports_main.php?Class=0&amp;REP_ID=112]</p><p>The amount recieved decribed in words is hard-coded/written in English. No translation is possible (example Hundred and Ninety-Nine and 99/100).</p><br /><p>[../gl/gl_bank.php?NewDeposit=Yes]</p><p>The English word &quot;to&quot; is used at several places, by example in selecting dates (1 january 2012 TO 31 december 2012)&nbsp; and in the bankdeposit entry screen (deposit TO bank XYZ). In both situations another dutch word is used (&quot;tot&quot; and &quot;op&quot; / &quot;aan&quot;). I now cannot give an individual translation for these cases, because the word &quot;to&quot; is linked to both situations in FA. Maybe is it possible to program a duplicate word &quot;to&quot; in the language file for the deposit screen, so it is possible to assign a different translation? I know in the language French and German this problem also must exists and could be solved by this solution.</p><p>Thnx.</p>]]></content>
			<author>
				<name><![CDATA[erwindebruin]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=4582</uri>
			</author>
			<updated>2013-01-01T21:58:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14825#p14825</id>
		</entry>
</feed>
