Package translate :: Package lang :: Module ar :: Class ar
[hide private]
[frames] | no frames]

Class ar

source code

   object --+    
            |    
common.Common --+
                |
               ar

This class represents Arabic.

Instance Methods [hide private]

Inherited from common.Common: __init__, __repr__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Methods [hide private]

Inherited from common.Common: capsstart, character_iter, characters, punctranslate, sentence_iter, sentences, word_iter, words

Class Variables [hide private]
  code = 'ar'
The ISO 639 language code, possibly with a country specifier or other modifier.
  fullname = 'Arabic'
The full (English) name of this language.
  nplurals = 6
The number of plural forms of this language.
  pluralequation = 'n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n>=3 && n<=...
The plural equation for selection of plural forms.
  listseperator = u'، '
This string is used to seperate lists of textual elements.
  puncdict = {u'%': u'٪', u',': u'،', u';': u'؛', u'?': u'؟'}
A dictionary of punctuation transformation rules that can be used by punctranslate().
  ignoretests = ['startcaps', 'simplecaps']
List of pofilter tests for this language that must be ignored.

Inherited from common.Common: CJKpunc, checker, commonpunc, ethiopicpunc, indicpunc, invertedpunc, miscpunc, punctuation, quotes, rtlpunc, sentenceend, sentencere

Properties [hide private]

Inherited from object: __class__

Class Variable Details [hide private]

pluralequation

The plural equation for selection of plural forms.

This is used for PO files to fill into the header. See http://www.gnu.org/software/gettext/manual/html_node/gettext_150.html. Also see data.py

Value:
'n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n>=3 && n<=10 ? 3 : n>=11 && n<=99 ?\
 4 : 5'