Add UTF-8 Content-Type to the Django formatter

This commit is contained in:
Paul Wagener 2016-05-03 21:53:12 +02:00
parent be5bb1f4b6
commit 111840ed70
2 changed files with 4 additions and 2 deletions

View file

@ -70,7 +70,7 @@ module Twine
end
def format_header(lang)
"##\n # Django Strings File\n # Generated by Twine #{Twine::VERSION}\n # Language: #{lang}\n"
"##\n # Django Strings File\n # Generated by Twine #{Twine::VERSION}\n # Language: #{lang}\nmsgid \"\"\nmsgstr \"\"\n\"Content-Type: text/plain; charset=UTF-8\\n\""
end
def format_section_header(section)

View file

@ -2,7 +2,9 @@
# Django Strings File
# Generated by Twine <%= Twine::VERSION %>
# Language: en
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
#--------- Section 1 ---------#