From 796935bb76f1ad69eb81fbebb277bafad9fd2711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 1 Mar 2012 16:19:21 +0100 Subject: [PATCH] Configurable commit message --- settings.py | 3 +++ trans/models.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/settings.py b/settings.py index cb7da30db..51cb5913b 100644 --- a/settings.py +++ b/settings.py @@ -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' diff --git a/trans/models.py b/trans/models.py index b2be32753..1a56030d4 100644 --- a/trans/models.py +++ b/trans/models.py @@ -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):