I can tell you that languages can be so different that even simple<br>assumptions are no longer valid. <br><br>For example, most languages in Europe have a singular and plural,<br>at least those of Indo European origin. For English, adding "s" or "es"
<br>is sufficient in most cases, and if you want to do a porter stemmer,<br>you take that out (oversimplifying, but you get the idea).<br><br>In Arabic, there is singular, dual and plural. And then there is masculine<br>and feminine version of each of those. So the assumptions made for
<br>English no longer carries over well to Arabic. <br><br><div><span class="gmail_quote">On 5/3/07, <b class="gmail_sendername">Walt Daniels</b> <<a href="mailto:wdlists@optonline.net">wdlists@optonline.net</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I doubt if the "th" concept even exists in many languages. Not being a<br>language scholar I can't give explicit examples. It is usually possible to
<br>word messages so you don't use the "th" concept. This seems like a better<br>approach.<br><br>-----Original Message-----<br>From: <a href="mailto:development-bounces@drupal.org">development-bounces@drupal.org
</a> [mailto:<a href="mailto:development-bounces@drupal.org">development-bounces@drupal.org</a>]<br>On Behalf Of Earnie Boyd<br>Sent: Thursday, May 03, 2007 8:56 AM<br>To: <a href="mailto:development@drupal.org">development@drupal.org
</a><br>Subject: Re: [development] Translatable strings for 1st/2nd/3rd/nth<br><br>Quoting Chris Kennedy <<a href="mailto:chrisken@mail.utexas.edu">chrisken@mail.utexas.edu</a>>:<br><br>> Does anyone have suggestions for creating translatable strings for
<br>rankings?<br>><br>> I need to generate strings for 1st/2nd/3rd/4th/etc. ideally without a<br>> limit, but don't know of a simple translatable solution.<br>><br>> Right now I just have individual t() strings for 1st/2nd/3rd, then a
<br>> blanket t($i .'th') for the rest, under the untested theory that<br>> translators could manually add translations for Nth into their .po<br>> files up to a reasonable limit. I realize that this will not work for
<br>> extractor.php purposes and is English-centric.<br>><br>> Thoughts?<br>><br><br>Are there existing math libraries that might help? Simple solution might be<br>a SQL table that you add the exceptions to 'th' to. So the translation for
<br>1 would contain 1st and the translation for 2 would 2nd and your 'th'<br>default would be suffixed for everything else.<br><br>Earnie<br><br><br>--<br>No virus found in this incoming message.<br>Checked by AVG Free Edition.
<br>Version: 7.5.467 / Virus Database: 269.6.2/785 - Release Date: 5/2/2007 2:16<br>PM<br><br><br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://2bits.com">2bits.com</a><br><a href="http://2bits.com">http://2bits.com
</a><br>Drupal development, customization and consulting.