Posts Tagged as ‘i18n’

July 15, 2009

Using gettext with Perl

We added gettext support for the Perl code in libguestfs today. We used libintl-perl which is pleasantly simple to use, and works well with our existing C-based i18n infrastructure.
To translate a file, we just add this at the top:

use Locale::TextDomain ‘libguestfs’;

and we mark strings as potentially translatable just by prefixing them with a double [...]

March 20, 2009

Why “minimal” is 225 MB

As I mentioned in the last post a “minimal” febootstrap Fedora install clocks in at a staggering 225 MB. When I say minimal, I mean just bash and the simplest command-line tools from coreutils:

$ ls /bin
arch chgrp cut echo fgrep ls [...]