Current state of Ruby i18n?

J

James Britt

What's the current state of i18n in Ruby?

If I wanted to build a Web site that offered content in multiple
languages for people in various Asian countries could Ruby handle the task?

Is there anything that documents this (i.e., explains the gory details
and gives examples)?



Thanks,


James
 
E

Eric Hodel

--Apple-Mail-12--121519369
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed

What's the current state of i18n in Ruby?

If I wanted to build a Web site that offered content in multiple
languages for people in various Asian countries could Ruby handle the
task?

Is there anything that documents this (i.e., explains the gory details
and gives examples)?

You'll want to:

$KCODE = 'u'
require 'jcode'

To make string functions multibyte-capable.

Be sure your data store handles UTF-8, and you set the right
content-encoding for your pages.

We've got all kinds of (user entered) multibyte strings on 43 Things,
but haven't yet translated any of our internals.

--
Eric Hodel - (e-mail address removed) - http://segment7.net
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04

--Apple-Mail-12--121519369
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFB/AJRMypVHHlsnwQRAqrkAKDwKFt6IY+zDRDIJtcj6QU8ePpWbQCgmQN+
VsCR8qh37FKFqUf9tQOCQME=
=DF9r
-----END PGP SIGNATURE-----

--Apple-Mail-12--121519369--
 
J

James Britt

Eric said:
You'll want to:

$KCODE = 'u'
require 'jcode'

To make string functions multibyte-capable.

Be sure your data store handles UTF-8, and you set the right
content-encoding for your pages.

We've got all kinds of (user entered) multibyte strings on 43 Things,
but haven't yet translated any of our internals.

Thanks!

James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,166
Messages
2,570,902
Members
47,443
Latest member
RobertHaddy

Latest Threads

Top