[Kbabel] Adding Arabic to Automatic Detection of Plural Forms

Stanislav Visnovsky visnovsky@nenya.ms.mff.cuni.cz
Mon, 17 Feb 2003 11:27:46 +0100 (CET)


Hi!

I've implemented an option for ignoring %n. Will be in 1.2beta2.

Stanislav

On Thu, 7 Nov 2002, Isam Bayazidi wrote:

> On Thursday 07 November 2002 13:14, Stanislav Visnovsky wrote:
> > > I want to know how can I define the number of Plural Forms for Arabic ..
> > > what file in the Kbabel Source Tree contains these definitions ?
> >
> > Now I see: it's in common/catalog.cpp
> > Catalog::getNumberOfPluralForms(const QString& lang).
> >
> > Please, try the attached patch.
> 
> It does the trick .. Now Kbabel will automatically detect the number of Plural 
> Forms for Arabic .. thanks .. I suppose that it will be merged to the main 
> tree soon ..
> 
> Now anther probelm related to Plural Forms rise:
> - Strings with Plural Forms had been always detected as Faulty in terms of 
> Arguments Check .. As you know with Plural Forms you will repeat arguments 
> for every plural form:
> "_n: %1 of 1 Image loaded.\n
> %1 of %n Images loaded..."
> 
> In it's translation for Arabic the %n will be repeated 2 times, while %1 will 
> be repeated 4 times ( no need to go through details of the plural forms of 
> Arabic) .. and I suppose that the case could be the same for other languages 
> ..
> 
> a Simple thing to do is to bypass Plural Forms Strings when doing the 
> Arguments Check .. as they do not comply to 1:1 ratio of arguments between 
> original string and translated string .. and at the same time it is not 
> always 1:1*n ( while n is the number of plural forms for the language) 
> specially for the argument %n that does not necessarily repeat ..
> 
> 
> Yours
> Isam Bayazidi
> 
> 
> _______________________________________________
> Kbabel mailing list
> Kbabel@mail.kde.org
> http://mail.kde.org/mailman/listinfo/kbabel
> 

--