From f31d1c32075d69311242b02996dcdac4379fcd6c Mon Sep 17 00:00:00 2001
From: "Yury V. Zaytsev" <yury@shurup.com>
Date: Sun, 7 Jun 2015 20:08:43 +0200
Subject: [PATCH] Ticket #3479: Fix mc.pot comment tripping up Transifex and
unportable inplace sed
Transifex doesn't like it when there is no space after `#` and complains
about autogenerated `/# "Plural-Forms ...` string; fix it and remove
unportable inplace sed invocation.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
---
po/Rules-pot-defaults | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/po/Rules-pot-defaults b/po/Rules-pot-defaults
index 80b9e55..2cf834e 100644
a
|
b
|
update-po: Makefile |
4 | 4 | sed \ |
5 | 5 | -e '/#, fuzzy/d' \ |
6 | 6 | -e 's/Project-Id-Version: PACKAGE VERSION/Project-Id-Version: $(PACKAGE) $(VERSION)/' \ |
7 | | -e 's/^"Plural-Forms: nplurals=INTEGER;/#"Plural-Forms: nplurals=INTEGER;/' \ |
| 7 | -e 's/^"Plural-Forms: nplurals=INTEGER;/# "Plural-Forms: nplurals=INTEGER;/' \ |
8 | 8 | -e 's@Content-Type: text/plain; charset=CHARSET@Content-Type: text/plain; charset=utf-8@' \ |
9 | 9 | < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ |
10 | 10 | mv -f $(DOMAIN).1po $(srcdir)/$(DOMAIN).pot |
11 | 11 | test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) |
12 | 12 | $(MAKE) update-gmo && \ |
13 | | for i in $(srcdir)/*.po; do sed -i '/^#\:/d' $$i; done |
| 13 | for i in $(srcdir)/*.po; do sed '/^#\:/d' < $$i > $$i.clean && mv -f $$i.clean $$i; done |