<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
</head>
<body>
<p style="margin: 0;">
<span>
<span></span>
</span>
</p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px 5px 0px;">
<br/>
Graeme Geldenhuys <graemeg.lists@gmail.com> hat am 31. August 2011 um 10:23 geschrieben:
<br/>
<br/>
> Hi,
<br/>
>
<br/>
> I have changed my System and Gnome language settings to Afrikaans. I
<br/>
> logged out and then back it to ensure the language change is correct.
<br/>
> My whole Gnome desktop and GTK2 applications (gEdit, Firefox,
<br/>
> OpenOffice etc) are now all in Afrikaans.
<br/>
>
<br/>
> Unfortunately Lazarus IDE isn't. I have the language set to
<br/>
> Automatic, but it still defaults to English. I can force it to
<br/>
> Afrikaans, but what's the point of the Automatic setting then?
<br/>
>
<br/>
> Here is some console output to confirm Afrikaans is my language, and
<br/>
> the command line I use to startup Lazarus. This example shows me using
<br/>
> Lazarus 0.9.30.1, but the problem also exists with the latest Trunk
<br/>
> version of Lazarus.
<br/>
>
<br/>
> -------------------------------------
<br/>
>
<br/>
> $ echo $LANG
<br/>
> af_ZA.utf8
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">The LCL uses the gettext GetLanguageIDs function which returns the two values 'af' and 'af_ZA.utf8', so the translator searches for file.af.po and file.af_ZA.utf8.po.</p>
<p style="margin: 0px;">AFAIK it worked that way since many years.</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">I wonder, why has no one noticed the broken af_ZA, pt_BR, zh_CN translations under Linux yet? </p>
<p style="margin: 0px;"> </p>
<p>That's why I'm not sure where to fix it:</p>
<p style="margin: 0px;">a) Rename the Lazarus language files - might break under windows </p>
<p style="margin: 0px;">b) or strip the utf8 - might break existing applications</p>
<p style="margin: 0px;">c) or extend the LCL translator to search additionally without '.utf8'. </p>
<p style="margin: 0px;">Mattias</p>
<p> </p>
</body>
</html>