diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-06-26 14:45:41 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-06-26 14:45:41 +0200 |
commit | a0325f701d6a1a4284d251f8ca4cde5a5add7bec (patch) | |
tree | b19b86ba1c27c9e3425e8d81e457ddbe66a2a1c9 /lib/rbot | |
parent | 1442690c6593c89a136ad7db40aed1fc78932e50 (diff) |
config.rb: localize git date in version
Diffstat (limited to 'lib/rbot')
-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 |