Hi, Le lundi 07 mars 2005 Ã 20:47 -0600, Federico Mena Quintero a Ãcrit : > On Mon, 2005-03-07 at 22:26 +0100, Christian Persch wrote: > > - If you have locale codes "ab_CD" and want to translate that into a > > human-readable description, you have to parse XML files from iso-codes > > package (there's also a tabular format, but that one is 'in flux', to > > cite the maintainer). Epiphany has code to do that (and Galeon has > > copied it already); if it's of interest to other modules, the code could > > be separated out for easy cut-and-paste (or even upstreamed as a library > > into the iso-codes package). > > Would it be feasible to write an preprocessor that munges the XML at > compile-time into some mmap()able binary file? That way we'll avoid a > lot of memory bloat.
Sure, that should be feasible. Although, to avoid memory bloat, shouldn't that file be in iso-codes and therefore shared with between all apps, instead of per-app? Regards, Christian _______________________________________________ gnome-i18n mailing list gnome-i18n@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-i18n