Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/twine.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/twine/formatters/django.rb2
-rw-r--r--test/fixtures/formatter_django.po4
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/twine/formatters/django.rb b/lib/twine/formatters/django.rb
index dd60c4f..19685b3 100644
--- a/lib/twine/formatters/django.rb
+++ b/lib/twine/formatters/django.rb
@@ -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)
diff --git a/test/fixtures/formatter_django.po b/test/fixtures/formatter_django.po
index 264f974..964a8b5 100644
--- a/test/fixtures/formatter_django.po
+++ b/test/fixtures/formatter_django.po
@@ -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 ---------#