Dont print Twine version in generated files #6
12 changed files with 12 additions and 12 deletions
|
@ -172,7 +172,7 @@
|
|||
|
||||
\f0\fs36 \cf0 /**\
|
||||
* Apple Strings File\
|
||||
* Generated by Twine 0.8.1\
|
||||
* Generated by Twine\
|
||||
* Language: en\
|
||||
*/\
|
||||
\
|
||||
|
|
|
@ -32,7 +32,7 @@ As stated at the beginning, the output produced by a formatter depends on the fo
|
|||
```
|
||||
/**
|
||||
* Apple Strings File
|
||||
* Generated by Twine 0.8.1
|
||||
* Generated by Twine
|
||||
* Language: en
|
||||
*/
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@ module Twine
|
|||
end
|
||||
|
||||
def format_header(lang)
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Android Strings File -->\n<!-- Generated by Twine #{Twine::VERSION} -->\n<!-- Language: #{lang} -->"
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Android Strings File -->\n<!-- Generated by Twine -->\n<!-- Language: #{lang} -->"
|
||||
end
|
||||
|
||||
def format_sections(twine_file, lang)
|
||||
|
|
|
@ -64,7 +64,7 @@ module Twine
|
|||
end
|
||||
|
||||
def format_header(lang)
|
||||
"/**\n * Apple Strings File\n * Generated by Twine #{Twine::VERSION}\n * Language: #{lang}\n */"
|
||||
"/**\n * Apple Strings File\n * Generated by Twine\n * Language: #{lang}\n */"
|
||||
end
|
||||
|
||||
def format_section_header(section)
|
||||
|
|
|
@ -55,7 +55,7 @@ module Twine
|
|||
|
||||
def format_header(lang)
|
||||
# see https://www.gnu.org/software/trans-coord/manual/gnun/html_node/PO-Header.html for details
|
||||
"# Django Strings File\n# Generated by Twine #{Twine::VERSION}\n# Language: #{lang}\nmsgid \"\"\nmsgstr \"\"\n\"Content-Type: text/plain; charset=UTF-8\\n\""
|
||||
"# Django Strings File\n# Generated by Twine\n# Language: #{lang}\nmsgid \"\"\nmsgstr \"\"\n\"Content-Type: text/plain; charset=UTF-8\\n\""
|
||||
end
|
||||
|
||||
def format_section_header(section)
|
||||
|
|
|
@ -42,7 +42,7 @@ module Twine
|
|||
end
|
||||
|
||||
def format_header(lang)
|
||||
"## Flash Strings File\n## Generated by Twine #{Twine::VERSION}\n## Language: #{lang}"
|
||||
"## Flash Strings File\n## Generated by Twine\n## Language: #{lang}"
|
||||
end
|
||||
|
||||
def format_section_header(section)
|
||||
|
|
|
@ -91,7 +91,7 @@ module Twine
|
|||
end
|
||||
|
||||
def format_header(lang)
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Tizen Strings File -->\n<!-- Generated by Twine #{Twine::VERSION} -->\n<!-- Language: #{lang} -->"
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Tizen Strings File -->\n<!-- Generated by Twine -->\n<!-- Language: #{lang} -->"
|
||||
end
|
||||
|
||||
def format_sections(twine_file, lang)
|
||||
|
|
2
test/fixtures/formatter_android.xml
vendored
2
test/fixtures/formatter_android.xml
vendored
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Android Strings File -->
|
||||
<!-- Generated by Twine <%= Twine::VERSION %> -->
|
||||
<!-- Generated by Twine -->
|
||||
<!-- Language: en -->
|
||||
<resources>
|
||||
<!-- SECTION: Section 1 -->
|
||||
|
|
2
test/fixtures/formatter_apple.strings
vendored
2
test/fixtures/formatter_apple.strings
vendored
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* Apple Strings File
|
||||
* Generated by Twine <%= Twine::VERSION %>
|
||||
* Generated by Twine
|
||||
* Language: en
|
||||
*/
|
||||
|
||||
|
|
2
test/fixtures/formatter_django.po
vendored
2
test/fixtures/formatter_django.po
vendored
|
@ -1,5 +1,5 @@
|
|||
# Django Strings File
|
||||
# Generated by Twine <%= Twine::VERSION %>
|
||||
# Generated by Twine
|
||||
# Language: en
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
|
2
test/fixtures/formatter_flash.properties
vendored
2
test/fixtures/formatter_flash.properties
vendored
|
@ -1,5 +1,5 @@
|
|||
## Flash Strings File
|
||||
## Generated by Twine <%= Twine::VERSION %>
|
||||
## Generated by Twine
|
||||
## Language: en
|
||||
|
||||
## Section 1 ##
|
||||
|
|
2
test/fixtures/formatter_tizen.xml
vendored
2
test/fixtures/formatter_tizen.xml
vendored
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Tizen Strings File -->
|
||||
<!-- Generated by Twine <%= Twine::VERSION %> -->
|
||||
<!-- Generated by Twine -->
|
||||
<!-- Language: en -->
|
||||
<string_table Bversion="2.0.0.201311071819" Dversion="20120315">
|
||||
<!-- SECTION: Section 1 -->
|
||||
|
|
Reference in a new issue