diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-11-07 18:36:57 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-11-07 18:36:57 +0300 |
commit | 399f773d9dcd14d1ba27a74448ba9da5da7c7389 (patch) | |
tree | 6d2e6c6f591c57021be4338bbbc9a351a33cac9f /sphinx/templates | |
parent | 59a1b06757a31a6b457eb0a938a33c31197f6a4c (diff) |
gettext: Use template file to generate message catalog
Diffstat (limited to 'sphinx/templates')
-rw-r--r-- | sphinx/templates/gettext/message.pot_t | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sphinx/templates/gettext/message.pot_t b/sphinx/templates/gettext/message.pot_t new file mode 100644 index 000000000..90df27175 --- /dev/null +++ b/sphinx/templates/gettext/message.pot_t @@ -0,0 +1,33 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) {{ copyright }} +# This file is distributed under the same license as the {{ project }} package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: {{ project|e }} {{ version|e }}\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: {{ ctime|e }}\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" +{% for message in messages %} +{% if display_location -%} +{% for source, line in message.locations -%} +#: {{ source }}:{{ line }} +{% endfor -%} +{% endif -%} + +{% if display_uuid -%} +{% for uuid in message.uuids -%} +#: {{ uuid }} +{% endfor -%} +{% endif -%} + +msgid "{{ message.text|e }}" +msgstr "" +{% endfor -%} |