pkg.need_tar = true
end
+desc "Update pot/po files."
+task :updatepo do
+ require 'gettext/utils'
+ GetText.update_pofiles("rbot", Dir.glob("{lib,bin}/**/*.{rb,rhtml}"), "rbot")
+end
+
+desc "Create mo-files"
+task :makemo do
+ require 'gettext/utils'
+ GetText.create_mofiles(true)
+end
\r
BotConfig.register BotConfigStringValue.new( 'auth.password',\r
:default => 'rbotauth', :wizard => true,\r
- :desc => 'Password for the bot owner' )\r
+ :desc => _('Password for the bot owner'))\r
BotConfig.register BotConfigBooleanValue.new( 'auth.login_by_mask',\r
:default => 'true',\r
- :desc => 'Set false to prevent new botusers from logging in without a password when the user netmask is known')\r
+ :desc => _('Set false to prevent new botusers from logging in without a password when the user netmask is known'))\r
BotConfig.register BotConfigBooleanValue.new( 'auth.autologin',\r
:default => 'true',\r
- :desc => 'Set false to prevent new botusers from recognizing IRC users without a need to manually login')\r
+ :desc => _('Set false to prevent new botusers from recognizing IRC users without a need to manually login'))\r
# BotConfig.register BotConfigIntegerValue.new( 'auth.default_level',\r
# :default => 10, :wizard => true,\r
# :desc => 'The default level for new/unknown users' )\r
else\r
# cmds = cmdtxt.split('::')\r
# @bot.say chan, "you don't have #{cmds.last} (#{cmds.first}) permissions here" if chan\r
- @bot.say chan, "#{user}, you don't have '#{cmdtxt}' permissions here" if chan\r
+ @bot.say chan, _("%{user}, you don't have '%{command}' permissions here") %\r
+ {:user=>user, :command=>cmdtxt} if chan\r
return false\r
end\r
end\r
string
end
def desc
- "#{@desc} [valid values are: " + values.join(", ") + "]"
+ _("#{@desc} [valid values are: #{values.join(', ')}]")
end
end
}
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
# return @config[key]
# end
if @config.has_key?(key.to_sym)
- warning "Unregistered lookup #{key.to_sym.inspect}"
+ warning _("Unregistered lookup #{key.to_sym.inspect}")
return @config[key.to_sym]
end
return false
"#{@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
end
def run()
- puts "First time rbot configuration wizard"
+ puts _("First time rbot configuration wizard")
puts "===================================="
- puts "This is the first time you have run rbot with a config directory of:"
- puts @bot.botclass
- puts "This wizard will ask you a few questions to get you started."
- puts "The rest of rbot's configuration can be manipulated via IRC once"
- puts "rbot is connected and you are auth'd."
+ puts _("This is the first time you have run rbot with a config directory of: #{@bot.botclass}")
+ puts _("This wizard will ask you a few questions to get you started.")
+ puts _("The rest of rbot's configuration can be manipulated via IRC once rbot is connected and you are auth'd.")
puts "-----------------------------------"
return unless @questions
@questions.sort{|a,b| a.order <=> b.order }.each do |q|
- puts q.desc
+ puts _(q.desc)
begin
print q.key.to_s + " [#{q.to_s}]: "
response = STDIN.gets
unless response.empty?
q.set_string response, false
end
- puts "configured #{q.key} => #{q.to_s}"
+ puts _("configured #{q.key} => #{q.to_s}")
puts "-----------------------------------"
rescue ArgumentError => e
- puts "failed to set #{q.key}: #{e.message}"
+ puts _("failed to set #{q.key}: #{e.message}")
retry
end
end
next\r
end\r
if "+-".include?(x[0])\r
- warns << ArgumentError.new("please do not use + or - in front of command #{x} when resetting") unless setting\r
+ warns << ArgumentError.new(_("please do not use + or - in front of command %{command} when resetting") % {:command => x}) unless setting\r
else\r
- warns << ArgumentError.new("+ or - expected in front of #{x}") if setting\r
+ warns << ArgumentError.new(_("+ or - expected in front of %{string}") % {:string => command}) if setting\r
end\r
cmds << x\r
else # parse locations\r
when false\r
locs << x.gsub(/^here$/,'_').gsub(/^private$/,'?')\r
else\r
- warns << ArgumentError("#{x} doesn't look like a channel name") unless @bot.server.supports[:chantypes].include?(x[0])\r
+ warns << ArgumentError("%{string} doesn't look like a channel name" % {:string => x}) unless @bot.server.supports[:chantypes].include?(x[0])\r
locs << x\r
end\r
unless want_more\r
end\r
end\r
}\r
- warns << "trailing comma" if want_more\r
- warns << "you probably forgot a comma" unless last_idx == ar.length - 1\r
+ warns << _("trailing comma") if want_more\r
+ warns << _("you probably forgot a comma") unless last_idx == ar.length - 1\r
return cmds, locs, warns\r
end\r
\r
begin\r
user = @bot.auth.get_botuser(splits[-1].sub(/^all$/,"everyone"))\r
rescue\r
- return m.reply("couldn't find botuser #{splits[-1]}")\r
+ return m.reply(_("couldn't find botuser %{name}") % {:name => splits[-1]})\r
end\r
- return m.reply("you can't change permissions for #{user.username}") if user == @bot.auth.botowner\r
+ return m.reply(_("you can't change permissions for %{username}") % {:username => user.username}) if user == @bot.auth.botowner\r
splits.slice!(-2,2) if has_for\r
\r
cmds, locs, warns = parse_args(splits, setting)\r
errs = warns.select { |w| w.kind_of?(Exception) }\r
\r
unless errs.empty?\r
- m.reply "couldn't satisfy your request: #{errs.join(',')}"\r
+ m.reply _("couldn't satisfy your request: %{errors}") % {:errors => errs.join(',')}\r
return\r
end\r
\r
begin\r
if params[:user].nil?\r
user = get_botusername_for(m.source)\r
- return m.reply("you are owner, you can do anything") if user == @bot.auth.botwoner\r
+ return m.reply(_("you are owner, you can do anything")) if user == @bot.auth.botwoner\r
else\r
user = @bot.auth.get_botuser(params[:user].sub(/^all$/,"everyone"))\r
- return m.reply("owner can do anything") if user.username == "owner" \r
+ return m.reply(_("owner can do anything")) if user.username == "owner"\r
end\r
rescue\r
- return m.reply("couldn't find botuser #{params[:user]}")\r
+ return m.reply(_("couldn't find botuser %{name}") % {:name => params[:user]})\r
end\r
perm = user.perm\r
str = []\r
next if val.perm.empty?\r
case k\r
when :*\r
- str << "on any channel: "\r
+ str << _("on any channel: ")\r
when :"?"\r
- str << "in private: "\r
+ str << _("in private: ")\r
else\r
- str << "on #{k}: "\r
+ str << _("on #{k}: ")\r
end\r
sub = []\r
val.perm.each { |cmd, bool|\r
str.last << sub.join(', ')\r
}\r
if str.empty?\r
- m.reply "no permissions set for #{user.username}"\r
+ m.reply _("no permissions set for %{user}") % {:user => user.username}\r
else\r
- m.reply "permissions for #{user.username}:: #{str.join('; ')}"\r
+ m.reply _("permissions for %{user}:: %{permissions}") %\r
+ { :user => user.username, :permissions => str.join('; ')}\r
end\r
end\r
\r
end\r
\r
def welcome(user)\r
- "welcome, #{get_botusername_for(user)}"\r
+ _("welcome, %{user}") % {:user => get_botusername_for(user)}\r
end\r
\r
def auth_auth(m, params)\r
m.reply welcome(m.source)\r
@bot.auth.set_changed\r
else\r
- m.reply "sorry, can't do"\r
+ m.reply _("sorry, can't do")\r
end\r
rescue => e\r
- m.reply "couldn't login: #{e}"\r
+ m.reply _("couldn't login: %{exception}") % {:exception => e}\r
raise\r
end\r
end\r
u = do_autologin(m.source)\r
case u.username\r
when 'everyone'\r
- m.reply "I couldn't find anything to let you login automatically"\r
+ m.reply _("I couldn't find anything to let you login automatically")\r
else\r
m.reply welcome(m.source)\r
end\r
# if m.public?\r
# rep << m.source.nick << ", "\r
# end\r
- rep << "you are "\r
- rep << get_botusername_for(m.source).gsub(/^everyone$/, "no one that I know").gsub(/^owner$/, "my boss")\r
- m.reply rep\r
+ m.reply _("you are %{who}") % {\r
+ :who => get_botusername_for(m.source).gsub(\r
+ /^everyone$/, _("no one that I know")).gsub(\r
+ /^owner$/, _("my boss"))\r
+ }\r
end\r
\r
def help(cmd, topic="")\r
case cmd\r
when "login"\r
- return "login [<botuser>] [<pass>]: logs in to the bot as botuser <botuser> with password <pass>. When using the full form, you must contact the bot in private. <pass> can be omitted if <botuser> allows login-by-mask and your netmask is among the known ones. if <botuser> is omitted too autologin will be attempted"\r
+ return _("login [<botuser>] [<pass>]: logs in to the bot as botuser <botuser> with password <pass>. When using the full form, you must contact the bot in private. <pass> can be omitted if <botuser> allows login-by-mask and your netmask is among the known ones. if <botuser> is omitted too autologin will be attempted")\r
when "whoami"\r
- return "whoami: names the botuser you're linked to"\r
+ return _("whoami: names the botuser you're linked to")\r
when /^permission/\r
case topic\r
when "syntax"\r
- return "a permission is specified as module::path::to::cmd; when you want to enable it, prefix it with +; when you want to disable it, prefix it with -; when using the +reset+ command, do not use any prefix"\r
+ return _("a permission is specified as module::path::to::cmd; when you want to enable it, prefix it with +; when you want to disable it, prefix it with -; when using the +reset+ command, do not use any prefix")\r
when "set", "reset", "[re]set", "(re)set"\r
- return "permissions [re]set <permission> [in <channel>] for <user>: sets or resets the permissions for botuser <user> in channel <channel> (use ? to change the permissions for private addressing)"\r
+ return _("permissions [re]set <permission> [in <channel>] for <user>: sets or resets the permissions for botuser <user> in channel <channel> (use ? to change the permissions for private addressing)")\r
when "view"\r
- return "permissions view [for <user>]: display the permissions for user <user>"\r
+ return _("permissions view [for <user>]: display the permissions for user <user>")\r
else\r
- return "permission topics: syntax, (re)set, view"\r
+ return _("permission topics: syntax, (re)set, view")\r
end\r
when "user"\r
case topic\r
when "show"\r
- return "user show <what> : shows info about the user; <what> can be any of autologin, login-by-mask, netmasks"\r
+ return _("user show <what> : shows info about the user; <what> can be any of autologin, login-by-mask, netmasks")\r
when /^(en|dis)able/\r
- return "user enable|disable <what> : turns on or off <what> (autologin, login-by-mask)"\r
+ return _("user enable|disable <what> : turns on or off <what> (autologin, login-by-mask)")\r
when "set"\r
- return "user set password <blah> : sets the user password to <blah>; passwords can only contain upper and lowercase letters and numbers, and must be at least 4 characters long"\r
+ return _("user set password <blah> : sets the user password to <blah>; passwords can only contain upper and lowercase letters and numbers, and must be at least 4 characters long")\r
when "add", "rm"\r
- return "user add|rm netmask <mask> : adds/removes netmask <mask> from the list of netmasks known to the botuser you're linked to"\r
+ return _("user add|rm netmask <mask> : adds/removes netmask <mask> from the list of netmasks known to the botuser you're linked to")\r
when "reset"\r
- return "user reset <what> : resets <what> to the default values. <what> can be +netmasks+ (the list will be emptied), +autologin+ or +login-by-mask+ (will be reset to the default value) or +password+ (a new one will be generated and you'll be told in private)"\r
+ return _("user reset <what> : resets <what> to the default values. <what> can be +netmasks+ (the list will be emptied), +autologin+ or +login-by-mask+ (will be reset to the default value) or +password+ (a new one will be generated and you'll be told in private)")\r
when "tell"\r
- return "user tell <who> the password for <botuser> : contacts <who> in private to tell him/her the password for <botuser>"\r
+ return _("user tell <who> the password for <botuser> : contacts <who> in private to tell him/her the password for <botuser>")\r
when "create"\r
- return "user create <name> <password> : create botuser named <name> with password <password>. The password can be omitted, in which case a random one will be generated. The <name> should only contain alphanumeric characters and the underscore (_)"\r
+ return _("user create <name> <password> : create botuser named <name> with password <password>. The password can be omitted, in which case a random one will be generated. The <name> should only contain alphanumeric characters and the underscore (_)")\r
when "list"\r
- return "user list : lists all the botusers"\r
+ return _("user list : lists all the botusers")\r
when "destroy"\r
- return "user destroy <botuser> <password> : destroys <botuser>; this function #{Bold}must#{Bold} be called in two steps. On the first call, no password must be specified: <botuser> is then queued for destruction. On the second call, you must specify the correct password for <botuser>, and it will be destroyed. If you want to cancel the destruction, issue the command +user cancel destroy <botuser>+"\r
+ return _("user destroy <botuser> <password> : destroys <botuser>; this function %{highlight}must%{highlight} be called in two steps. On the first call, no password must be specified: <botuser> is then queued for destruction. On the second call, you must specify the correct password for <botuser>, and it will be destroyed. If you want to cancel the destruction, issue the command +user cancel destroy <botuser>+") % {:highlight => Bold}\r
else\r
- return "user topics: show, enable|disable, add|rm netmask, set, reset, tell, create, list, destroy"\r
+ return _("user topics: show, enable|disable, add|rm netmask, set, reset, tell, create, list, destroy")\r
end\r
when "auth"\r
- return "auth <masterpassword>: log in as the bot owner; other commands: login, whoami, permission syntax, permissions [re]set, permissions view, user"\r
+ return _("auth <masterpassword>: log in as the bot owner; other commands: login, whoami, permission syntax, permissions [re]set, permissions view, user")\r
else\r
- return "auth commands: auth, login, whoami, permission[s], user"\r
+ return _("auth commands: auth, login, whoami, permission[s], user")\r
end\r
end\r
\r
def need_args(cmd)\r
- "sorry, I need more arguments to #{cmd}"\r
+ _("sorry, I need more arguments to %{command}") % {:command => cmd}\r
end\r
\r
def not_args(cmd, *stuff)\r
- "I can only #{cmd} these: #{stuff.join(', ')}"\r
+ _("I can only %{command} these: %{arguments}") %\r
+ {:command => cmd, :arguments => stuff.join(', ')}\r
end\r
\r
def set_prop(botuser, prop, val)\r
\r
has_for = splits[-2] == "for"\r
butarget = @bot.auth.get_botuser(splits[-1]) if has_for\r
- return m.reply("you can't mess with #{butarget.username}") if butarget == @bot.auth.botowner && botuser != butarget\r
+ return m.reply(_("you can't mess with %{user}") % {:user => butarget.username}) \\r
+ if butarget == @bot.auth.botowner && botuser != butarget\r
splits.slice!(-2,2) if has_for\r
\r
bools = [:autologin, :"login-by-mask"]\r
case cmd.to_sym\r
\r
when :show\r
- return "you can't see the properties of #{butarget.username}" if botuser != butarget and !botuser.permit?("auth::show::other")\r
+ return _("you can't see the properties of %{user}") %\r
+ {:user => butarget.username} if botuser != butarget &&\r
+ !botuser.permit?("auth::show::other")\r
\r
case splits[1]\r
when nil, "all"\r
props = can_reset\r
when "password"\r
if botuser != butarget\r
- return m.reply("no way I'm telling you the master password!") if butarget == @bot.auth.botowner\r
- return m.reply("you can't ask for someone else's password")\r
+ return m.reply(_("no way I'm telling you the master password!")) if butarget == @bot.auth.botowner\r
+ return m.reply(_("you can't ask for someone else's password"))\r
end\r
- return m.reply("c'mon, you can't be asking me seriously to tell you the password in public!") if m.public?\r
- return m.reply("the password for #{butarget.username} is #{butarget.password}")\r
+ return m.reply(_("c'mon, you can't be asking me seriously to tell you the password in public!")) if m.public?\r
+ return m.reply(_("the password for %{user} is %{password}")) %\r
+ { :user => butarget.username, :password => butarget.password }\r
else\r
props = splits[1..-1]\r
end\r
next if k == :password\r
case k\r
when *bools\r
- str << "can"\r
- str.last << "not" unless ask_bool_prop(butarget, k)\r
- str.last << " #{k}"\r
+ if ask_bool_prop(butarget, k)\r
+ str << _("can %{action}") % {:action => k}\r
+ else\r
+ str << _("can not %{action}") % {:action => k}\r
+ end\r
when :netmasks\r
- str << "knows "\r
if butarget.netmasks.empty?\r
- str.last << "no netmasks"\r
+ str << _("knows no netmasks")\r
else\r
- str.last << butarget.netmasks.join(", ")\r
+ str << _("knows %{netmasks}") % {:netmasks => butarget.netmasks.join(", ")}\r
end\r
end\r
}\r
return m.reply("#{butarget.username} #{str.join('; ')}")\r
\r
when :enable, :disable\r
- return m.reply("you can't change the default user") if butarget == @bot.auth.everyone and !botuser.permit?("auth::edit::other::default")\r
- return m.reply("you can't edit #{butarget.username}") if butarget != botuser and !botuser.permit?("auth::edit::other")\r
+ return m.reply(_("you can't change the default user")) if butarget == @bot.auth.everyone && !botuser.permit?("auth::edit::other::default")\r
+ return m.reply(_("you can't edit %{user}") % {:user => butarget.username}) if butarget != botuser && !botuser.permit?("auth::edit::other")\r
\r
return m.reply(need_args(cmd)) unless splits[1]\r
things = []\r
end\r
}\r
\r
- m.reply "I ignored #{skipped.join(', ')} because " + not_args(cmd, *bools) unless skipped.empty?\r
+ m.reply(_("I ignored %{things} because %{reason}") % {\r
+ :things => skipped.join(', '),\r
+ :reason => not_args(cmd, *bools)}) unless skipped.empty?\r
if things.empty?\r
- m.reply "I haven't changed anything"\r
+ m.reply _("I haven't changed anything")\r
else\r
@bot.auth.set_changed\r
return auth_manage_user(m, {:data => ["show"] + things + ["for", butarget.username] })\r
end\r
\r
when :set\r
- return m.reply("you can't change the default user") if butarget == @bot.auth.everyone and !botuser.permit?("auth::edit::default")\r
- return m.reply("you can't edit #{butarget.username}") if butarget != botuser and !botuser.permit?("auth::edit::other")\r
+ return m.reply(_("you can't change the default user")) if\r
+ butarget == @bot.auth.everyone && !botuser.permit?("auth::edit::default")\r
+ return m.reply(_("you can't edit %{user}") % {:user=>butarget.username}) if\r
+ butarget != botuser && !botuser.permit?("auth::edit::other")\r
\r
return m.reply(need_args(cmd)) unless splits[1]\r
arg = splits[1].to_sym\r
argarg = splits[2]\r
return m.reply(need_args([cmd, splits[1]].join(" "))) unless argarg\r
if arg == :password && m.public?\r
- return m.reply("is that a joke? setting the password in public?")\r
+ return m.reply(_("is that a joke? setting the password in public?"))\r
end\r
set_prop(butarget, arg, argarg)\r
@bot.auth.set_changed\r
auth_manage_user(m, {:data => ["show", arg, "for", butarget.username] })\r
\r
when :reset\r
- return m.reply("you can't change the default user") if butarget == @bot.auth.everyone and !botuser.permit?("auth::edit::default")\r
- return m.reply("you can't edit #{butarget.username}") if butarget != botuser and !botuser.permit?("auth::edit::other")\r
+ return m.reply(_("you can't change the default user")) if\r
+ butarget == @bot.auth.everyone && !botuser.permit?("auth::edit::default")\r
+ return m.reply(_("you can't edit %{user}") % {:user=>butarget.username}) if\r
+ butarget != botuser && !botuser.permit?("auth::edit::other")\r
\r
return m.reply(need_args(cmd)) unless splits[1]\r
things = []\r
end\r
}\r
\r
- m.reply "I ignored #{skipped.join(', ')} because " + not_args(cmd, *can_reset) unless skipped.empty?\r
+ m.reply(_("I ignored %{things} because %{reason}") %\r
+ { :things => skipped.join(', '),\r
+ :reason => not_args(cmd, *can_reset)}) unless skipped.empty?\r
if things.empty?\r
- m.reply "I haven't changed anything"\r
+ m.reply _("I haven't changed anything")\r
else\r
@bot.auth.set_changed\r
- @bot.say m.source, "the password for #{butarget.username} is now #{butarget.password}" if things.include?("password")\r
+ @bot.say(m.source, _("the password for %{user} is now %{password}") %\r
+ {:user => butarget.username, :password => butarget.password}) if\r
+ things.include?("password")\r
return auth_manage_user(m, {:data => (["show"] + things - ["password"]) + ["for", butarget.username]})\r
end\r
\r
when :add, :rm, :remove, :del, :delete\r
- return m.reply("you can't change the default user") if butarget == @bot.auth.everyone and !botuser.permit?("auth::edit::default")\r
- return m.reply("you can't edit #{butarget.username}") if butarget != botuser and !botuser.permit?("auth::edit::other")\r
+ return m.reply(_("you can't change the default user")) if\r
+ butarget == @bot.auth.everyone && !botuser.permit?("auth::edit::default")\r
+ return m.reply(_("you can't edit %{user}") % {:user => butarget.username}) if\r
+ butarget != botuser && !botuser.permit?("auth::edit::other")\r
\r
arg = splits[1]\r
if arg.nil? or arg !~ /netmasks?/ or splits[2].nil?\r
- return m.reply("I can only add/remove netmasks. See +help user add+ for more instructions")\r
+ return m.reply(_("I can only add/remove netmasks. See +help user add+ for more instructions"))\r
end\r
\r
method = cmd.to_sym == :add ? :add_netmask : :delete_netmask\r
return auth_manage_user(m, {:data => ["show", "netmasks", "for", butarget.username] })\r
\r
else\r
- m.reply "sorry, I don't know how to #{m.message}"\r
+ m.reply _("sorry, I don't know how to %{request}") % {:request => m.message}\r
end\r
end\r
\r
begin\r
botuser = @bot.auth.get_botuser(params[:botuser])\r
rescue\r
- return m.reply("coudln't find botuser #{params[:botuser]})")\r
+ return m.reply(_("couldn't find botuser %{user}") % {:user => params[:botuser]})\r
end\r
- m.reply "I'm not telling the master password to anyway, pal" if botuser == @bot.auth.botowner\r
- msg = "the password for botuser #{botuser.username} is #{botuser.password}"\r
+ m.reply(_("I'm not telling the master password to anyway, pal")) if botuser == @bot.auth.botowner\r
+ msg = _("the password for botuser %{user} is %{password}") %\r
+ {:user => botuser.username, :password => botuser.password}\r
@bot.say user, msg\r
- @bot.say m.source, "I told #{user} that " + msg\r
+ @bot.say m.source, _("I told %{user} that %{message}") % {:user => user, :message => msg}\r
end\r
\r
def auth_create_user(m, params)\r
name = params[:name]\r
password = params[:password]\r
- return m.reply("are you nuts, creating a botuser with a publicly known password?") if m.public? and not password.nil?\r
+ return m.reply(_("are you nuts, creating a botuser with a publicly known password?")) if m.public? and not password.nil?\r
begin\r
bu = @bot.auth.create_botuser(name, password)\r
@bot.auth.set_changed\r
rescue => e\r
- m.reply "failed to create #{name}: #{e}"\r
+ m.reply(_("failed to create %{user}: %{exception}") % {:user => name, :exception => e})\r
debug e.inspect + "\n" + e.backtrace.join("\n")\r
return\r
end\r
- m.reply "created botuser #{bu.username}"\r
+ m.reply(_("created botuser %{user}") % {:user => bu.username})\r
end\r
\r
def auth_list_users(m, params)\r
list = @bot.auth.save_array.inject([]) { |list, x| list << x[:username] } - ['everyone', 'owner']\r
if defined?(@destroy_q)\r
list.map! { |x|\r
- @destroy_q.include?(x) ? x + " (queued for destruction)" : x\r
+ @destroy_q.include?(x) ? x + _(" (queued for destruction)") : x\r
}\r
end\r
- return m.reply("I have no botusers other than the default ones") if list.empty?\r
- return m.reply("botuser#{'s' if list.length > 1}: #{list.join(', ')}")\r
+ return m.reply(_("I have no botusers other than the default ones")) if list.empty?\r
+ return m.reply(n_("botuser: %{list}", "botusers: %{list}", list.length) %\r
+ {:list => list.join(', ')})\r
end\r
\r
def auth_destroy_user(m, params)\r
@destroy_q = [] unless defined?(@destroy_q)\r
buname = params[:name]\r
- return m.reply("You can't destroy #{buname}") if ["everyone", "owner"].include?(buname)\r
+ return m.reply(_("You can't destroy %{user}") % {:user => buname}) if\r
+ ["everyone", "owner"].include?(buname)\r
cancel = m.message.split[1] == 'cancel'\r
password = params[:password]\r
\r
h\r
}\r
\r
- return m.reply("no such botuser #{buname}") unless buser_hash.keys.include?(buname)\r
+ return m.reply(_("no such botuser %{user}") % {:user=>buname}) unless\r
+ buser_hash.keys.include?(buname)\r
\r
if cancel\r
if @destroy_q.include?(buname)\r
@destroy_q.delete(buname)\r
- m.reply "#{buname} removed from the destruction queue"\r
+ m.reply(_("%{user} removed from the destruction queue") % {:user=>buname})\r
else\r
- m.reply "#{buname} was not queued for destruction"\r
+ m.reply(_("%{user} was not queued for destruction") % {:user=>buname})\r
end\r
return\r
end\r
\r
if password.nil?\r
if @destroy_q.include?(buname)\r
- rep = "#{buname} already queued for destruction"\r
+ return m.reply(_("%{user} already queued for destruction, use %{highlight}user destroy %{user} <password>%{highlight} to destroy it") % {:user=>buname, :highlight=>Bold})\r
else\r
@destroy_q << buname\r
- rep = "#{buname} queued for destruction"\r
+ return m.reply(_("%{user} queued for destruction, use %{highlight}user destroy %{user} <password>%{highlight} to destroy it") % {:user=>buname, :highlight=>Bold})\r
end\r
- return m.reply(rep + ", use #{Bold}user destroy #{buname} <password>#{Bold} to destroy it")\r
else\r
begin\r
- return m.reply("#{buname} is not queued for destruction yet") unless @destroy_q.include?(buname)\r
- return m.reply("wrong password for #{buname}") unless buser_hash[buname][:password] == password\r
+ return m.reply(_("%{user} is not queued for destruction yet") %\r
+ {:user=>buname}) unless @destroy_q.include?(buname)\r
+ return m.reply(_("wrong password for %{user}") %\r
+ {:user=>buname}) unless buser_hash[buname][:password] == password\r
buser_array.delete_if { |u|\r
u[:username] == buname\r
}\r
@bot.auth.load_array(buser_array, true)\r
@bot.auth.set_changed\r
rescue => e\r
- return m.reply("failed: #{e}")\r
+ return m.reply(_("failed: %{exception}") % {:exception => e})\r
end\r
- return m.reply("botuser #{buname} destroyed")\r
+ return m.reply(_("botuser %{user} destroyed") % {:user => buname})\r
end\r
\r
end\r
def auth_copy_ren_user(m, params)\r
source = Auth::BotUser.sanitize_username(params[:source])\r
dest = Auth::BotUser.sanitize_username(params[:dest])\r
- return m.reply("please don't touch the default users") if (["everyone", "owner"] | [source, dest]).length < 4\r
+ return m.reply(_("please don't touch the default users")) unless\r
+ (["everyone", "owner"] & [source, dest]).empty?\r
\r
buser_array = @bot.auth.save_array\r
buser_hash = buser_array.inject({}) { |h, u|\r
h\r
}\r
\r
- return m.reply("no such botuser #{source}") unless buser_hash.keys.include?(source)\r
- return m.reply("botuser #{dest} exists already") if buser_hash.keys.include?(dest)\r
+ return m.reply(_("no such botuser %{source}") % {:source=>source}) unless\r
+ buser_hash.keys.include?(source)\r
+ return m.reply(_("botuser %{dest} exists already") % {:dest=>dest}) if\r
+ buser_hash.keys.include?(dest)\r
\r
copying = m.message.split[1] == "copy"\r
begin\r
@bot.auth.load_array(buser_array, true)\r
@bot.auth.set_changed\r
rescue => e\r
- return m.reply("failed: #{e}")\r
+ return m.reply(_("failed: %{exception}") % {:exception=>e})\r
end\r
- return m.reply("botuser #{source} copied to #{dest}") if copying\r
- return m.reply("botuser #{source} renamed to #{dest}")\r
+ return m.reply(_("botuser %{source} copied to %{dest}") %\r
+ {:source=>source, :dest=>dest}) if copying\r
+ return m.reply(_("botuser %{source} renamed to %{dest}") %\r
+ {:source=>source, :dest=>dest})\r
\r
end\r
\r
\r
what.delete("all")\r
\r
- m.reply "selecting data to export ..."\r
+ m.reply _("selecting data to export ...")\r
\r
buser_array = @bot.auth.save_array\r
buser_hash = buser_array.inject({}) { |h, u|\r
}\r
end\r
\r
- m.reply "preparing data for export ..."\r
+ m.reply _("preparing data for export ...")\r
begin\r
yaml_hash = {}\r
we_want.each { |k, val|\r
}\r
}\r
rescue => e\r
- m.reply "failed to prepare data: #{e}"\r
+ m.reply _("failed to prepare data: %{exception}") % {:exception=>e}\r
debug e.backtrace.dup.unshift(e.inspect).join("\n")\r
return\r
end\r
\r
- m.reply "exporting to #{exportfile} ..."\r
+ m.reply _("exporting to %{file} ...") % {:file=>exportfile}\r
begin\r
# m.reply yaml_hash.inspect\r
File.open(exportfile, "w") do |file|\r
file.puts YAML::dump(yaml_hash)\r
end\r
rescue => e\r
- m.reply "failed to export users: #{e}"\r
+ m.reply _("failed to export users: %{exception}") % {:exception=>e}\r
debug e.backtrace.dup.unshift(e.inspect).join("\n")\r
return\r
end\r
- m.reply "done"\r
+ m.reply _("done")\r
end\r
\r
def auth_import(m, params)\r
\r
what.delete("all")\r
\r
- m.reply "reading #{importfile} ..."\r
+ m.reply _("reading %{file} ...") % {:file=>importfile}\r
begin\r
yaml_hash = YAML::load_file(importfile)\r
rescue => e\r
- m.reply "failed to import from: #{e}"\r
+ m.reply _("failed to import from: %{exception}") % {:exception=>e}\r
debug e.backtrace.dup.unshift(e.inspect).join("\n")\r
return\r
end\r
\r
# m.reply yaml_hash.inspect\r
\r
- m.reply "selecting data to import ..."\r
+ m.reply _("selecting data to import ...")\r
\r
if what.empty?\r
we_want = yaml_hash\r
}\r
end\r
\r
- m.reply "parsing data from import ..."\r
+ m.reply _("parsing data from import ...")\r
\r
buser_hash = {}\r
\r
}\r
}\r
rescue => e\r
- m.reply "failed to parse data: #{e}"\r
+ m.reply _("failed to parse data: %{exception}") % {:exception=>e}\r
debug e.backtrace.dup.unshift(e.inspect).join("\n")\r
return\r
end\r
@bot.auth.load_array(new_buser_array, true)\r
@bot.auth.set_changed\r
\r
- m.reply "done"\r
+ m.reply _("done")\r
end\r
\r
end\r
def help(cmd, topic="")\r
case cmd\r
when "quit"\r
- return "quit [<message>] => quit IRC with message <message>"\r
+ _("quit [<message>] => quit IRC with message <message>")\r
when "restart"\r
- return "restart => completely stop and restart the bot (including reconnect)"\r
+ _("restart => completely stop and restart the bot (including reconnect)")\r
when "join"\r
- return "join <channel> [<key>] => join channel <channel> with secret key <key> if specified. #{myself} also responds to invites if you have the required access level"\r
+ _("join <channel> [<key>] => join channel <channel> with secret key <key> if specified. #{myself} also responds to invites if you have the required access level")\r
when "part"\r
- return "part <channel> => part channel <channel>"\r
+ _("part <channel> => part channel <channel>")\r
when "hide"\r
- return "hide => part all channels"\r
+ _("hide => part all channels")\r
when "nick"\r
- return "nick <nick> => attempt to change nick to <nick>"\r
+ _("nick <nick> => attempt to change nick to <nick>")\r
when "say"\r
- return "say <channel>|<nick> <message> => say <message> to <channel> or in private message to <nick>"\r
+ _("say <channel>|<nick> <message> => say <message> to <channel> or in private message to <nick>")\r
when "action"\r
- return "action <channel>|<nick> <message> => does a /me <message> to <channel> or in private message to <nick>"\r
+ _("action <channel>|<nick> <message> => does a /me <message> to <channel> or in private message to <nick>")\r
when "quiet"\r
- return "quiet [in here|<channel>] => with no arguments, stop speaking in all channels, if \"in here\", stop speaking in this channel, or stop speaking in <channel>"\r
+ _("quiet [in here|<channel>] => with no arguments, stop speaking in all channels, if \"in here\", stop speaking in this channel, or stop speaking in <channel>")\r
when "talk"\r
- return "talk [in here|<channel>] => with no arguments, resume speaking in all channels, if \"in here\", resume speaking in this channel, or resume speaking in <channel>"\r
+ _("talk [in here|<channel>] => with no arguments, resume speaking in all channels, if \"in here\", resume speaking in this channel, or resume speaking in <channel>")\r
when "version"\r
- return "version => describes software version"\r
+ _("version => describes software version")\r
when "ping"\r
- return "ping => replies with a pong"\r
+ _("ping => replies with a pong")\r
when "mode"\r
- return "mode <channel> <mode> <nicks> => set channel modes for <nicks> on <channel> to <mode>"\r
+ _("mode <channel> <mode> <nicks> => set channel modes for <nicks> on <channel> to <mode>")\r
# when "botsnack"\r
# return "botsnack => reward #{myself} for being good"\r
# when "hello"\r
# return "hello|hi|hey|yo [#{myself}] => greet the bot"\r
else\r
- return "#{name}: quit, restart, join, part, hide, save, nick, say, action, topic, quiet, talk, version, ping, mode"#, botsnack, hello"\r
+ _("%{name}: quit, restart, join, part, hide, save, nick, say, action, topic, quiet, talk,version, ping, mode") % {:name=>name}\r
+ #, botsnack, hello\r
end\r
end\r
end\r
modules.push key unless modules.include?(name)\r
end\r
if modules.empty?\r
- m.reply "no such module #{params[:module]}"\r
+ m.reply _("no such module %{module}") % {:module => params[:module]}\r
else\r
m.reply modules.join(", ")\r
end\r
def handle_get(m, params)\r
key = params[:key].to_s.intern\r
unless @bot.config.items.has_key?(key)\r
- m.reply "no such config key #{key}"\r
+ m.reply _("no such config key %{key}") % {:key => key}\r
return\r
end\r
return if !@bot.auth.allow?(@bot.config.items[key].auth_path, m.source, m.replyto)\r
def handle_desc(m, params)\r
key = params[:key].to_s.intern\r
unless @bot.config.items.has_key?(key)\r
- m.reply "no such config key #{key}"\r
+ m.reply _("no such config key %{key}") % {:key => key}\r
end\r
puts @bot.config.items[key].inspect\r
m.reply "#{key}: #{@bot.config.items[key].desc}"\r
def handle_unset(m, params)\r
key = params[:key].to_s.intern\r
unless @bot.config.items.has_key?(key)\r
- m.reply "no such config key #{key}"\r
+ m.reply _("no such config key %{key}") % {:key => key}\r
end\r
return if !@bot.auth.allow?(@bot.config.items[key].auth_path, m.source, m.replyto)\r
@bot.config.items[key].unset\r
handle_get(m, params)\r
- m.reply "this config change will take effect on the next restart" if @bot.config.items[key].requires_restart\r
- m.reply "this config change will take effect on the next rescan" if @bot.config.items[key].requires_rescan\r
+ m.reply _("this config change will take effect on the next restart") if @bot.config.items[key].requires_restart\r
+ m.reply _("this config change will take effect on the next rescan") if @bot.config.items[key].requires_rescan\r
end\r
\r
def handle_set(m, params)\r
key = params[:key].to_s.intern\r
value = params[:value].join(" ")\r
unless @bot.config.items.has_key?(key)\r
- m.reply "no such config key #{key}" unless params[:silent]\r
+ m.reply _("no such config key %{key}") % {:key => key} unless params[:silent]\r
return false\r
end\r
return false if !@bot.auth.allow?(@bot.config.items[key].auth_path, m.source, m.replyto)\r
begin\r
@bot.config.items[key].set_string(value)\r
rescue ArgumentError => e\r
- m.reply "failed to set #{key}: #{e.message}" unless params[:silent]\r
+ m.reply _("failed to set %{key}: %{error}") % {:key => key, :error => e.message} unless params[:silent]\r
return false\r
end\r
if @bot.config.items[key].requires_restart\r
- m.reply "this config change will take effect on the next restart" unless params[:silent]\r
+ m.reply _("this config change will take effect on the next restart") unless params[:silent]\r
return :restart\r
elsif @bot.config.items[key].requires_rescan\r
- m.reply "this config change will take effect on the next rescan" unless params[:silent]\r
+ m.reply _("this config change will take effect on the next rescan") unless params[:silent]\r
return :rescan\r
else\r
m.okay unless params[:silent]\r
key = params[:key].to_s.intern\r
value = params[:value]\r
unless @bot.config.items.has_key?(key)\r
- m.reply "no such config key #{key}"\r
+ m.reply _("no such config key %{key}") % {:key => key}\r
return\r
end\r
unless @bot.config.items[key].kind_of?(BotConfigArrayValue)\r
- m.reply "config key #{key} is not an array"\r
+ m.reply _("config key %{key} is not an array") % {:key => key}\r
return\r
end\r
return if !@bot.auth.allow?(@bot.config.items[key].auth_path, m.source, m.replyto)\r
begin\r
@bot.config.items[key].add(value)\r
rescue ArgumentError => e\r
- m.reply "failed to add #{value} to #{key}: #{e.message}"\r
+ m.reply _("failed to add %{value} to %{key}: %{error}") % {:value => value, :key => key, :error => e.message}\r
return\r
end\r
handle_get(m,{:key => key})\r
- m.reply "this config change will take effect on the next restart" if @bot.config.items[key].requires_restart\r
- m.reply "this config change will take effect on the next rescan" if @bot.config.items[key].requires_rescan\r
+ m.reply _("this config change will take effect on the next restart") if @bot.config.items[key].requires_restart\r
+ m.reply _("this config change will take effect on the next rescan") if @bot.config.items[key].requires_rescan\r
end\r
\r
def handle_rm(m, params)\r
key = params[:key].to_s.intern\r
value = params[:value]\r
unless @bot.config.items.has_key?(key)\r
- m.reply "no such config key #{key}"\r
+ m.reply _("no such config key %{key}") % {:key => key}\r
return\r
end\r
unless @bot.config.items[key].kind_of?(BotConfigArrayValue)\r
- m.reply "config key #{key} is not an array"\r
+ m.reply _("config key %{key} is not an array") % {:key => key}\r
return\r
end\r
return if !@bot.auth.allow?(@bot.config.items[key].auth_path, m.source, m.replyto)\r
begin\r
@bot.config.items[key].rm(value)\r
rescue ArgumentError => e\r
- m.reply "failed to remove #{value} from #{key}: #{e.message}"\r
+ m.reply _("failed to remove %{value} from %{key}: %{error}") % {:value => value, :key => key, :error => e.message}\r
return\r
end\r
handle_get(m,{:key => key})\r
- m.reply "this config change will take effect on the next restart" if @bot.config.items[key].requires_restart\r
- m.reply "this config change will take effect on the next rescan" if @bot.config.items[key].requires_rescan\r
+ m.reply _("this config change will take effect on the next restart") if @bot.config.items[key].requires_restart\r
+ m.reply _("this config change will take effect on the next rescan") if @bot.config.items[key].requires_rescan\r
end\r
\r
def bot_save(m, param)\r
end\r
\r
def bot_rescan(m, param)\r
- m.reply "saving ..."\r
+ m.reply _("saving ...")\r
@bot.save\r
- m.reply "rescanning ..."\r
+ m.reply _("rescanning ...")\r
@bot.rescan\r
- m.reply "done. #{@bot.plugins.status(true)}"\r
+ m.reply _("done. %{plugin_status}") % {:plugin_status => @bot.plugins.status(true)}\r
end\r
\r
def bot_nick(m, param)\r
# end\r
\r
def bot_version(m, param)\r
- m.reply "I'm a v. #{$version} rubybot, (c) Tom Gilbert and the rbot development team - http://linuxbrit.co.uk/rbot/"\r
+ m.reply _("I'm a v. %{version} rubybot, (c) Tom Gilbert and the rbot development team - http://linuxbrit.co.uk/rbot/") % {:version => $version}\r
end\r
\r
def handle_help(m, params)\r
when "config"\r
case topic\r
when ""\r
- "config-related tasks: config topics, save, rescan"\r
+ _("config-related tasks: config topics, save, rescan")\r
when "list"\r
- "config list => list configuration modules, config list <module> => list configuration keys for module <module>"\r
+ _("config list => list configuration modules, config list <module> => list configuration keys for module <module>")\r
when "get"\r
- "config get <key> => get configuration value for key <key>"\r
+ _("config get <key> => get configuration value for key <key>")\r
when "unset"\r
- "reset key <key> to the default"\r
+ _("reset key <key> to the default")\r
when "set"\r
- "config set <key> <value> => set configuration value for key <key> to <value>"\r
+ _("config set <key> <value> => set configuration value for key <key> to <value>")\r
when "desc"\r
- "config desc <key> => describe what key <key> configures"\r
+ _("config desc <key> => describe what key <key> configures")\r
when "add"\r
- "config add <value> to <key> => add value <value> to key <key> if <key> is an array"\r
+ _("config add <value> to <key> => add value <value> to key <key> if <key> is an array")\r
when "rm"\r
- "config rm <value> from <key> => remove value <value> from key <key> if <key> is an array"\r
+ _("config rm <value> from <key> => remove value <value> from key <key> if <key> is an array")\r
else\r
- "config module - bot configuration. usage: list, desc, get, set, unset, add, rm"\r
+ _("config module - bot configuration. usage: list, desc, get, set, unset, add, rm")\r
# else\r
# "no help for config #{topic}"\r
end\r
when "save"\r
- "save => save current dynamic data and configuration"\r
+ _("save => save current dynamic data and configuration")\r
when "rescan"\r
- "rescan => reload modules and static facts"\r
+ _("rescan => reload modules and static facts")\r
else\r
- "config-related tasks: config, save, rescan"\r
+ _("config-related tasks: config, save, rescan")\r
end\r
end\r
\r
# The following global is used for the improved signal handling.
$interrupted = 0
+require 'rbot/load-gettext'
+
# these first
require 'rbot/rbotconfig'
require 'rbot/config'
:default => [], :wizard => true,
:desc => "What channels the bot should always join at startup. List multiple channels using commas to separate. If a channel requires a password, use a space after the channel name. e.g: '#chan1, #chan2, #secretchan secritpass, #chan3'")
BotConfig.register BotConfigArrayValue.new('irc.ignore_users',
- :default => [],
+ :default => [],
:desc => "Which users to ignore input from. This is mainly to avoid bot-wars triggered by creative people")
BotConfig.register BotConfigIntegerValue.new('core.save_every',
end
# See http://blog.humlab.umu.se/samuel/archives/000107.html
- # for the backgrounding code
+ # for the backgrounding code
if $daemonize
begin
exit if fork
}
}
@client[:nicktaken] = proc { |data|
- new = "#{data[:nick]}_"
+ new = "#{data[:nick]}_"
nickchg new
# If we're setting our nick at connection because our choice was taken,
# we have to fix our nick manually, because there will be no NICK message
quit if $interrupted > 0
realname = @config['irc.name'].clone || 'Ruby bot'
- realname << ' ' + COPYRIGHT_NOTICE if @config['irc.name_copyright']
+ realname << ' ' + COPYRIGHT_NOTICE if @config['irc.name_copyright']
@socket.emergency_puts "PASS " + @config['server.password'] if @config['server.password']
@socket.emergency_puts "NICK #{@config['irc.nick']}\nUSER #{@config['irc.user']} 4 #{@socket.server_uri.host} :#{realname}"
--- /dev/null
+# load gettext module and provide fallback in case of failure
+
+require 'stringio'
+
+# try to load gettext, or provide fake getttext functions
+begin
+ require 'gettext'
+ include GetText
+ bindtextdomain 'rbot'
+
+ module GetText
+ # patch for ruby-gettext 1.9.0 to cope with anonymous modules used by rbot
+ # FIXME remove the patch when ruby-gettext is fixed, or rbot switches to named modules
+ # fix for module names that are not constant names
+ def bound_targets(klass) # :nodoc:
+ ret = []
+ ary = klass.name.split(/::/)
+ while(v = ary.shift)
+ begin
+ ret.unshift(((ret.size == 0) ?
+ Object.const_get(v) : ret[0].const_get(v)))
+ rescue NameError
+ # when an anonymous module is encountered, only the previous modules
+ # are returned
+ break
+ end
+ end
+ ((ret + klass.ancestors + [GetText]) & @@__textdomainmanagers.keys).uniq
+ end
+ end
+
+ debug 'using ruby-gettext'
+ gettext_info = StringIO.new
+ current_textdomain_info(:out=>gettext_info)
+ gettext_info.string.each_line {|l| debug l}
+
+rescue LoadError
+ warn 'ruby-gettext package not available; translations are disabled'
+
+ # dummy functions that return msg_id without translation
+ def _(s)
+ s
+ end
+
+ def N_(s)
+ s
+ end
+
+ def n_(s_single, s_plural, n)
+ n > 1 ? s_plural : s_single
+ end
+
+ def s_(*args)
+ args[0]
+ end
+
+ # the following extension to String#% is from ruby-gettext's string.rb file.
+ # it needs to be included in the fallback since the source already use this form
+
+=begin
+ string.rb - Extension for String.
+
+ Copyright (C) 2005,2006 Masao Mutoh
+
+ You may redistribute it and/or modify it under the same
+ license terms as Ruby.
+=end
+
+ # Extension for String class.
+ #
+ # String#% method which accept "named argument". The translator can know
+ # the meaning of the msgids using "named argument" instead of %s/%d style.
+ class String
+ alias :_old_format_m :% # :nodoc:
+
+ # call-seq:
+ # %(arg)
+ # %(hash)
+ #
+ # Format - Uses str as a format specification, and returns the result of applying it to arg.
+ # If the format specification contains more than one substitution, then arg must be
+ # an Array containing the values to be substituted. See Kernel::sprintf for details of the
+ # format string. This is the default behavior of the String class.
+ # * arg: an Array or other class except Hash.
+ # * Returns: formatted String
+ #
+ # (e.g.) "%s, %s" % ["Masao", "Mutoh"]
+ #
+ # Also you can use a Hash as the "named argument". This is recommanded way for Ruby-GetText
+ # because the translators can understand the meanings of the msgids easily.
+ # * hash: {:key1 => value1, :key2 => value2, ... }
+ # * Returns: formatted String
+ #
+ # (e.g.) "%{firstname}, %{familyname}" % {:firstname => "Masao", :familyname => "Mutoh"}
+ def %(args)
+ if args.kind_of?(Hash)
+ ret = dup
+ args.each {|key, value|
+ ret.gsub!(/\%\{#{key}\}/, value.to_s)
+ }
+ ret
+ else
+ ret = gsub(/%\{/, '%%{')
+ begin
+ ret._old_format_m(args)
+ rescue ArgumentError
+ $stderr.puts " The string:#{ret}"
+ $stderr.puts " args:#{args.inspect}"
+ end
+ end
+ end
+ end
+end
# default usage method provided as a utility for simple plugins. The
# MessageMapper uses 'usage' as its default fallback method.
def usage(m, params = {})
- m.reply "incorrect usage, ask for help using '#{@bot.nick}: help #{m.plugin}'"
+ m.reply(_("incorrect usage, ask for help using '%{command}'") % {:command => "#{@bot.nick}: help #{m.plugin}"})
end
end
end
def status(short=false)
- list = ""
+ output = []
if self.core_length > 0
- list << "#{self.core_length} core module#{'s' if core_length > 1}"
if short
- list << " loaded"
+ output << n_("%{count} core module loaded", "%{count} core modules loaded",
+ self.core_length) % {:count => self.core_length}
else
- list << ": " + core_modules.collect{ |p| p.name}.sort.join(", ")
+ output << n_("%{count} core module: %{list}",
+ "%{count} core modules: %{list}", self.core_length) %
+ { :count => self.core_length,
+ :list => core_modules.collect{ |p| p.name}.sort.join(", ") }
end
else
- list << "no core botmodules loaded"
+ output << _("no core botmodules loaded")
end
# Active plugins first
if(self.length > 0)
- list << "; #{self.length} plugin#{'s' if length > 1}"
if short
- list << " loaded"
+ output << n_("%{count} plugin loaded", "%{count} plugins loaded",
+ self.length) % {:count => self.length}
else
- list << ": " + plugins.collect{ |p| p.name}.sort.join(", ")
+ output << n_("%{count} plugin: %{list}",
+ "%{count} plugins: %{list}", self.length) %
+ { :count => self.length,
+ :list => core_modules.collect{ |p| p.name}.sort.join(", ") }
end
else
- list << "no plugins active"
+ output << "no plugins active"
end
# Ignored plugins next
unless @ignored.empty? or @failures_shown
- list << "; #{Underline}#{@ignored.length} plugin#{'s' if @ignored.length > 1} ignored#{Underline}"
- list << ": use #{Bold}help ignored plugins#{Bold} to see why" unless short
+ if short
+ output << n_("%{highlight}%{count} plugin ignored%{highlight}",
+ "%{highlight}%{count} plugins ignored%{highlight}",
+ @ignored.length) %
+ { :count => @ignored.length, :highlight => Underline }
+ else
+ output << n_("%{highlight}%{count} plugin ignored%{highlight}: use %{bold}%{command}%{bold} to see why",
+ "%{highlight}%{count} plugins ignored%{highlight}: use %{bold}%{command}%{bold} to see why",
+ @ignored.length) %
+ { :count => @ignored.length, :highlight => Underline,
+ :bold => Bold, :command => "help ignored plugins"}
+ end
end
# Failed plugins next
unless @failed.empty? or @failures_shown
- list << "; #{Reverse}#{@failed.length} plugin#{'s' if @failed.length > 1} failed to load#{Reverse}"
- list << ": use #{Bold}help failed plugins#{Bold} to see why" unless short
+ if short
+ output << n_("%{highlight}%{count} plugin failed to load%{highlight}",
+ "%{highlight}%{count} plugins failed to load%{highlight}",
+ @ignored.length) %
+ { :count => @ignored.length, :highlight => Reverse }
+ else
+ output << n_("%{highlight}%{count} plugin failed to load%{highlight}: use %{bold}%{command}%{bold} to see why",
+ "%{highlight}%{count} plugins failed to load%{highlight}: use %{bold}%{command}%{bold} to see why",
+ @ignored.length) %
+ { :count => @ignored.length, :highlight => Reverse,
+ :bold => Bold, :command => "#{Bold}help failed plugins#{Bold}"}
+ end
end
- list
+ output.join '; '
end
# return list of help topics (plugin names)
case topic
when /fail(?:ed)?\s*plugins?.*(trace(?:back)?s?)?/
# debug "Failures: #{@failed.inspect}"
- return "no plugins failed to load" if @failed.empty?
- return @failed.inject(Array.new) { |list, p|
- list << "#{Bold}#{p[:name]}#{Bold} in #{p[:dir]} failed"
- list << "with error #{p[:reason].class}: #{p[:reason]}"
- list << "at #{p[:reason].backtrace.join(', ')}" if $1 and not p[:reason].backtrace.empty?
- list
+ return _("no plugins failed to load") if @failed.empty?
+ return @failed.collect { |p|
+ _('%{highlight}%{plugin}%{highlight} in %{dir}failed with error %{exception}: %{reason}') % {
+ :highlight => Bold, :plugin => p[:name], :dir => p[:dir],
+ :exception => p[:reason].class, :reason => p[:reason],
+ } + if $1 && !p[:reason].backtrace.empty?
+ _('at %{backtrace}') % {:backtrace => p[:reason].backtrace.join(', ')}
+ else
+ ''
+ end
}.join("\n")
when /ignored?\s*plugins?/
- return "no plugins were ignored" if @ignored.empty?
+ return _('no plugins were ignored') if @ignored.empty?
tmp = Hash.new
@ignored.each do |p|
- reason = p[:loaded] ? 'overruled by previous' : p[:reason].to_s
+ reason = p[:loaded] ? _('overruled by previous') : _(p[:reason].to_s)
((tmp[p[:dir]] ||= Hash.new)[reason] ||= Array.new).push(p[:name])
end
return tmp.map do |dir, reasons|
+ # FIXME get rid of these string concatenations to make gettext easier
s = reasons.map { |r, list|
list.map { |_| _.sub(/\.rb$/, '') }.join(', ') + " (#{r})"
}.join('; ')
# Nope, let's see if it's a command, and ask for help at the corresponding botmodule
k = key.to_sym
if commands.has_key?(k)
- p = commands[k][:botmodule]
+ p = commands[k][:botmodule]
begin
return p.help(key, params)
rescue Exception => err
# work with is @bot.botclass.
def upgrade_data
if File.exist?("#{@bot.botclass}/registry.db")
- log "upgrading old-style (rbot 0.9.5 or earlier) plugin registry to new format"
+ log _("upgrading old-style (rbot 0.9.5 or earlier) plugin registry to new format")
old = BDB::Hash.open("#{@bot.botclass}/registry.db", nil,
"r+", 0600)
new = BDB::CIBtree.open("#{@bot.botclass}/plugin_registry.db", nil,
Dir.mkdir("#{@bot.botclass}/registry") unless File.exist?("#{@bot.botclass}/registry")
env = BDB::Env.open("#{@bot.botclass}", BDB::INIT_TRANSACTION | BDB::CREATE | BDB::RECOVER)# | BDB::TXN_NOSYNC)
dbs = Hash.new
- log "upgrading previous (rbot 0.9.9 or earlier) plugin registry to new split format"
+ log _("upgrading previous (rbot 0.9.9 or earlier) plugin registry to new split format")
old = BDB::CIBtree.open("#{@bot.botclass}/plugin_registry.db", nil,
"r+", 0600, "env" => env)
old.each {|k,v|
dirs.length.times { |i|
dir = dirs[0,i+1].join("/")+"/"
unless File.exist?(dir)
- log "creating subregistry directory #{dir}"
- Dir.mkdir(dir)
+ log _("creating subregistry directory #{dir}")
+ Dir.mkdir(dir)
end
}
end
unless dbs.has_key?(prefix)
- log "creating db #{@bot.botclass}/registry/#{prefix}.db"
+ log _("creating db #{@bot.botclass}/registry/#{prefix}.db")
dbs[prefix] = BDB::CIBtree.open("#{@bot.botclass}/registry/#{prefix}.db",
nil, BDB::CREATE | BDB::EXCL,
0600, "env" => env)
old.close
File.rename("#{@bot.botclass}/plugin_registry.db", "#{@bot.botclass}/plugin_registry.db.old")
dbs.each {|k,v|
- log "closing db #{k}"
+ log _("closing db #{k}")
v.close
}
env.close
dir = dirs[0,i+1].join("/")+"/"
unless File.exist?(dir)
debug "creating subregistry directory #{dir}"
- Dir.mkdir(dir)
+ Dir.mkdir(dir)
end
}
@registry = nil
begin
Marshal.restore(val)
rescue Exception => e
- error "failed to restore marshal data for #{val.inspect}, attempting recovery or fallback to default"
+ error _("failed to restore marshal data for #{val.inspect}, attempting recovery or fallback to default")
debug e
if @recovery
begin
return @recovery.call(val)
rescue Exception => ee
- error "marshal recovery failed, trying default"
+ error _("marshal recovery failed, trying default")
debug ee
end
end
--- /dev/null
+# Gettext template file for rbot
+# Copyright (C) 2007 Tom Gilbert
+# This file is distributed under the same license as the PACKAGE package.
+# Tom Gilbert <tom@linuxbrit.co.uk>, 2007.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: rbot\n"
+"POT-Creation-Date: 2007-07-09 03:58-0400\n"
+"PO-Revision-Date: 2007-07-09 01:36-0400\n"
+"Last-Translator: Yaohan Chen <yaohan.chen@gmail.com>\n"
+"Language-Team: Japanese\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+
+#: lib/rbot/load-gettext.rb:32
+msgid "using ruby-gettext"
+msgstr ""
+
+#: lib/rbot/registry.rb:19
+msgid ""
+"upgrading old-style (rbot 0.9.5 or earlier) plugin registry to new format"
+msgstr ""
+
+#: lib/rbot/registry.rb:39
+msgid ""
+"upgrading previous (rbot 0.9.9 or earlier) plugin registry to new split "
+"format"
+msgstr ""
+
+#: lib/rbot/registry.rb:188
+msgid "marshal recovery failed, trying default"
+msgstr ""
+
+#: lib/rbot/plugins.rb:237
+msgid "incorrect usage, ask for help using '%{command}'"
+msgstr ""
+
+#: lib/rbot/plugins.rb:400
+msgid "Botmodule loading path cleared"
+msgstr ""
+
+#: lib/rbot/plugins.rb:477
+msgid "%{count} core module loaded"
+msgid_plural "%{count} core modules loaded"
+msgstr[0] "コールモジュール%{count}つをロードした"
+
+#: lib/rbot/plugins.rb:480
+msgid "%{count} core module: %{list}"
+msgid_plural "%{count} core modules: %{list}"
+msgstr[0] "コールモジュール%{count}つ: %{list}"
+
+#: lib/rbot/plugins.rb:486
+msgid "no core botmodules loaded"
+msgstr ""
+
+#: lib/rbot/plugins.rb:491
+msgid "%{count} plugin loaded"
+msgid_plural "%{count} plugins loaded"
+msgstr[0] ""
+
+#: lib/rbot/plugins.rb:494
+msgid "%{count} plugin: %{list}"
+msgid_plural "%{count} plugins: %{list}"
+msgstr[0] ""
+
+#: lib/rbot/plugins.rb:505
+msgid "%{highlight}%{count} plugin ignored%{highlight}"
+msgid_plural "%{highlight}%{count} plugins ignored%{highlight}"
+msgstr[0] ""
+
+#: lib/rbot/plugins.rb:510
+msgid ""
+"%{highlight}%{count} plugin ignored%{highlight}: use %{bold}%{command}%"
+"{bold} to see why"
+msgid_plural ""
+"%{highlight}%{count} plugins ignored%{highlight}: use %{bold}%{command}%"
+"{bold} to see why"
+msgstr[0] ""
+
+#: lib/rbot/plugins.rb:520
+msgid "%{highlight}%{count} plugin failed to load%{highlight}"
+msgid_plural "%{highlight}%{count} plugins failed to load%{highlight}"
+msgstr[0] ""
+
+#: lib/rbot/plugins.rb:525
+msgid ""
+"%{highlight}%{count} plugin failed to load%{highlight}: use %{bold}%"
+"{command}%{bold} to see why"
+msgid_plural ""
+"%{highlight}%{count} plugins failed to load%{highlight}: use %{bold}%"
+"{command}%{bold} to see why"
+msgstr[0] ""
+
+#: lib/rbot/plugins.rb:555
+msgid "no plugins failed to load"
+msgstr ""
+
+#: lib/rbot/plugins.rb:557
+msgid ""
+"%{highlight}%{plugin}%{highlight} in %{dir}failed with error %{exception}: %"
+"{reason}"
+msgstr ""
+
+#: lib/rbot/plugins.rb:561
+msgid "at %{backtrace}"
+msgstr ""
+
+#: lib/rbot/plugins.rb:567
+msgid "no plugins were ignored"
+msgstr ""
+
+#: lib/rbot/plugins.rb:571
+msgid "overruled by previous"
+msgstr ""
+
+#: lib/rbot/botuser.rb:22
+msgid "Password for the bot owner"
+msgstr ""
+
+#: lib/rbot/botuser.rb:25
+msgid ""
+"Set false to prevent new botusers from logging in without a password when "
+"the user netmask is known"
+msgstr ""
+
+#: lib/rbot/botuser.rb:28
+msgid ""
+"Set false to prevent new botusers from recognizing IRC users without a need "
+"to manually login"
+msgstr ""
+
+#: lib/rbot/botuser.rb:686
+msgid "%{user}, you don't have '%{command}' permissions here"
+msgstr ""
+
+#: lib/rbot/config.rb:259
+msgid "Not writing conf.yaml (unchanged)"
+msgstr ""
+
+#: lib/rbot/config.rb:263
+msgid "Writing new conf.yaml ..."
+msgstr ""
+
+#: lib/rbot/config.rb:271
+msgid "Officializing conf.yaml ..."
+msgstr ""
+
+#: lib/rbot/config.rb:304
+msgid "First time rbot configuration wizard"
+msgstr ""
+
+#: lib/rbot/config.rb:307
+msgid "This wizard will ask you a few questions to get you started."
+msgstr ""
+
+#: lib/rbot/config.rb:308
+msgid ""
+"The rest of rbot's configuration can be manipulated via IRC once rbot is "
+"connected and you are auth'd."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:62
+msgid "please do not use + or - in front of command %{command} when resetting"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:64
+msgid "+ or - expected in front of %{string}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:86
+msgid "trailing comma"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:87
+msgid "you probably forgot a comma"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:102 lib/rbot/core/auth.rb:156
+msgid "couldn't find botuser %{name}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:104
+msgid "you can't change permissions for %{username}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:111
+msgid "couldn't satisfy your request: %{errors}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:150
+msgid "you are owner, you can do anything"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:153
+msgid "owner can do anything"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:164
+msgid "on any channel: "
+msgstr ""
+
+#: lib/rbot/core/auth.rb:166
+msgid "in private: "
+msgstr ""
+
+#: lib/rbot/core/auth.rb:178
+msgid "no permissions set for %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:180
+msgid "permissions for %{user}:: %{permissions}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:194
+msgid "welcome, %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:209
+msgid "sorry, can't do"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:212
+msgid "couldn't login: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:221
+msgid "I couldn't find anything to let you login automatically"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:236
+msgid "you are %{who}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:238
+msgid "no one that I know"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:239
+msgid "my boss"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:246
+msgid ""
+"login [<botuser>] [<pass>]: logs in to the bot as botuser <botuser> with "
+"password <pass>. When using the full form, you must contact the bot in "
+"private. <pass> can be omitted if <botuser> allows login-by-mask and your "
+"netmask is among the known ones. if <botuser> is omitted too autologin will "
+"be attempted"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:248
+msgid "whoami: names the botuser you're linked to"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:252
+msgid ""
+"a permission is specified as module::path::to::cmd; when you want to enable "
+"it, prefix it with +; when you want to disable it, prefix it with -; when "
+"using the +reset+ command, do not use any prefix"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:254
+msgid ""
+"permissions [re]set <permission> [in <channel>] for <user>: sets or resets "
+"the permissions for botuser <user> in channel <channel> (use ? to change the "
+"permissions for private addressing)"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:256
+msgid "permissions view [for <user>]: display the permissions for user <user>"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:258
+msgid "permission topics: syntax, (re)set, view"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:263
+msgid ""
+"user show <what> : shows info about the user; <what> can be any of "
+"autologin, login-by-mask, netmasks"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:265
+msgid ""
+"user enable|disable <what> : turns on or off <what> (autologin, login-by-"
+"mask)"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:267
+msgid ""
+"user set password <blah> : sets the user password to <blah>; passwords can "
+"only contain upper and lowercase letters and numbers, and must be at least 4 "
+"characters long"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:269
+msgid ""
+"user add|rm netmask <mask> : adds/removes netmask <mask> from the list of "
+"netmasks known to the botuser you're linked to"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:271
+msgid ""
+"user reset <what> : resets <what> to the default values. <what> can be "
+"+netmasks+ (the list will be emptied), +autologin+ or +login-by-mask+ (will "
+"be reset to the default value) or +password+ (a new one will be generated "
+"and you'll be told in private)"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:273
+msgid ""
+"user tell <who> the password for <botuser> : contacts <who> in private to "
+"tell him/her the password for <botuser>"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:275
+msgid ""
+"user create <name> <password> : create botuser named <name> with password "
+"<password>. The password can be omitted, in which case a random one will be "
+"generated. The <name> should only contain alphanumeric characters and the "
+"underscore (_)"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:277
+msgid "user list : lists all the botusers"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:279
+msgid ""
+"user destroy <botuser> <password> : destroys <botuser>; this function %"
+"{highlight}must%{highlight} be called in two steps. On the first call, no "
+"password must be specified: <botuser> is then queued for destruction. On the "
+"second call, you must specify the correct password for <botuser>, and it "
+"will be destroyed. If you want to cancel the destruction, issue the command "
+"+user cancel destroy <botuser>+"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:281
+msgid ""
+"user topics: show, enable|disable, add|rm netmask, set, reset, tell, create, "
+"list, destroy"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:284
+msgid ""
+"auth <masterpassword>: log in as the bot owner; other commands: login, "
+"whoami, permission syntax, permissions [re]set, permissions view, user"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:286
+msgid "auth commands: auth, login, whoami, permission[s], user"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:291
+msgid "sorry, I need more arguments to %{command}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:295
+msgid "I can only %{command} these: %{arguments}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:326
+msgid "you can't mess with %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:339
+msgid "you can't see the properties of %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:348
+msgid "no way I'm telling you the master password!"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:349
+msgid "you can't ask for someone else's password"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:351
+msgid ""
+"c'mon, you can't be asking me seriously to tell you the password in public!"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:352
+msgid "the password for %{user} is %{password}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:366
+msgid "can %{action}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:368
+msgid "can not %{action}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:372
+msgid "knows no netmasks"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:374
+msgid "knows %{netmasks}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:381 lib/rbot/core/auth.rb:408
+#: lib/rbot/core/auth.rb:426 lib/rbot/core/auth.rb:458
+msgid "you can't change the default user"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:382 lib/rbot/core/auth.rb:410
+#: lib/rbot/core/auth.rb:428 lib/rbot/core/auth.rb:460
+msgid "you can't edit %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:397 lib/rbot/core/auth.rb:444
+msgid "I ignored %{things} because %{reason}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:401 lib/rbot/core/auth.rb:448
+msgid "I haven't changed anything"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:419
+msgid "is that a joke? setting the password in public?"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:451
+msgid "the password for %{user} is now %{password}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:465
+msgid ""
+"I can only add/remove netmasks. See +help user add+ for more instructions"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:484
+msgid "sorry, I don't know how to %{request}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:493
+msgid "couldn't find botuser %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:495
+msgid "I'm not telling the master password to anyway, pal"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:496
+msgid "the password for botuser %{user} is %{password}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:499
+msgid "I told %{user} that %{message}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:505
+msgid "are you nuts, creating a botuser with a publicly known password?"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:511
+msgid "failed to create %{user}: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:515
+msgid "created botuser %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:523
+msgid " (queued for destruction)"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:526
+msgid "I have no botusers other than the default ones"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:527
+msgid "botuser: %{list}"
+msgid_plural "botusers: %{list}"
+msgstr[0] ""
+
+#: lib/rbot/core/auth.rb:534
+msgid "You can't destroy %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:545
+msgid "no such botuser %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:551
+msgid "%{user} removed from the destruction queue"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:553
+msgid "%{user} was not queued for destruction"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:560
+msgid ""
+"%{user} already queued for destruction, use %{highlight}user destroy %{user} "
+"<password>%{highlight} to destroy it"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:563
+msgid ""
+"%{user} queued for destruction, use %{highlight}user destroy %{user} "
+"<password>%{highlight} to destroy it"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:567
+msgid "%{user} is not queued for destruction yet"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:569
+msgid "wrong password for %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:578 lib/rbot/core/auth.rb:618
+msgid "failed: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:580
+msgid "botuser %{user} destroyed"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:588
+msgid "please don't touch the default users"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:597
+msgid "no such botuser %{source}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:599
+msgid "botuser %{dest} exists already"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:620
+msgid "botuser %{source} copied to %{dest}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:622
+msgid "botuser %{source} renamed to %{dest}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:641
+msgid "selecting data to export ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:657
+msgid "preparing data for export ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:680
+msgid "failed to prepare data: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:685
+msgid "exporting to %{file} ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:692
+msgid "failed to export users: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:696 lib/rbot/core/auth.rb:774
+msgid "done"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:713
+msgid "reading %{file} ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:717
+msgid "failed to import from: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:724
+msgid "selecting data to import ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:734
+msgid "parsing data from import ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:754
+msgid "failed to parse data: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:25
+msgid "no such module %{module}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:41 lib/rbot/core/config.rb:52
+#: lib/rbot/core/config.rb:61 lib/rbot/core/config.rb:74
+#: lib/rbot/core/config.rb:100 lib/rbot/core/config.rb:123
+msgid "no such config key %{key}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:66 lib/rbot/core/config.rb:85
+#: lib/rbot/core/config.rb:115 lib/rbot/core/config.rb:138
+msgid "this config change will take effect on the next restart"
+msgstr ""
+
+#: lib/rbot/core/config.rb:67 lib/rbot/core/config.rb:88
+#: lib/rbot/core/config.rb:116 lib/rbot/core/config.rb:139
+msgid "this config change will take effect on the next rescan"
+msgstr ""
+
+#: lib/rbot/core/config.rb:81
+msgid "failed to set %{key}: %{error}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:104 lib/rbot/core/config.rb:127
+msgid "config key %{key} is not an array"
+msgstr ""
+
+#: lib/rbot/core/config.rb:111
+msgid "failed to add %{value} to %{key}: %{error}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:134
+msgid "failed to remove %{value} from %{key}: %{error}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:148
+msgid "saving ..."
+msgstr ""
+
+#: lib/rbot/core/config.rb:150
+msgid "rescanning ..."
+msgstr ""
+
+#: lib/rbot/core/config.rb:152
+msgid "done. %{plugin_status}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:171
+msgid ""
+"I'm a v. %{version} rubybot, (c) Tom Gilbert and the rbot development team - "
+"http://linuxbrit.co.uk/rbot/"
+msgstr ""
+
+#: lib/rbot/core/config.rb:183
+msgid "config-related tasks: config topics, save, rescan"
+msgstr ""
+
+#: lib/rbot/core/config.rb:185
+msgid ""
+"config list => list configuration modules, config list <module> => list "
+"configuration keys for module <module>"
+msgstr ""
+
+#: lib/rbot/core/config.rb:187
+msgid "config get <key> => get configuration value for key <key>"
+msgstr ""
+
+#: lib/rbot/core/config.rb:189
+msgid "reset key <key> to the default"
+msgstr ""
+
+#: lib/rbot/core/config.rb:191
+msgid ""
+"config set <key> <value> => set configuration value for key <key> to <value>"
+msgstr ""
+
+#: lib/rbot/core/config.rb:193
+msgid "config desc <key> => describe what key <key> configures"
+msgstr ""
+
+#: lib/rbot/core/config.rb:195
+msgid ""
+"config add <value> to <key> => add value <value> to key <key> if <key> is an "
+"array"
+msgstr ""
+
+#: lib/rbot/core/config.rb:197
+msgid ""
+"config rm <value> from <key> => remove value <value> from key <key> if <key> "
+"is an array"
+msgstr ""
+
+#: lib/rbot/core/config.rb:199
+msgid ""
+"config module - bot configuration. usage: list, desc, get, set, unset, add, "
+"rm"
+msgstr ""
+
+#: lib/rbot/core/config.rb:204
+msgid "save => save current dynamic data and configuration"
+msgstr ""
+
+#: lib/rbot/core/config.rb:206
+msgid "rescan => reload modules and static facts"
+msgstr ""
+
+#: lib/rbot/core/config.rb:208
+msgid "config-related tasks: config, save, rescan"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:107
+msgid "quit [<message>] => quit IRC with message <message>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:109
+msgid "restart => completely stop and restart the bot (including reconnect)"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:113
+msgid "part"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:115
+msgid "hide => part all channels"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:117
+msgid "nick <nick> => attempt to change nick to <nick>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:119
+msgid ""
+"say <channel>|<nick> <message> => say <message> to <channel> or in private "
+"message to <nick>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:121
+msgid ""
+"action <channel>|<nick> <message> => does a /me <message> to <channel> or in "
+"private message to <nick>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:123
+msgid ""
+"quiet [in here|<channel>] => with no arguments, stop speaking in all "
+"channels, if \"in here\", stop speaking in this channel, or stop speaking in "
+"<channel>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:125
+msgid ""
+"talk [in here|<channel>] => with no arguments, resume speaking in all "
+"channels, if \"in here\", resume speaking in this channel, or resume "
+"speaking in <channel>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:127
+msgid "version => describes software version"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:129
+msgid "ping => replies with a pong"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:131
+msgid ""
+"mode <channel> <mode> <nicks> => set channel modes for <nicks> on <channel> "
+"to <mode>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:137
+msgid ""
+"%{name}: quit, restart, join, part, hide, save, nick, say, action, topic, "
+"quiet, talk,version, ping, mode"
+msgstr ""
--- /dev/null
+# Gettext template file for rbot
+# Copyright (C) 2007 Tom Gilbert
+# This file is distributed under the same license as the rbot package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: rbot\n"
+"POT-Creation-Date: 2007-07-09 03:58-0400\n"
+"PO-Revision-Date: 2007-07-09 01:24-0400\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
+
+#: lib/rbot/load-gettext.rb:32
+msgid "using ruby-gettext"
+msgstr ""
+
+#: lib/rbot/registry.rb:19
+msgid ""
+"upgrading old-style (rbot 0.9.5 or earlier) plugin registry to new format"
+msgstr ""
+
+#: lib/rbot/registry.rb:39
+msgid ""
+"upgrading previous (rbot 0.9.9 or earlier) plugin registry to new split "
+"format"
+msgstr ""
+
+#: lib/rbot/registry.rb:188
+msgid "marshal recovery failed, trying default"
+msgstr ""
+
+#: lib/rbot/plugins.rb:237
+msgid "incorrect usage, ask for help using '%{command}'"
+msgstr ""
+
+#: lib/rbot/plugins.rb:400
+msgid "Botmodule loading path cleared"
+msgstr ""
+
+#: lib/rbot/plugins.rb:477
+msgid "%{count} core module loaded"
+msgid_plural "%{count} core modules loaded"
+msgstr[0] ""
+msgstr[1] ""
+
+#: lib/rbot/plugins.rb:480
+msgid "%{count} core module: %{list}"
+msgid_plural "%{count} core modules: %{list}"
+msgstr[0] ""
+msgstr[1] ""
+
+#: lib/rbot/plugins.rb:486
+msgid "no core botmodules loaded"
+msgstr ""
+
+#: lib/rbot/plugins.rb:491
+msgid "%{count} plugin loaded"
+msgid_plural "%{count} plugins loaded"
+msgstr[0] ""
+msgstr[1] ""
+
+#: lib/rbot/plugins.rb:494
+msgid "%{count} plugin: %{list}"
+msgid_plural "%{count} plugins: %{list}"
+msgstr[0] ""
+msgstr[1] ""
+
+#: lib/rbot/plugins.rb:505
+msgid "%{highlight}%{count} plugin ignored%{highlight}"
+msgid_plural "%{highlight}%{count} plugins ignored%{highlight}"
+msgstr[0] ""
+msgstr[1] ""
+
+#: lib/rbot/plugins.rb:510
+msgid ""
+"%{highlight}%{count} plugin ignored%{highlight}: use %{bold}%{command}%"
+"{bold} to see why"
+msgid_plural ""
+"%{highlight}%{count} plugins ignored%{highlight}: use %{bold}%{command}%"
+"{bold} to see why"
+msgstr[0] ""
+msgstr[1] ""
+
+#: lib/rbot/plugins.rb:520
+msgid "%{highlight}%{count} plugin failed to load%{highlight}"
+msgid_plural "%{highlight}%{count} plugins failed to load%{highlight}"
+msgstr[0] ""
+msgstr[1] ""
+
+#: lib/rbot/plugins.rb:525
+msgid ""
+"%{highlight}%{count} plugin failed to load%{highlight}: use %{bold}%"
+"{command}%{bold} to see why"
+msgid_plural ""
+"%{highlight}%{count} plugins failed to load%{highlight}: use %{bold}%"
+"{command}%{bold} to see why"
+msgstr[0] ""
+msgstr[1] ""
+
+#: lib/rbot/plugins.rb:555
+msgid "no plugins failed to load"
+msgstr ""
+
+#: lib/rbot/plugins.rb:557
+msgid ""
+"%{highlight}%{plugin}%{highlight} in %{dir}failed with error %{exception}: %"
+"{reason}"
+msgstr ""
+
+#: lib/rbot/plugins.rb:561
+msgid "at %{backtrace}"
+msgstr ""
+
+#: lib/rbot/plugins.rb:567
+msgid "no plugins were ignored"
+msgstr ""
+
+#: lib/rbot/plugins.rb:571
+msgid "overruled by previous"
+msgstr ""
+
+#: lib/rbot/botuser.rb:22
+msgid "Password for the bot owner"
+msgstr ""
+
+#: lib/rbot/botuser.rb:25
+msgid ""
+"Set false to prevent new botusers from logging in without a password when "
+"the user netmask is known"
+msgstr ""
+
+#: lib/rbot/botuser.rb:28
+msgid ""
+"Set false to prevent new botusers from recognizing IRC users without a need "
+"to manually login"
+msgstr ""
+
+#: lib/rbot/botuser.rb:686
+msgid "%{user}, you don't have '%{command}' permissions here"
+msgstr ""
+
+#: lib/rbot/config.rb:259
+msgid "Not writing conf.yaml (unchanged)"
+msgstr ""
+
+#: lib/rbot/config.rb:263
+msgid "Writing new conf.yaml ..."
+msgstr ""
+
+#: lib/rbot/config.rb:271
+msgid "Officializing conf.yaml ..."
+msgstr ""
+
+#: lib/rbot/config.rb:304
+msgid "First time rbot configuration wizard"
+msgstr ""
+
+#: lib/rbot/config.rb:307
+msgid "This wizard will ask you a few questions to get you started."
+msgstr ""
+
+#: lib/rbot/config.rb:308
+msgid ""
+"The rest of rbot's configuration can be manipulated via IRC once rbot is "
+"connected and you are auth'd."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:62
+msgid "please do not use + or - in front of command %{command} when resetting"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:64
+msgid "+ or - expected in front of %{string}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:86
+msgid "trailing comma"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:87
+msgid "you probably forgot a comma"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:102 lib/rbot/core/auth.rb:156
+msgid "couldn't find botuser %{name}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:104
+msgid "you can't change permissions for %{username}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:111
+msgid "couldn't satisfy your request: %{errors}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:150
+msgid "you are owner, you can do anything"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:153
+msgid "owner can do anything"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:164
+msgid "on any channel: "
+msgstr ""
+
+#: lib/rbot/core/auth.rb:166
+msgid "in private: "
+msgstr ""
+
+#: lib/rbot/core/auth.rb:178
+msgid "no permissions set for %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:180
+msgid "permissions for %{user}:: %{permissions}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:194
+msgid "welcome, %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:209
+msgid "sorry, can't do"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:212
+msgid "couldn't login: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:221
+msgid "I couldn't find anything to let you login automatically"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:236
+msgid "you are %{who}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:238
+msgid "no one that I know"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:239
+msgid "my boss"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:246
+msgid ""
+"login [<botuser>] [<pass>]: logs in to the bot as botuser <botuser> with "
+"password <pass>. When using the full form, you must contact the bot in "
+"private. <pass> can be omitted if <botuser> allows login-by-mask and your "
+"netmask is among the known ones. if <botuser> is omitted too autologin will "
+"be attempted"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:248
+msgid "whoami: names the botuser you're linked to"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:252
+msgid ""
+"a permission is specified as module::path::to::cmd; when you want to enable "
+"it, prefix it with +; when you want to disable it, prefix it with -; when "
+"using the +reset+ command, do not use any prefix"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:254
+msgid ""
+"permissions [re]set <permission> [in <channel>] for <user>: sets or resets "
+"the permissions for botuser <user> in channel <channel> (use ? to change the "
+"permissions for private addressing)"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:256
+msgid "permissions view [for <user>]: display the permissions for user <user>"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:258
+msgid "permission topics: syntax, (re)set, view"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:263
+msgid ""
+"user show <what> : shows info about the user; <what> can be any of "
+"autologin, login-by-mask, netmasks"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:265
+msgid ""
+"user enable|disable <what> : turns on or off <what> (autologin, login-by-"
+"mask)"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:267
+msgid ""
+"user set password <blah> : sets the user password to <blah>; passwords can "
+"only contain upper and lowercase letters and numbers, and must be at least 4 "
+"characters long"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:269
+msgid ""
+"user add|rm netmask <mask> : adds/removes netmask <mask> from the list of "
+"netmasks known to the botuser you're linked to"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:271
+msgid ""
+"user reset <what> : resets <what> to the default values. <what> can be "
+"+netmasks+ (the list will be emptied), +autologin+ or +login-by-mask+ (will "
+"be reset to the default value) or +password+ (a new one will be generated "
+"and you'll be told in private)"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:273
+msgid ""
+"user tell <who> the password for <botuser> : contacts <who> in private to "
+"tell him/her the password for <botuser>"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:275
+msgid ""
+"user create <name> <password> : create botuser named <name> with password "
+"<password>. The password can be omitted, in which case a random one will be "
+"generated. The <name> should only contain alphanumeric characters and the "
+"underscore (_)"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:277
+msgid "user list : lists all the botusers"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:279
+msgid ""
+"user destroy <botuser> <password> : destroys <botuser>; this function %"
+"{highlight}must%{highlight} be called in two steps. On the first call, no "
+"password must be specified: <botuser> is then queued for destruction. On the "
+"second call, you must specify the correct password for <botuser>, and it "
+"will be destroyed. If you want to cancel the destruction, issue the command "
+"+user cancel destroy <botuser>+"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:281
+msgid ""
+"user topics: show, enable|disable, add|rm netmask, set, reset, tell, create, "
+"list, destroy"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:284
+msgid ""
+"auth <masterpassword>: log in as the bot owner; other commands: login, "
+"whoami, permission syntax, permissions [re]set, permissions view, user"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:286
+msgid "auth commands: auth, login, whoami, permission[s], user"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:291
+msgid "sorry, I need more arguments to %{command}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:295
+msgid "I can only %{command} these: %{arguments}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:326
+msgid "you can't mess with %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:339
+msgid "you can't see the properties of %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:348
+msgid "no way I'm telling you the master password!"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:349
+msgid "you can't ask for someone else's password"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:351
+msgid ""
+"c'mon, you can't be asking me seriously to tell you the password in public!"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:352
+msgid "the password for %{user} is %{password}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:366
+msgid "can %{action}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:368
+msgid "can not %{action}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:372
+msgid "knows no netmasks"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:374
+msgid "knows %{netmasks}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:381 lib/rbot/core/auth.rb:408
+#: lib/rbot/core/auth.rb:426 lib/rbot/core/auth.rb:458
+msgid "you can't change the default user"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:382 lib/rbot/core/auth.rb:410
+#: lib/rbot/core/auth.rb:428 lib/rbot/core/auth.rb:460
+msgid "you can't edit %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:397 lib/rbot/core/auth.rb:444
+msgid "I ignored %{things} because %{reason}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:401 lib/rbot/core/auth.rb:448
+msgid "I haven't changed anything"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:419
+msgid "is that a joke? setting the password in public?"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:451
+msgid "the password for %{user} is now %{password}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:465
+msgid ""
+"I can only add/remove netmasks. See +help user add+ for more instructions"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:484
+msgid "sorry, I don't know how to %{request}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:493
+msgid "couldn't find botuser %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:495
+msgid "I'm not telling the master password to anyway, pal"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:496
+msgid "the password for botuser %{user} is %{password}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:499
+msgid "I told %{user} that %{message}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:505
+msgid "are you nuts, creating a botuser with a publicly known password?"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:511
+msgid "failed to create %{user}: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:515
+msgid "created botuser %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:523
+msgid " (queued for destruction)"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:526
+msgid "I have no botusers other than the default ones"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:527
+msgid "botuser: %{list}"
+msgid_plural "botusers: %{list}"
+msgstr[0] ""
+msgstr[1] ""
+
+#: lib/rbot/core/auth.rb:534
+msgid "You can't destroy %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:545
+msgid "no such botuser %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:551
+msgid "%{user} removed from the destruction queue"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:553
+msgid "%{user} was not queued for destruction"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:560
+msgid ""
+"%{user} already queued for destruction, use %{highlight}user destroy %{user} "
+"<password>%{highlight} to destroy it"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:563
+msgid ""
+"%{user} queued for destruction, use %{highlight}user destroy %{user} "
+"<password>%{highlight} to destroy it"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:567
+msgid "%{user} is not queued for destruction yet"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:569
+msgid "wrong password for %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:578 lib/rbot/core/auth.rb:618
+msgid "failed: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:580
+msgid "botuser %{user} destroyed"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:588
+msgid "please don't touch the default users"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:597
+msgid "no such botuser %{source}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:599
+msgid "botuser %{dest} exists already"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:620
+msgid "botuser %{source} copied to %{dest}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:622
+msgid "botuser %{source} renamed to %{dest}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:641
+msgid "selecting data to export ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:657
+msgid "preparing data for export ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:680
+msgid "failed to prepare data: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:685
+msgid "exporting to %{file} ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:692
+msgid "failed to export users: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:696 lib/rbot/core/auth.rb:774
+msgid "done"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:713
+msgid "reading %{file} ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:717
+msgid "failed to import from: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:724
+msgid "selecting data to import ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:734
+msgid "parsing data from import ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:754
+msgid "failed to parse data: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:25
+msgid "no such module %{module}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:41 lib/rbot/core/config.rb:52
+#: lib/rbot/core/config.rb:61 lib/rbot/core/config.rb:74
+#: lib/rbot/core/config.rb:100 lib/rbot/core/config.rb:123
+msgid "no such config key %{key}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:66 lib/rbot/core/config.rb:85
+#: lib/rbot/core/config.rb:115 lib/rbot/core/config.rb:138
+msgid "this config change will take effect on the next restart"
+msgstr ""
+
+#: lib/rbot/core/config.rb:67 lib/rbot/core/config.rb:88
+#: lib/rbot/core/config.rb:116 lib/rbot/core/config.rb:139
+msgid "this config change will take effect on the next rescan"
+msgstr ""
+
+#: lib/rbot/core/config.rb:81
+msgid "failed to set %{key}: %{error}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:104 lib/rbot/core/config.rb:127
+msgid "config key %{key} is not an array"
+msgstr ""
+
+#: lib/rbot/core/config.rb:111
+msgid "failed to add %{value} to %{key}: %{error}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:134
+msgid "failed to remove %{value} from %{key}: %{error}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:148
+msgid "saving ..."
+msgstr ""
+
+#: lib/rbot/core/config.rb:150
+msgid "rescanning ..."
+msgstr ""
+
+#: lib/rbot/core/config.rb:152
+msgid "done. %{plugin_status}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:171
+msgid ""
+"I'm a v. %{version} rubybot, (c) Tom Gilbert and the rbot development team - "
+"http://linuxbrit.co.uk/rbot/"
+msgstr ""
+
+#: lib/rbot/core/config.rb:183
+msgid "config-related tasks: config topics, save, rescan"
+msgstr ""
+
+#: lib/rbot/core/config.rb:185
+msgid ""
+"config list => list configuration modules, config list <module> => list "
+"configuration keys for module <module>"
+msgstr ""
+
+#: lib/rbot/core/config.rb:187
+msgid "config get <key> => get configuration value for key <key>"
+msgstr ""
+
+#: lib/rbot/core/config.rb:189
+msgid "reset key <key> to the default"
+msgstr ""
+
+#: lib/rbot/core/config.rb:191
+msgid ""
+"config set <key> <value> => set configuration value for key <key> to <value>"
+msgstr ""
+
+#: lib/rbot/core/config.rb:193
+msgid "config desc <key> => describe what key <key> configures"
+msgstr ""
+
+#: lib/rbot/core/config.rb:195
+msgid ""
+"config add <value> to <key> => add value <value> to key <key> if <key> is an "
+"array"
+msgstr ""
+
+#: lib/rbot/core/config.rb:197
+msgid ""
+"config rm <value> from <key> => remove value <value> from key <key> if <key> "
+"is an array"
+msgstr ""
+
+#: lib/rbot/core/config.rb:199
+msgid ""
+"config module - bot configuration. usage: list, desc, get, set, unset, add, "
+"rm"
+msgstr ""
+
+#: lib/rbot/core/config.rb:204
+msgid "save => save current dynamic data and configuration"
+msgstr ""
+
+#: lib/rbot/core/config.rb:206
+msgid "rescan => reload modules and static facts"
+msgstr ""
+
+#: lib/rbot/core/config.rb:208
+msgid "config-related tasks: config, save, rescan"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:107
+msgid "quit [<message>] => quit IRC with message <message>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:109
+msgid "restart => completely stop and restart the bot (including reconnect)"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:113
+msgid "part"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:115
+msgid "hide => part all channels"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:117
+msgid "nick <nick> => attempt to change nick to <nick>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:119
+msgid ""
+"say <channel>|<nick> <message> => say <message> to <channel> or in private "
+"message to <nick>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:121
+msgid ""
+"action <channel>|<nick> <message> => does a /me <message> to <channel> or in "
+"private message to <nick>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:123
+msgid ""
+"quiet [in here|<channel>] => with no arguments, stop speaking in all "
+"channels, if \"in here\", stop speaking in this channel, or stop speaking in "
+"<channel>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:125
+msgid ""
+"talk [in here|<channel>] => with no arguments, resume speaking in all "
+"channels, if \"in here\", resume speaking in this channel, or resume "
+"speaking in <channel>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:127
+msgid "version => describes software version"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:129
+msgid "ping => replies with a pong"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:131
+msgid ""
+"mode <channel> <mode> <nicks> => set channel modes for <nicks> on <channel> "
+"to <mode>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:137
+msgid ""
+"%{name}: quit, restart, join, part, hide, save, nick, say, action, topic, "
+"quiet, talk,version, ping, mode"
+msgstr ""
--- /dev/null
+# Gettext template file for rbot
+# Copyright (C) 2007 Tom Gilbert
+# This file is distributed under the same license as the PACKAGE package.
+# Tom Gilbert <tom@linuxbrit.co.uk>, 2007.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: rbot\n"
+"POT-Creation-Date: 2007-07-09 03:58-0400\n"
+"PO-Revision-Date: 2007-07-09 01:39-0400\n"
+"Last-Translator: Yaohan Chen <yaohan.chen@gmail.com>\n"
+"Language-Team: Chinese\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
+
+#: lib/rbot/load-gettext.rb:32
+msgid "using ruby-gettext"
+msgstr ""
+
+#: lib/rbot/registry.rb:19
+msgid ""
+"upgrading old-style (rbot 0.9.5 or earlier) plugin registry to new format"
+msgstr ""
+
+#: lib/rbot/registry.rb:39
+msgid ""
+"upgrading previous (rbot 0.9.9 or earlier) plugin registry to new split "
+"format"
+msgstr ""
+
+#: lib/rbot/registry.rb:188
+msgid "marshal recovery failed, trying default"
+msgstr ""
+
+#: lib/rbot/plugins.rb:237
+msgid "incorrect usage, ask for help using '%{command}'"
+msgstr ""
+
+#: lib/rbot/plugins.rb:400
+msgid "Botmodule loading path cleared"
+msgstr ""
+
+#: lib/rbot/plugins.rb:477
+msgid "%{count} core module loaded"
+msgid_plural "%{count} core modules loaded"
+msgstr[0] "%{count}个核心模块"
+msgstr[1] ""
+
+#: lib/rbot/plugins.rb:480
+msgid "%{count} core module: %{list}"
+msgid_plural "%{count} core modules: %{list}"
+msgstr[0] "%{count}个核心模块:%{list}"
+msgstr[1] ""
+
+#: lib/rbot/plugins.rb:486
+msgid "no core botmodules loaded"
+msgstr "没有核心模块"
+
+#: lib/rbot/plugins.rb:491
+msgid "%{count} plugin loaded"
+msgid_plural "%{count} plugins loaded"
+msgstr[0] ""
+msgstr[1] ""
+
+#: lib/rbot/plugins.rb:494
+msgid "%{count} plugin: %{list}"
+msgid_plural "%{count} plugins: %{list}"
+msgstr[0] ""
+msgstr[1] ""
+
+#: lib/rbot/plugins.rb:505
+msgid "%{highlight}%{count} plugin ignored%{highlight}"
+msgid_plural "%{highlight}%{count} plugins ignored%{highlight}"
+msgstr[0] ""
+msgstr[1] ""
+
+#: lib/rbot/plugins.rb:510
+msgid ""
+"%{highlight}%{count} plugin ignored%{highlight}: use %{bold}%{command}%"
+"{bold} to see why"
+msgid_plural ""
+"%{highlight}%{count} plugins ignored%{highlight}: use %{bold}%{command}%"
+"{bold} to see why"
+msgstr[0] ""
+msgstr[1] ""
+
+#: lib/rbot/plugins.rb:520
+msgid "%{highlight}%{count} plugin failed to load%{highlight}"
+msgid_plural "%{highlight}%{count} plugins failed to load%{highlight}"
+msgstr[0] ""
+msgstr[1] ""
+
+#: lib/rbot/plugins.rb:525
+msgid ""
+"%{highlight}%{count} plugin failed to load%{highlight}: use %{bold}%"
+"{command}%{bold} to see why"
+msgid_plural ""
+"%{highlight}%{count} plugins failed to load%{highlight}: use %{bold}%"
+"{command}%{bold} to see why"
+msgstr[0] ""
+msgstr[1] ""
+
+#: lib/rbot/plugins.rb:555
+msgid "no plugins failed to load"
+msgstr ""
+
+#: lib/rbot/plugins.rb:557
+msgid ""
+"%{highlight}%{plugin}%{highlight} in %{dir}failed with error %{exception}: %"
+"{reason}"
+msgstr ""
+
+#: lib/rbot/plugins.rb:561
+msgid "at %{backtrace}"
+msgstr ""
+
+#: lib/rbot/plugins.rb:567
+msgid "no plugins were ignored"
+msgstr ""
+
+#: lib/rbot/plugins.rb:571
+msgid "overruled by previous"
+msgstr ""
+
+#: lib/rbot/botuser.rb:22
+msgid "Password for the bot owner"
+msgstr ""
+
+#: lib/rbot/botuser.rb:25
+msgid ""
+"Set false to prevent new botusers from logging in without a password when "
+"the user netmask is known"
+msgstr ""
+
+#: lib/rbot/botuser.rb:28
+msgid ""
+"Set false to prevent new botusers from recognizing IRC users without a need "
+"to manually login"
+msgstr ""
+
+#: lib/rbot/botuser.rb:686
+msgid "%{user}, you don't have '%{command}' permissions here"
+msgstr ""
+
+#: lib/rbot/config.rb:259
+msgid "Not writing conf.yaml (unchanged)"
+msgstr ""
+
+#: lib/rbot/config.rb:263
+msgid "Writing new conf.yaml ..."
+msgstr ""
+
+#: lib/rbot/config.rb:271
+msgid "Officializing conf.yaml ..."
+msgstr ""
+
+#: lib/rbot/config.rb:304
+msgid "First time rbot configuration wizard"
+msgstr ""
+
+#: lib/rbot/config.rb:307
+msgid "This wizard will ask you a few questions to get you started."
+msgstr ""
+
+#: lib/rbot/config.rb:308
+msgid ""
+"The rest of rbot's configuration can be manipulated via IRC once rbot is "
+"connected and you are auth'd."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:62
+msgid "please do not use + or - in front of command %{command} when resetting"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:64
+msgid "+ or - expected in front of %{string}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:86
+msgid "trailing comma"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:87
+msgid "you probably forgot a comma"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:102 lib/rbot/core/auth.rb:156
+msgid "couldn't find botuser %{name}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:104
+msgid "you can't change permissions for %{username}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:111
+msgid "couldn't satisfy your request: %{errors}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:150
+msgid "you are owner, you can do anything"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:153
+msgid "owner can do anything"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:164
+msgid "on any channel: "
+msgstr ""
+
+#: lib/rbot/core/auth.rb:166
+msgid "in private: "
+msgstr ""
+
+#: lib/rbot/core/auth.rb:178
+msgid "no permissions set for %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:180
+msgid "permissions for %{user}:: %{permissions}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:194
+msgid "welcome, %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:209
+msgid "sorry, can't do"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:212
+msgid "couldn't login: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:221
+msgid "I couldn't find anything to let you login automatically"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:236
+msgid "you are %{who}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:238
+msgid "no one that I know"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:239
+msgid "my boss"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:246
+msgid ""
+"login [<botuser>] [<pass>]: logs in to the bot as botuser <botuser> with "
+"password <pass>. When using the full form, you must contact the bot in "
+"private. <pass> can be omitted if <botuser> allows login-by-mask and your "
+"netmask is among the known ones. if <botuser> is omitted too autologin will "
+"be attempted"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:248
+msgid "whoami: names the botuser you're linked to"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:252
+msgid ""
+"a permission is specified as module::path::to::cmd; when you want to enable "
+"it, prefix it with +; when you want to disable it, prefix it with -; when "
+"using the +reset+ command, do not use any prefix"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:254
+msgid ""
+"permissions [re]set <permission> [in <channel>] for <user>: sets or resets "
+"the permissions for botuser <user> in channel <channel> (use ? to change the "
+"permissions for private addressing)"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:256
+msgid "permissions view [for <user>]: display the permissions for user <user>"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:258
+msgid "permission topics: syntax, (re)set, view"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:263
+msgid ""
+"user show <what> : shows info about the user; <what> can be any of "
+"autologin, login-by-mask, netmasks"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:265
+msgid ""
+"user enable|disable <what> : turns on or off <what> (autologin, login-by-"
+"mask)"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:267
+msgid ""
+"user set password <blah> : sets the user password to <blah>; passwords can "
+"only contain upper and lowercase letters and numbers, and must be at least 4 "
+"characters long"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:269
+msgid ""
+"user add|rm netmask <mask> : adds/removes netmask <mask> from the list of "
+"netmasks known to the botuser you're linked to"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:271
+msgid ""
+"user reset <what> : resets <what> to the default values. <what> can be "
+"+netmasks+ (the list will be emptied), +autologin+ or +login-by-mask+ (will "
+"be reset to the default value) or +password+ (a new one will be generated "
+"and you'll be told in private)"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:273
+msgid ""
+"user tell <who> the password for <botuser> : contacts <who> in private to "
+"tell him/her the password for <botuser>"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:275
+msgid ""
+"user create <name> <password> : create botuser named <name> with password "
+"<password>. The password can be omitted, in which case a random one will be "
+"generated. The <name> should only contain alphanumeric characters and the "
+"underscore (_)"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:277
+msgid "user list : lists all the botusers"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:279
+msgid ""
+"user destroy <botuser> <password> : destroys <botuser>; this function %"
+"{highlight}must%{highlight} be called in two steps. On the first call, no "
+"password must be specified: <botuser> is then queued for destruction. On the "
+"second call, you must specify the correct password for <botuser>, and it "
+"will be destroyed. If you want to cancel the destruction, issue the command "
+"+user cancel destroy <botuser>+"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:281
+msgid ""
+"user topics: show, enable|disable, add|rm netmask, set, reset, tell, create, "
+"list, destroy"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:284
+msgid ""
+"auth <masterpassword>: log in as the bot owner; other commands: login, "
+"whoami, permission syntax, permissions [re]set, permissions view, user"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:286
+msgid "auth commands: auth, login, whoami, permission[s], user"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:291
+msgid "sorry, I need more arguments to %{command}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:295
+msgid "I can only %{command} these: %{arguments}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:326
+msgid "you can't mess with %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:339
+msgid "you can't see the properties of %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:348
+msgid "no way I'm telling you the master password!"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:349
+msgid "you can't ask for someone else's password"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:351
+msgid ""
+"c'mon, you can't be asking me seriously to tell you the password in public!"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:352
+msgid "the password for %{user} is %{password}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:366
+msgid "can %{action}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:368
+msgid "can not %{action}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:372
+msgid "knows no netmasks"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:374
+msgid "knows %{netmasks}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:381 lib/rbot/core/auth.rb:408
+#: lib/rbot/core/auth.rb:426 lib/rbot/core/auth.rb:458
+msgid "you can't change the default user"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:382 lib/rbot/core/auth.rb:410
+#: lib/rbot/core/auth.rb:428 lib/rbot/core/auth.rb:460
+msgid "you can't edit %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:397 lib/rbot/core/auth.rb:444
+msgid "I ignored %{things} because %{reason}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:401 lib/rbot/core/auth.rb:448
+msgid "I haven't changed anything"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:419
+msgid "is that a joke? setting the password in public?"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:451
+msgid "the password for %{user} is now %{password}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:465
+msgid ""
+"I can only add/remove netmasks. See +help user add+ for more instructions"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:484
+msgid "sorry, I don't know how to %{request}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:493
+msgid "couldn't find botuser %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:495
+msgid "I'm not telling the master password to anyway, pal"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:496
+msgid "the password for botuser %{user} is %{password}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:499
+msgid "I told %{user} that %{message}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:505
+msgid "are you nuts, creating a botuser with a publicly known password?"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:511
+msgid "failed to create %{user}: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:515
+msgid "created botuser %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:523
+msgid " (queued for destruction)"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:526
+msgid "I have no botusers other than the default ones"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:527
+msgid "botuser: %{list}"
+msgid_plural "botusers: %{list}"
+msgstr[0] ""
+msgstr[1] ""
+
+#: lib/rbot/core/auth.rb:534
+msgid "You can't destroy %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:545
+msgid "no such botuser %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:551
+msgid "%{user} removed from the destruction queue"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:553
+msgid "%{user} was not queued for destruction"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:560
+msgid ""
+"%{user} already queued for destruction, use %{highlight}user destroy %{user} "
+"<password>%{highlight} to destroy it"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:563
+msgid ""
+"%{user} queued for destruction, use %{highlight}user destroy %{user} "
+"<password>%{highlight} to destroy it"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:567
+msgid "%{user} is not queued for destruction yet"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:569
+msgid "wrong password for %{user}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:578 lib/rbot/core/auth.rb:618
+msgid "failed: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:580
+msgid "botuser %{user} destroyed"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:588
+msgid "please don't touch the default users"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:597
+msgid "no such botuser %{source}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:599
+msgid "botuser %{dest} exists already"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:620
+msgid "botuser %{source} copied to %{dest}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:622
+msgid "botuser %{source} renamed to %{dest}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:641
+msgid "selecting data to export ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:657
+msgid "preparing data for export ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:680
+msgid "failed to prepare data: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:685
+msgid "exporting to %{file} ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:692
+msgid "failed to export users: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:696 lib/rbot/core/auth.rb:774
+msgid "done"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:713
+msgid "reading %{file} ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:717
+msgid "failed to import from: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/auth.rb:724
+msgid "selecting data to import ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:734
+msgid "parsing data from import ..."
+msgstr ""
+
+#: lib/rbot/core/auth.rb:754
+msgid "failed to parse data: %{exception}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:25
+msgid "no such module %{module}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:41 lib/rbot/core/config.rb:52
+#: lib/rbot/core/config.rb:61 lib/rbot/core/config.rb:74
+#: lib/rbot/core/config.rb:100 lib/rbot/core/config.rb:123
+msgid "no such config key %{key}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:66 lib/rbot/core/config.rb:85
+#: lib/rbot/core/config.rb:115 lib/rbot/core/config.rb:138
+msgid "this config change will take effect on the next restart"
+msgstr ""
+
+#: lib/rbot/core/config.rb:67 lib/rbot/core/config.rb:88
+#: lib/rbot/core/config.rb:116 lib/rbot/core/config.rb:139
+msgid "this config change will take effect on the next rescan"
+msgstr ""
+
+#: lib/rbot/core/config.rb:81
+msgid "failed to set %{key}: %{error}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:104 lib/rbot/core/config.rb:127
+msgid "config key %{key} is not an array"
+msgstr ""
+
+#: lib/rbot/core/config.rb:111
+msgid "failed to add %{value} to %{key}: %{error}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:134
+msgid "failed to remove %{value} from %{key}: %{error}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:148
+msgid "saving ..."
+msgstr ""
+
+#: lib/rbot/core/config.rb:150
+msgid "rescanning ..."
+msgstr ""
+
+#: lib/rbot/core/config.rb:152
+msgid "done. %{plugin_status}"
+msgstr ""
+
+#: lib/rbot/core/config.rb:171
+msgid ""
+"I'm a v. %{version} rubybot, (c) Tom Gilbert and the rbot development team - "
+"http://linuxbrit.co.uk/rbot/"
+msgstr ""
+
+#: lib/rbot/core/config.rb:183
+msgid "config-related tasks: config topics, save, rescan"
+msgstr ""
+
+#: lib/rbot/core/config.rb:185
+msgid ""
+"config list => list configuration modules, config list <module> => list "
+"configuration keys for module <module>"
+msgstr ""
+
+#: lib/rbot/core/config.rb:187
+msgid "config get <key> => get configuration value for key <key>"
+msgstr ""
+
+#: lib/rbot/core/config.rb:189
+msgid "reset key <key> to the default"
+msgstr ""
+
+#: lib/rbot/core/config.rb:191
+msgid ""
+"config set <key> <value> => set configuration value for key <key> to <value>"
+msgstr ""
+
+#: lib/rbot/core/config.rb:193
+msgid "config desc <key> => describe what key <key> configures"
+msgstr ""
+
+#: lib/rbot/core/config.rb:195
+msgid ""
+"config add <value> to <key> => add value <value> to key <key> if <key> is an "
+"array"
+msgstr ""
+
+#: lib/rbot/core/config.rb:197
+msgid ""
+"config rm <value> from <key> => remove value <value> from key <key> if <key> "
+"is an array"
+msgstr ""
+
+#: lib/rbot/core/config.rb:199
+msgid ""
+"config module - bot configuration. usage: list, desc, get, set, unset, add, "
+"rm"
+msgstr ""
+
+#: lib/rbot/core/config.rb:204
+msgid "save => save current dynamic data and configuration"
+msgstr ""
+
+#: lib/rbot/core/config.rb:206
+msgid "rescan => reload modules and static facts"
+msgstr ""
+
+#: lib/rbot/core/config.rb:208
+msgid "config-related tasks: config, save, rescan"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:107
+msgid "quit [<message>] => quit IRC with message <message>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:109
+msgid "restart => completely stop and restart the bot (including reconnect)"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:113
+msgid "part"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:115
+msgid "hide => part all channels"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:117
+msgid "nick <nick> => attempt to change nick to <nick>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:119
+msgid ""
+"say <channel>|<nick> <message> => say <message> to <channel> or in private "
+"message to <nick>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:121
+msgid ""
+"action <channel>|<nick> <message> => does a /me <message> to <channel> or in "
+"private message to <nick>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:123
+msgid ""
+"quiet [in here|<channel>] => with no arguments, stop speaking in all "
+"channels, if \"in here\", stop speaking in this channel, or stop speaking in "
+"<channel>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:125
+msgid ""
+"talk [in here|<channel>] => with no arguments, resume speaking in all "
+"channels, if \"in here\", resume speaking in this channel, or resume "
+"speaking in <channel>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:127
+msgid "version => describes software version"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:129
+msgid "ping => replies with a pong"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:131
+msgid ""
+"mode <channel> <mode> <nicks> => set channel modes for <nicks> on <channel> "
+"to <mode>"
+msgstr ""
+
+#: lib/rbot/core/basics.rb:137
+msgid ""
+"%{name}: quit, restart, join, part, hide, save, nick, say, action, topic, "
+"quiet, talk,version, ping, mode"
+msgstr ""