Package library :: Package pyjamas :: Module JSONTranslations :: Class JSONTranslations
[hide private]
[frames] | no frames]

Class JSONTranslations

source code

gettext.NullTranslations --+
                           |
                          JSONTranslations

Instance Methods [hide private]
 
__init__(self, *args, **kwargs) source code
 
new_catalog(self, base_url=None, domain=None, lang=None) source code
 
load(self, base_url=None, domain=None, lang=None, onCompletion=None, onError=None) source code
 
onCompletion(self, text) source code
 
onError(self, text, code) source code
 
onTimeout(self, text) source code
 
onProgress(self, event) source code
 
parse_json(self, text) source code
 
_parse(self, url) source code
 
gettext(self, message) source code
 
ngettext(self, msgid1, msgid2, n) source code
 
lgettext(self, message) source code
 
lngettext(self, msgid1, msgid2, n) source code
 
ugettext(self, message) source code
 
ungettext(self, msgid1, msgid2, n) source code

Inherited from gettext.NullTranslations: add_fallback, charset, info, install, output_charset, set_output_charset

Class Variables [hide private]
  re_nplurals = re.compile('nplurals *= *(\d+)')
  re_plural = re.compile('plural *= *([^;]+)')
  base_url = None
hash(x)
  domain = None
hash(x)
Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 
Overrides: gettext.NullTranslations.__init__

_parse(self, url)

source code 
Overrides: gettext.NullTranslations._parse

gettext(self, message)

source code 
Overrides: gettext.NullTranslations.gettext

ngettext(self, msgid1, msgid2, n)

source code 
Overrides: gettext.NullTranslations.ngettext

lgettext(self, message)

source code 
Overrides: gettext.NullTranslations.lgettext

lngettext(self, msgid1, msgid2, n)

source code 
Overrides: gettext.NullTranslations.lngettext

ugettext(self, message)

source code 
Overrides: gettext.NullTranslations.ugettext

ungettext(self, msgid1, msgid2, n)

source code 
Overrides: gettext.NullTranslations.ungettext