[Kbabel] Adding Arabic to Automatic Detection of Plural Forms

Stanislav Visnovsky visnovsky@nenya.ms.mff.cuni.cz
Thu, 7 Nov 2002 12:14:49 +0100 (CET)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--1908640017-1493167710-1036667689=:4112
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Thu, 7 Nov 2002, Isam Bayazidi wrote:

> (PS: Please CC me in the answers, I am not in the kbabel list) 
> 
> Hi there ..
> I've sent a message before to the Kbabel Developers about this question .. but 
> it seems that I was not clear about what I want ..
> When I go to the "Configure Kbabel" > Identity : and set the Language Code to 
> "AR" and set the Number to Plural Forms to "Automatic" I get this message:
> "It is not possible to find out the number of singular/plural forms 
> automatically for the language code "AR".
> Do you have kdelibs.po installed for this language?
> Please set the correct number manually."
> 
> 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.

Stanislav


--1908640017-1493167710-1036667689=:4112
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="fixautomatic.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.44.0211071214490.4112@nenya.ms.mff.cuni.cz>
Content-Description: 
Content-Disposition: attachment; filename="fixautomatic.diff"

SW5kZXg6IGNhdGFsb2cuY3BwDQo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpS
Q1MgZmlsZTogL2hvbWUva2RlL2tkZXNkay9rYmFiZWwvY29tbW9uL2NhdGFs
b2cuY3BwLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS44Mg0KZGlmZiAtdSAt
MyAtcCAtcjEuODIgY2F0YWxvZy5jcHANCi0tLSBjYXRhbG9nLmNwcAkyMDAy
LzA5LzEwIDA0OjAzOjIwCTEuOD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