Package turbogears :: Package i18n :: Package sagettext

Package sagettext

source code

SQLAlchemy-based version of gettext

Submodules

Functions
 
sa_gettext(key, locale=None, domain=None)
SQLAlchemy-based version of gettext.
source code
 
get_sa_catalog(domain)
Retrieves all translations for locale and domain from database and stores in thread data.
source code
 
create_sa_catalog(locales, domain)
Creates a message catalog based on list of locales from existing GNU message catalog
source code
 
dump_sa_catalogs(locales)
Takes all domains and messages and creates message catalogs
source code
Function Details

sa_gettext(key, locale=None, domain=None)

source code 

SQLAlchemy-based version of gettext. Messages are stored in database instead.