-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6802 from tk0miya/6781_gettext_template
gettext: Use template file to generate message catalog
- Loading branch information
Showing
4 changed files
with
81 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 -%} |