Skip to content

Commit

Permalink
tiny fix in publish.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
hayamiz committed Dec 15, 2009
1 parent 4e479e4 commit 4e9c9ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/web/publish.rb
Expand Up @@ -159,7 +159,7 @@ def main(argv)
tempfile.fsync()

translated_str = nil
unless options[:lang] == "en"
if options[:lang] != "en"
translated_str = `xml2po -k -m xhtml -p #{options[:lang]}.po -o /dev/stdout #{tempfile.path}`
else
translated_str = File.open(tempfile.path).read
Expand All @@ -169,7 +169,7 @@ def main(argv)

output.puts(translated_str)

0
true
end

if __FILE__ == $0
Expand Down

0 comments on commit 4e9c9ec

Please sign in to comment.