projects
/
booh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9b775a4
)
*** empty log message ***
author
gc
<gc>
Mon, 3 Mar 2008 23:01:30 +0000
(23:01 +0000)
committer
gc
<gc>
Mon, 3 Mar 2008 23:01:30 +0000
(23:01 +0000)
bin/booh-backend
patch
|
blob
|
history
diff --git
a/bin/booh-backend
b/bin/booh-backend
index 46a84b5657213fe4e0b89955cec7882b5f78e55b..230d23de375d4c1dc80f88da915dc33fbda0b5db 100755
(executable)
--- a/
bin/booh-backend
+++ b/
bin/booh-backend
@@
-658,7
+658,9
@@
def find_translation_for_file(file, msg)
if $multi_languages
if file =~ /\.(\w\w)\.html$/
bindtextdomain("booh", { :locale => "#{$1}.UTF-8" })
if $multi_languages
if file =~ /\.(\w\w)\.html$/
bindtextdomain("booh", { :locale => "#{$1}.UTF-8" })
- return _(msg)
+ retval = _(msg)
+ bindtextdomain("booh")
+ return retval
else
die "Internal error: cannot find multi language suffix of file '#{file}'"
end
else
die "Internal error: cannot find multi language suffix of file '#{file}'"
end
@@
-695,6
+697,7
@@
def save_html(html, base_filename)
ios = File.open("#{base_filename}.#{language}.html", "w")
ios.write(html.gsub(/@@(.*?)@@/) { _($1) })
ios.close
ios = File.open("#{base_filename}.#{language}.html", "w")
ios.write(html.gsub(/@@(.*?)@@/) { _($1) })
ios.close
+ bindtextdomain("booh")
end
else
ios = File.open("#{base_filename}.html", "w")
end
else
ios = File.open("#{base_filename}.html", "w")