Package turbogears :: Package toolbox :: Package admi18n :: Class Internationalization

Class Internationalization

source code

            object --+        
                     |        
controllers.Controller --+    
                         |    
controllers.RootController --+
                             |
                            Internationalization

I18N administration tool.

Collect your strings, add and manage locales, edit and compile your catalogs.


Version: 0.1

Author: Ronald Jaramillo

Copyright: Copyright 2005 Ronald Jaramillo

License: MIT

Instance Methods
 
__init__(self, currentProject=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
get_languages(self) source code
 
remove_locale(self, code) source code
 
compile_catalogs(self, codes) source code
 
merge_catalogs(self, codes) source code
 
add_locale(self, code) source code
 
po_upload(self, myFile, code, *_decorator__varargs, **_decorator__kwargs) source code
 
google_translate(self, code, from_lang, to_lang, args) source code
 
update_catalog(self, code, msg_id, msg_text, *_decorator__varargs, **_decorator__kwargs) source code
 
po_view(self, code, sort_by=None, dir=None, from_lang=None, to_lang=None, *_decorator__varargs, **kargs) source code
 
language(self, code, *_decorator__varargs, **_decorator__kwargs) source code
 
language_list(self, *_decorator__varargs, **_decorator__kwargs) source code
 
language_management(self, add=None, rem=None, compile=None, merge=None, *_decorator__varargs, **_decorator__kwargs) source code
 
language_for_code(self, code) source code
 
locales_directory(self) source code
 
project_locales(self) source code
 
project_files(self) source code
 
collect_string_for_files(self, files) source code
 
pot_message_file(self) source code
 
lang_file(self, code, *_decorator__varargs, **_decorator__kwargs) source code
 
string_collection(self, files=[], *_decorator__varargs, **_decorator__kwargs) source code
 
index(self, *_decorator__varargs, **_decorator__kwargs) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  __label__ = 'admi18n'
  __email__ = 'ronald@checkandshare.com'
  baseTemplate = 'turbogears.toolbox.admi18n'
  languages = None
hash(x)
  icon = '/tg_static/images/admi18n.png'
  need_project = True

Inherited from controllers.RootController: is_app_root

Inherited from controllers.Controller: accesslog, msglog, msglogfunc

Properties

Inherited from object: __class__

Method Details

__init__(self, currentProject=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

po_upload(self, myFile, code, *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose(format= 'json')

update_catalog(self, code, msg_id, msg_text, *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose(format= 'json')

po_view(self, code, sort_by=None, dir=None, from_lang=None, to_lang=None, *_decorator__varargs, **kargs)

source code 
Decorators:
  • @expose(template= '%s.po_view' % baseTemplate)

language(self, code, *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose(template= '%s.language' % baseTemplate)

language_list(self, *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose(format= 'json')

language_management(self, add=None, rem=None, compile=None, merge=None, *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose(template= '%s.languageManagement' % baseTemplate)

lang_file(self, code, *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose()

string_collection(self, files=[], *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose(template= '%s.stringCollection' % baseTemplate)

index(self, *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose(template= '%s.internationalization' % baseTemplate)