Output <string_table> instead of <resources>.

This commit is contained in:
Sergey Pisarchik 2014-05-16 12:36:29 +03:00
parent 5953d020b7
commit 9ca167a447
2 changed files with 4 additions and 4 deletions

View file

@ -98,7 +98,7 @@ module Twine
end
File.open(path, 'w:UTF-8') do |f|
f.puts "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Tizen Strings File -->\n<!-- Generated by Twine #{Twine::VERSION} -->\n<!-- Language: #{lang} -->"
f.write '<resources>'
f.write '<string_table>'
@strings.sections.each do |section|
printed_section = false
section.rows.each do |row|
@ -147,7 +147,7 @@ module Twine
end
end
f.puts '</resources>'
f.puts '</string_table>'
end
end
end

View file

@ -2,11 +2,11 @@
<!-- Tizen Strings File -->
<!-- Generated by Twine <%= Twine::VERSION %> -->
<!-- Language: fr -->
<resources>
<string_table>
<!-- SECTION: My Strings -->
<!-- This is a comment -->
<string name="key1">key1-french</string>
<string name="key2">key2-french</string>
<string name="key3">key3-english</string>
<string name="key4">key4-english</string>
</resources>
</string_table>