summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaohan Chen <yaohan.chen@gmail.com>2007-07-09 08:46:03 +0000
committerYaohan Chen <yaohan.chen@gmail.com>2007-07-09 08:46:03 +0000
commit077e87909b0bf490c6ca08a3ab1df34ce77b1397 (patch)
tree3da35d9ac82e616913d7796f6e3eefeb23582c41
parent069d8c8dd5ab841cc5efcfeae1cdc2e7f93c2976 (diff)
fixed a few strings which used gettext without changing #{} syntax
-rw-r--r--lib/rbot/config.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rbot/config.rb b/lib/rbot/config.rb
index 7cedc11e..de7b29b7 100644
--- a/lib/rbot/config.rb
+++ b/lib/rbot/config.rb
@@ -169,7 +169,7 @@ module Irc
string
end
def desc
- _("#{@desc} [valid values are: #{values.join(', ')}]")
+ _("%{desc} [valid values are: %{values}]") % {:desc => @desc, :values => values.join(', ')}
end
end
@@ -207,7 +207,7 @@ module Irc
}
return
rescue
- error _("failed to read conf.yaml: #{$!}")
+ error "failed to read conf.yaml: #{$!}"
end
end
# if we got here, we need to run the first-run wizard
@@ -273,7 +273,7 @@ module Irc
"#{@bot.botclass}/conf.yaml")
@changed = false
rescue => e
- error _("failed to write configuration file conf.yaml! #{$!}")
+ error "failed to write configuration file conf.yaml! #{$!}"
error "#{e.class}: #{e}"
error e.backtrace.join("\n")
end