2691: Create api documentation with sphinx

svn: r12704
This commit is contained in:
Benny Malengier
2009-06-24 21:56:07 +00:00
parent 1042bb3fe2
commit a52bc62be9
68 changed files with 2203 additions and 1161 deletions

View File

@@ -35,12 +35,12 @@ def sgettext(msgid, sep='|'):
the returned value is the portion of msgid following the last
separator. Default separator is '|'.
@param msgid: The string to translated.
@type msgid: unicode
@param sep: The separator marking the context.
@type sep: unicode
@return: Translation or the original with context stripped.
@rtype: unicode
:param msgid: The string to translated.
:type msgid: unicode
:param sep: The separator marking the context.
:type sep: unicode
:returns: Translation or the original with context stripped.
:rtype: unicode
"""
msgval = gettext(msgid)
@@ -58,17 +58,17 @@ def sngettext(singular, plural, n, sep='|'):
the returned value is the portion of singular following the last
separator. Default separator is '|'.
@param singular: The singular form of the string to be translated.
:param singular: The singular form of the string to be translated.
may contain a context seperator
@type singular: unicode
@param plural: The plural form of the string to be translated.
@type plural: unicode
@param n: the amount for which to decide the translation
@type n: int
@param sep: The separator marking the context.
@type sep: unicode
@return: Translation or the original with context stripped.
@rtype: unicode
:type singular: unicode
:param plural: The plural form of the string to be translated.
:type plural: unicode
:param n: the amount for which to decide the translation
:type n: int
:param sep: The separator marking the context.
:type sep: unicode
:returns: Translation or the original with context stripped.
:rtype: unicode
"""
msgval = ngettext(singular, plural,n)