From cdcf223964142cf0706d4c05066584103310d9de Mon Sep 17 00:00:00 2001 From: Jocelyn Delalande Date: Mon, 16 Jul 2018 23:35:26 +0200 Subject: [PATCH] Drop .pot header As it serves no purpose with our translation workflow. .po header could be removed also, but pybabel has no option for that. Ref #339 --- Makefile | 2 +- ihatemoney/messages.pot | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/Makefile b/Makefile index ee7a92e7..e273b80b 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ build-translations: $(VENV)/bin/pybabel compile -d ihatemoney/translations update-translations: - $(VENV)/bin/pybabel extract --no-location --mapping-file ihatemoney/babel.cfg -o ihatemoney/messages.pot ihatemoney + $(VENV)/bin/pybabel extract --strip-comments --omit-header --no-location --mapping-file ihatemoney/babel.cfg -o ihatemoney/messages.pot ihatemoney $(VENV)/bin/pybabel update -i ihatemoney/messages.pot -d ihatemoney/translations/ create-database-revision: diff --git a/ihatemoney/messages.pot b/ihatemoney/messages.pot index 763ed8aa..bc8a8f39 100644 --- a/ihatemoney/messages.pot +++ b/ihatemoney/messages.pot @@ -1,22 +1,3 @@ -# Translations template for PROJECT. -# Copyright (C) 2018 ORGANIZATION -# This file is distributed under the same license as the PROJECT project. -# FIRST AUTHOR , 2018. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PROJECT VERSION\n" -"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2018-07-16 23:26+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.5.3\n" - msgid "Project name" msgstr ""