Configurable commit message

This commit is contained in:
Michal Čihař 2012-03-01 16:19:21 +01:00
parent 26578ac307
commit 796935bb76
2 changed files with 4 additions and 1 deletions

View File

@ -183,6 +183,9 @@ LOGGING = {
# Path where git repositories are stored, it needs to be writable
GIT_ROOT = '%s/repos/' % WEB_ROOT
# Commit message for changes
COMMIT_MESSAGE = 'Translated using Weblate.'
# Title of site to use
SITE_TITLE = 'Weblate'

View File

@ -284,7 +284,7 @@ class Translation(models.Model):
repo.git.commit(
self.filename,
author = author,
m = 'Translated using Weblate'
m = settings.COMMIT_MESSAGE
)
def update_unit(self, unit, request):