<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<P style="MARGIN: 0px"><FONT face=Arial color=#0000ff size=2></FONT> </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"><FONT face=Arial color=#0000ff size=2></FONT> </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"><FONT face=Arial color=#0000ff size=2></FONT> </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></BLOCKQUOTE>
<P dir=ltr><SPAN class=765510509-31082011><FONT face=Arial color=#0000ff
size=2>c) appears the most logical. The format is </FONT></SPAN><SPAN
class=765510509-31082011><FONT face=Arial color=#0000ff
size=2><lang>_<territory>.<codeset>. So the search should be
<lang>_<territory>.<codeset><SPAN
class=765510509-31082011><FONT face=Arial color=#0000ff size=2>, <SPAN
class=765510509-31082011><FONT face=Arial color=#0000ff
size=2><lang>_<territory> and then <lang><SPAN
class=765510509-31082011><FONT face=Arial color=#0000ff
size=2>.</FONT></SPAN></FONT></SPAN></FONT></SPAN></FONT></SPAN></P>
<P dir=ltr><SPAN class=765510509-31082011><FONT face=Arial color=#0000ff
size=2><SPAN class=765510509-31082011><FONT face=Arial color=#0000ff
size=2><SPAN class=765510509-31082011><FONT face=Arial color=#0000ff
size=2><SPAN class=765510509-31082011>Ludo
</SPAN></FONT></SPAN></FONT></SPAN></FONT></SPAN></P>
<P dir=ltr><SPAN class=765510509-31082011><FONT face=Arial color=#0000ff
size=2><SPAN class=765510509-31082011><FONT face=Arial color=#0000ff
size=2><SPAN class=765510509-31082011><FONT face=Arial color=#0000ff
size=2><SPAN
class=765510509-31082011></SPAN></FONT></SPAN></FONT></SPAN></FONT></SPAN> </P></BODY></HTML>