bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reloading domain


From: Bruno Haible
Subject: Re: reloading domain
Date: Sun, 26 Jul 2009 22:13:12 +0200
User-agent: KMail/1.9.9

Hi,

Elan Ruusamäe wrote:
> is it possible to reload/unload existing .mo in running process?
> as it seems the .mo file is cached and kept open forever.

Yes, the .mo file is loaded with mmap, cached and kept open as long as the
process runs.

However, you should be able to mark the cache as invalid by doing

  bindtextdomain (DOMAIN, "/");
  bindtextdomain (DOMAIN, LOCALEDIR);

where LOCALEDIR is the base directory for the .mo files used by your package
(usually $PREFIX/share/locale).

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]