From: Eric Hodel Date: 2004-04-26T22:19:45-07:00 Subject: Re: Approaches to localization? --lx6+J6gHrzwEpYNy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Austin Ziegler (austin@halostatue.ca) wrote: > The approach that I use is a tag-based system similar to this. It has fla= ws > -- but they are flaws shared with the approach mentioned above. The progr= am > is configured like so: >=20 > Message =3D { > # The encoding for the webpages. This should match the encoding > # used to create these messages. > :encoding =3D> "iso-8859-1", > # Backend-related messages. > :no_webmaster_defined =3D> "Error: Webmaster is unset.", > :backend_unknown =3D> "Backend %s is unknown.", > :cannot_create_project =3D> "Cannot create project %s: %s", > :cannot_destroy_project =3D> "Cannot destroy project %s: %s", > :cannot_destroy_topic =3D> "Cannot destroy %s::%s: %s", > } This is similar to the approach Mozilla uses inside XUL, but they get the added benefit of SGML entity replacement from the DTD. --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --lx6+J6gHrzwEpYNy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQFAje1wMypVHHlsnwQRApSRAKDQG54fAMqpilyBqlh11vR7BHD0rwCgzsDk o76BHNURmjm9Drwho2iylFg= =KH1w -----END PGP SIGNATURE----- --lx6+J6gHrzwEpYNy--