[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Whys is `make dist` packaging gmo files?
From: |
Eric Blake |
Subject: |
Re: Whys is `make dist` packaging gmo files? |
Date: |
Thu, 09 Aug 2007 06:15:03 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Andrew Smith on 8/9/2007 12:34 AM:
> They compile and install and run fine. But when I do `make dist` I end
> up with sv.gmo and zh_TW.gmo (as well as the expected sv.po, zh_TW.po)
> in my po dir. I thought these were binary and not portable?
They are indeed binary, but they ARE portable, as the file layout is
specifically machine-independent. Read up on .gmo files in the gettext
manual. When you install an internationalized package, it is the .gmo
file that gets placed into the locale directory (renamed to .mo); the
gettext() function is more efficient operating on a binary file than it
would be on the source .po that generated it.
>
> Would someone share why this may be happening and what I can do to avoid
> it?
You don't want to avoid it, otherwise your package would not have i18n
support.
> Also I just noticed a make clean doesn't delete the .gmo files.
How about 'make distclean'?
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGuwVH84KuGfSFAYARAsIgAJwMF9aNNDoLjV5HUl5Ddzb0XnUXngCgkegH
pH2c0k8dGj59kPyDAREgRAU=
=Rok7
-----END PGP SIGNATURE-----