mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-12 23:27:22 +00:00
Delete empty translation templates
This commit is contained in:
parent
45c3aeb225
commit
702e4b1dc3
30
.tx/config
30
.tx/config
@ -7,12 +7,6 @@ source_file = vc_vidyo/indico_vc_vidyo/translations/messages.pot
|
||||
source_lang = en
|
||||
type = PO
|
||||
|
||||
[indico.vc-vidyo-messages-js]
|
||||
file_filter = vc_vidyo/indico_vc_vidyo/translations/<lang>/LC_MESSAGES/messages-js.po
|
||||
source_file = vc_vidyo/indico_vc_vidyo/translations/messages-js.pot
|
||||
source_lang = en
|
||||
type = PO
|
||||
|
||||
[indico.search-messages]
|
||||
file_filter = search/indico_search/translations/<lang>/LC_MESSAGES/messages.po
|
||||
source_file = search/indico_search/translations/messages.pot
|
||||
@ -67,24 +61,12 @@ source_file = payment_paypal/indico_payment_paypal/translations/messages.pot
|
||||
source_lang = en
|
||||
type = PO
|
||||
|
||||
[indico.payment-paypal-messages-js]
|
||||
file_filter = payment_paypal/indico_payment_paypal/translations/<lang>/LC_MESSAGES/messages-js.po
|
||||
source_file = payment_paypal/indico_payment_paypal/translations/messages-js.pot
|
||||
source_lang = en
|
||||
type = PO
|
||||
|
||||
[indico.payment-manual-messages]
|
||||
file_filter = payment_manual/indico_payment_manual/translations/<lang>/LC_MESSAGES/messages.po
|
||||
source_file = payment_manual/indico_payment_manual/translations/messages.pot
|
||||
source_lang = en
|
||||
type = PO
|
||||
|
||||
[indico.payment-manual-messages-js]
|
||||
file_filter = payment_manual/indico_payment_manual/translations/<lang>/LC_MESSAGES/messages-js.po
|
||||
source_file = payment_manual/indico_payment_manual/translations/messages-js.pot
|
||||
source_lang = en
|
||||
type = PO
|
||||
|
||||
[indico.livesync-messages]
|
||||
file_filter = livesync/indico_livesync/translations/<lang>/LC_MESSAGES/messages.po
|
||||
source_file = livesync/indico_livesync/translations/messages.pot
|
||||
@ -103,12 +85,6 @@ source_file = livesync_invenio/indico_livesync_invenio/translations/messages.pot
|
||||
source_lang = en
|
||||
type = PO
|
||||
|
||||
[indico.livesync-invenio-messages-js]
|
||||
file_filter = livesync_invenio/indico_livesync_invenio/translations/<lang>/LC_MESSAGES/messages-js.po
|
||||
source_file = livesync_invenio/indico_livesync_invenio/translations/messages-js.pot
|
||||
source_lang = en
|
||||
type = PO
|
||||
|
||||
[indico.importer-messages]
|
||||
file_filter = importer/indico_importer/translations/<lang>/LC_MESSAGES/messages.po
|
||||
source_file = importer/indico_importer/translations/messages.pot
|
||||
@ -126,9 +102,3 @@ file_filter = importer_invenio/indico_importer_invenio/translations/<lang>/LC_ME
|
||||
source_file = importer_invenio/indico_importer_invenio/translations/messages.pot
|
||||
source_lang = en
|
||||
type = PO
|
||||
|
||||
[indico.importer-invenio-messages-js]
|
||||
file_filter = importer_invenio/indico_importer_invenio/translations/<lang>/LC_MESSAGES/messages-js.po
|
||||
source_file = importer_invenio/indico_importer_invenio/translations/messages-js.pot
|
||||
source_lang = en
|
||||
type = PO
|
||||
|
||||
@ -1,21 +0,0 @@
|
||||
# Translations template for PROJECT.
|
||||
# Copyright (C) 2016 ORGANIZATION
|
||||
# This file is distributed under the same license as the PROJECT project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2016-08-29 10:46+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.3.4\n"
|
||||
|
||||
msgid "Indico"
|
||||
msgstr "Indico"
|
||||
@ -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 <EMAIL@ADDRESS>, 2016.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2016-08-29 10:46+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.3.4\n"
|
||||
|
||||
@ -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 <EMAIL@ADDRESS>, 2016.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2016-08-29 10:46+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.3.4\n"
|
||||
|
||||
@ -1,21 +0,0 @@
|
||||
# Translations template for PROJECT.
|
||||
# Copyright (C) 2016 ORGANIZATION
|
||||
# This file is distributed under the same license as the PROJECT project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2016-08-29 10:46+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.3.4\n"
|
||||
|
||||
msgid "Indico"
|
||||
msgstr "Indico"
|
||||
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
USAGE="$0 [init <locale>|extract|update <locale>|compile <locale>]"
|
||||
|
||||
@ -31,7 +31,17 @@ for plugin in $(find . -name setup.py -exec sh -c 'basename $(dirname $0)' {} \;
|
||||
TRANSLATIONS_DIR="./indico_${plugin}/translations"
|
||||
[[ ! -d "$TRANSLATIONS_DIR" ]] && mkdir "$TRANSLATIONS_DIR"
|
||||
pybabel extract -o "${TRANSLATIONS_DIR}/messages.pot" "indico_${plugin}" -F ../babel.cfg
|
||||
num_strings=$(grep msgid "${TRANSLATIONS_DIR}/messages.pot" | wc -l)
|
||||
if (( $num_strings == 1 )); then
|
||||
echo "deleting empty dict ${TRANSLATIONS_DIR}/messages.pot"
|
||||
rm "${TRANSLATIONS_DIR}/messages.pot"
|
||||
fi
|
||||
pybabel extract -o "${TRANSLATIONS_DIR}/messages-js.pot" "indico_${plugin}" -k 'gettext' -k 'ngettext:1,2' -k '$T' -F ../babel-js.cfg
|
||||
num_strings=$(grep msgid "${TRANSLATIONS_DIR}/messages-js.pot" | wc -l)
|
||||
if (( $num_strings == 1 )); then
|
||||
echo "deleting empty js dict ${TRANSLATIONS_DIR}/messages-js.pot"
|
||||
rm "${TRANSLATIONS_DIR}/messages-js.pot"
|
||||
fi
|
||||
elif [[ "$ACTION" == "update" ]]; then
|
||||
require_locale
|
||||
pybabel update -i "./indico_${plugin}/translations/messages.pot" -l "$LOCALE" -d "./indico_${plugin}/translations"
|
||||
|
||||
@ -1,21 +0,0 @@
|
||||
# Translations template for PROJECT.
|
||||
# Copyright (C) 2016 ORGANIZATION
|
||||
# This file is distributed under the same license as the PROJECT project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2016-08-29 10:46+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.3.4\n"
|
||||
|
||||
msgid "Indico"
|
||||
msgstr "Indico"
|
||||
@ -1,21 +0,0 @@
|
||||
# Translations template for PROJECT.
|
||||
# Copyright (C) 2016 ORGANIZATION
|
||||
# This file is distributed under the same license as the PROJECT project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2016-08-29 10:46+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.3.4\n"
|
||||
|
||||
msgid "Indico"
|
||||
msgstr "Indico"
|
||||
@ -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 <EMAIL@ADDRESS>, 2016.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2016-08-29 10:46+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.3.4\n"
|
||||
|
||||
@ -1,21 +0,0 @@
|
||||
# Translations template for PROJECT.
|
||||
# Copyright (C) 2016 ORGANIZATION
|
||||
# This file is distributed under the same license as the PROJECT project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2016-08-29 10:46+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.3.4\n"
|
||||
|
||||
msgid "Indico"
|
||||
msgstr "Indico"
|
||||
Loading…
x
Reference in New Issue
Block a user