[damned-lies] Run intltool-update -m even for gettext-based modules
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Run intltool-update -m even for gettext-based modules
- Date: Sun, 26 Feb 2017 21:10:42 +0000 (UTC)
commit aa9195a5748cf82742a1fe3c91c2b28103af49a5
Author: Claude Paroz <claude 2xlibre net>
Date: Sat Feb 25 15:17:40 2017 +0100
Run intltool-update -m even for gettext-based modules
Fixes bug #779092.
stats/models.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/stats/models.py b/stats/models.py
index 7e49326..60e7ca3 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -36,6 +36,7 @@ validate_slug = RegexValidator(
"Enter a valid 'slug' consisting of letters, numbers, underscores, hyphens or plus signs.",
'invalid'
)
+GETTEXT_METHOD = '<gettext>'
VCS_TYPE_CHOICES = (
('cvs', 'CVS'),
@@ -418,7 +419,8 @@ class Branch(models.Model):
# 2. Pre-check, if available (intltool-update -m)
# **************************
- if dom.dtype == 'ui' and not dom.pot_method:
+ if (dom.dtype == 'ui' and
+ (not dom.pot_method or dom.pot_method == GETTEXT_METHOD)):
# Run intltool-update -m to check for some errors
errors.extend(utils.check_potfiles(domain_path))
@@ -799,7 +801,7 @@ class Domain(models.Model):
podir = vcs_path
if not self.pot_method: # default is intltool
pot_command = ['intltool-update', '-g', self.potbase(), '-p']
- elif self.pot_method == '<gettext>':
+ elif self.pot_method == GETTEXT_METHOD:
pot_command = ['xgettext',
'--files-from', 'POTFILES.in',
'--directory', current_branch.co_path(),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]