Alaa's picture
Submitted by Alaa on Fri, 11/06/2004 - 15:50.

ok folks I figured out the plural forms thing.

in gettext you can specify how many plural forms exist in your language, in arabic we have three (مفرد، مثنى، جمع) you need to specify that in the po file headers.

if you don't the file is considered broken.

if you're using kbabel go to settings -> configure kbabel

and make Number of singluar/plural forms equal 3

then in the GNU plural form header add

nplurals=3; plural=n==1 ? 0 : n==2 ? 1 : 2;

if you're not using kbabel you can edit the header manualy, open the po file in a text editor, find the plural form line and change it to look like this

"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n==2 ? 1 : 2;\n"

cheers, Alaa


http://www.manalaa.net


Reply





*

  • Allowed HTML tags: <a> <b> <dd> <dl> <dt> <i> <li> <ol> <ul> <pre> <blockquote> <img> <ins> <del> <br> <div> <span> <em> <h1> <h2> <h3> <h4> <h5> <h6> <code> <p> <hr>
  • You can insert tables with comma separated values (CSV) into the text, they will be automatically converted to appropriate HTML-tables.
  • You may link to images on this site using a special syntax
  • WikiText is converted to HTML (supported WikiText formatting will show in the long tip format).
  • You may write mixed Arabic and English freely, line direction will be computed automaticaly
  • Glossary terms will be automatically marked with links to their descriptions