Back to index

plone3  3.1.7
Namespaces | Functions | Variables
convertToLocales.py File Reference

Go to the source code of this file.

Namespaces

namespace  convertToLocales

Functions

def convertToLocales.getLocalsPath
def convertToLocales.svnAdd

Variables

tuple convertToLocales.RE_DOMAIN = re.compile(r"\"Domain: ?([a-zA-Z-_]*)\\n\"")
tuple convertToLocales.RE_LANGUAGE = re.compile(r"\"Language-[cC]ode: ?([a-zA-Z-_]*)\\n\"")
string convertToLocales.base = '.'
tuple convertToLocales.i18n = os.path.join(base, 'i18n')
tuple convertToLocales.locales = os.path.join(base, 'locales')
tuple convertToLocales.po_files = glob.glob(os.path.join(i18n, '*.po'))
tuple convertToLocales.pot_files = glob.glob(os.path.join(i18n, '*.pot'))
tuple convertToLocales.fd = open(po, 'r')
tuple convertToLocales.header = fd.read(5000)
tuple convertToLocales.domain = RE_DOMAIN.findall(header)
tuple convertToLocales.lang = RE_LANGUAGE.findall(header)
 convertToLocales.src = po
tuple convertToLocales.dst = os.path.join(po_path, new_po)