diff options
-rw-r--r-- | lib/rbot/core/config.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rbot/core/config.rb b/lib/rbot/core/config.rb index 79b711f3..fc99fd8c 100644 --- a/lib/rbot/core/config.rb +++ b/lib/rbot/core/config.rb @@ -9,9 +9,9 @@ class ConfigModule < CoreBotModule def version_string if $version_timestamp.to_i > 0 - ago = String.new ' [' - ago << Utils.secs_to_string(Time.now.to_i - $version_timestamp.to_i) - ago << ' ago]' + ago = _(" [%{secs} ago]") % { + :secs => Utils.secs_to_string(Time.now.to_i - $version_timestamp.to_i) + } else ago = '' end |