Forum: Ruby Posix locales in ruby ?

Posted by David Unric (dunric)
on 2012-10-14 19:03
Hi,

any idea how localise ruby applications by locales settings on posix
systems ? At least localized formating of numerics, date & time,
currency and string collation ? Based on environment settings
LC_NUMERIC, LC_TIME, LC_MONETARY, LC_COLLATE etc.

In Python there is locale
library(http://docs.python.org/library/locale.html) so I can simply call
setlocale(LC_ALL, "") and from now on most of library functions return
localised values, strings are collated by current locale settings etc.

So are there some solutions for current Ruby 1.9.x ?
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.