From d1ac36110c7b2ea82f49fec45a457725be3b5e05 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 8 Jun 2016 08:27:50 +0200 Subject: [PATCH] Remove unused POT file Translation source files are not needed anymore in repositories, remove the outdated files. Update run_tests.sh to handle this. Change-Id: If97a133545225cf4f45bb3b2a415ec3d2e5fd5d4 --- run_tests.sh | 4 ++-- smaug_dashboard/locale/django.pot | 19 ------------------- smaug_dashboard/locale/djangojs.pot | 18 ------------------ 3 files changed, 2 insertions(+), 39 deletions(-) delete mode 100644 smaug_dashboard/locale/django.pot delete mode 100644 smaug_dashboard/locale/djangojs.pot diff --git a/run_tests.sh b/run_tests.sh index 7e2cf3b..d0fec38 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -414,7 +414,7 @@ function babel_extract { KEYWORDS="-k gettext_noop -k gettext_lazy -k ngettext_lazy:1,2" KEYWORDS+=" -k ugettext_noop -k ugettext_lazy -k ungettext_lazy:1,2" KEYWORDS+=" -k npgettext:1c,2,3 -k pgettext_lazy:1c,2 -k npgettext_lazy:1c,2,3" - + mkdir -p locale ${command_wrapper} pybabel extract -F ../babel-${DOMAIN}.cfg -o locale/${DOMAIN}.pot $KEYWORDS . } @@ -431,7 +431,7 @@ function run_makemessages { cd .. if [ $check_only -eq 1 ]; then - git checkout -- smaug_dashboard/locale/django*.pot + rm smaug_dashboard/locale/django*.pot fi exit $(($SMAUG_PY_RESULT || $SMAUG_JS_RESULT)) diff --git a/smaug_dashboard/locale/django.pot b/smaug_dashboard/locale/django.pot deleted file mode 100644 index 718b30b..0000000 --- a/smaug_dashboard/locale/django.pot +++ /dev/null @@ -1,19 +0,0 @@ -# Translations template for PROJECT. -# Copyright (C) 2016 ORGANIZATION -# This file is distributed under the same license as the PROJECT project. -# FIRST AUTHOR , 2016. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PROJECT VERSION\n" -"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2016-03-01 12:28+0000\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.2.0\n" - diff --git a/smaug_dashboard/locale/djangojs.pot b/smaug_dashboard/locale/djangojs.pot deleted file mode 100644 index 07492d9..0000000 --- a/smaug_dashboard/locale/djangojs.pot +++ /dev/null @@ -1,18 +0,0 @@ -# Translations template for PROJECT. -# Copyright (C) 2016 ORGANIZATION -# This file is distributed under the same license as the PROJECT project. -# FIRST AUTHOR , 2016. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PROJECT VERSION\n" -"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2016-03-01 12:30+0000\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.2.0\n"