diff --git a/lib/t/cli.rb b/lib/t/cli.rb index 75ba88b5..74d1eba8 100644 --- a/lib/t/cli.rb +++ b/lib/t/cli.rb @@ -620,8 +620,8 @@ def reply(status_id, message) say I18n.t("tasks.reply.delete-instructions", :command_name => File.basename($0), :reply_id => reply.id) end - desc "report_spam USER [USER...]", "Report users for spam." - method_option "id", :aliases => "-i", :type => "boolean", :default => false, :desc => "Specify input as Twitter user IDs instead of screen names." + desc "report_spam USER [USER...]", I18n.t("tasks.report_spam.desc") + method_option "id", :aliases => "-i", :type => "boolean", :default => false, :desc => I18n.t("tasks.report_spam.id") def report_spam(user, *users) users.unshift(user) require 't/core_ext/string' @@ -638,7 +638,7 @@ def report_spam(user, *users) end end number = users.length - say "@#{@rcfile.active_profile[0]} reported #{number} #{number == 1 ? 'user' : 'users'}." + say I18n.t("tasks.report_spam.reported", :profile => @rcfile.active_profile[0], :count => number) end map %w(report reportspam spam) => :report_spam diff --git a/lib/t/locales/en.yml b/lib/t/locales/en.yml index 8a9498fd..718429e7 100644 --- a/lib/t/locales/en.yml +++ b/lib/t/locales/en.yml @@ -126,3 +126,10 @@ en: all: "Reply to all users mentioned in the Tweet." posted: "Reply posted by @%{profile} to %{users}." delete-instructions: "Run `%{command_name} delete status %{reply_id}` to delete." + + report_spam: + desc: "Report users for spam." + id: "Specify input as Twitter user IDs instead of screen names." + reported: + one: "@%{profile} reported 1 user." + other: "@%{profile} reported %{count} users."