Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > e4bbdaa133bf14de79621d7fdfa39df4 > files > 9

transifex-0.9.1-1.fc13.noarch.rpm

# Our Translation Handler choices.
TRANS_CHOICES = {'POT': 'PO files',
                 'INTLTOOL': 'PO files using intltool',
                 'PUBLICAN': 'Publican like docs',}


# The classes which implement the TransHandler support. The full "path"
# to the class is the concatenation of the BASE and the NAME of the class.
TRANS_CLASS_BASE = 'projects.handlers.types'
TRANS_CLASS_NAMES = {'POT': 'pot.POTHandler',
                     'INTLTOOL': 'intltool.IntltoolHandler',
                     'PUBLICAN': 'publican.PublicanHandler',}

#####################
# msgmerge settings
MSGMERGE_DIR = os.path.join(SCRATCH_DIR, 'msgmerge_files')

#####################
# webtrans settings
#

# Lotte web-editing
ENABLE_WEBTRANS = True

# Maximum number of strings that a PO file can have for opening it with 
# Lotte web-editing. Case it is not set up there is no limit.
WEBTRANS_MAX_STRINGS = None

# Enable translation suggestions using Google API
WEBTRANS_SUGGESTIONS = True

# Number of entries to be displayed per page in the translation form
WEBTRANS_ENTRIES_PER_PAGE = 20


#####################
# Reviews settings

# A MEDIA_ROOT and MEDIA_URL combination for reviewd files
# Make sure / is appended at the end!
REVIEWS_ROOT = os.path.join(MEDIA_ROOT, 'reviews_files/')
REVIEWS_URL = os.path.join(MEDIA_URL, 'reviews_files/')