1. Daniel Greenfeld
  2. transifex

Commits

Diego Búrigo Zacarão  committed 37d840c

Backed out changeset: 92507f6b9641

  • Participants
  • Parent commits 8ecf55e
  • Branches default

Comments (0)

Files changed (3)

File transifex/settings/40-apps.conf

View file
  • Ignore whitespace
 # Ex. http://domain.com/admin/
 DJANGO_ADMIN_PANEL_URL = 'admin'
 
+# The directory where the vcs app will checkout stuff and play around.
+# Warning: On production systems this should be a place outside of the source
+# and with enough disk space. Eg. /var/lib/transifex.
+SCRATCH_DIR = os.path.join('/var/lib/transifex', 'scratchdir')
+
 AJAX_LOOKUP_CHANNELS = {
     # the simplest case, pass a DICT with the model and field to search against :
     'users' : ('txcommon.lookups', 'UsersLookup'),

File transifex/settings/70-translation.conf

View file
  • Ignore whitespace
                      'INTLTOOL': 'intltool.IntltoolHandler',
                      'PUBLICAN': 'publican.PublicanHandler',}
 
+#####################
+# msgmerge settings
+MSGMERGE_DIR = os.path.join(SCRATCH_DIR, 'msgmerge_files')
+
+
 #######################
 # Resource i18n options
 I18N_METHODS = {'PO': { 

File transifex/txcommon/management/commands/txcreatedirs.py

View file
  • Ignore whitespace
 
 def transifex_paths():
     from django.conf import settings as s
+    # Scratch dir
+    yield s.SCRATCH_DIR
+    # Msgmerge dir
+    yield s.MSGMERGE_DIR
     # Log path
     yield s.LOG_PATH