From 077e87909b0bf490c6ca08a3ab1df34ce77b1397 Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Mon, 9 Jul 2007 08:46:03 +0000 Subject: fixed a few strings which used gettext without changing #{} syntax --- lib/rbot/config.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/rbot') 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 -- cgit v1.2.3