Package turbogears :: Package i18n :: Package sogettext

Package sogettext

source code

SQLObject-based version of gettext

Submodules

Functions
 
so_gettext(key, locale=None, domain=None)
SQLObject-based version of gettext.
source code
 
get_so_catalog(domain)
Get catalog from database.
source code
 
create_so_catalog_tables()
Create the tables if needed.
source code
 
create_so_catalog(locales, domain)
Create catalog from database.
source code
 
dump_so_catalogs(locales)
Take all domains and messages and creates message catalogs.
source code
Function Details

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

source code 

SQLObject-based version of gettext.

Messages are stored in database instead.

get_so_catalog(domain)

source code 

Get catalog from database.

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

create_so_catalog(locales, domain)

source code 

Create catalog from database.

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