Add UTF-8 Content-Type to the Django formatter
This commit is contained in:
parent
be5bb1f4b6
commit
111840ed70
2 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
4
test/fixtures/formatter_django.po
vendored
4
test/fixtures/formatter_django.po
vendored
|
@ -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 ---------#
|
||||
|
||||
|
|
Reference in a new issue