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)
Get catalog from database.
source code
 
create_sa_catalog_tables()
Create the tables if needed.
source code
 
create_sa_catalog(locales, domain)
Create message catalog from database.
source code
 
dump_sa_catalogs(locales)
Take all domains and messages and creates message catalogs.
source code
Variables
  __package__ = 'turbogears.i18n.sagettext'
Function Details

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

source code 

SQLAlchemy-based version of gettext.

Messages are stored in database instead.

get_sa_catalog(domain)

source code 

Get catalog from database.

Retrieves all translations for locale and domain from database and stores in thread data.

create_sa_catalog(locales, domain)

source code 

Create message catalog from database.

Creates a message catalog based on list of locales from existing GNU message catalog.