[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using gettext for libraries
From: |
Andrew Clausen |
Subject: |
Re: using gettext for libraries |
Date: |
Wed, 03 Jan 2001 17:53:58 -0200 |
Petr Vandrovec wrote:
> > > > So, why is there always exactly one domain active?
> > >
> > > Because of it is convient for programs. Libraries must always use
> > > dgettext(), as does libc or other correctly internationalized libraries.
> >
> > Why not have allow an arbitary number of domains? Worried about
> > collisions?
>
> You can hardly have two defaults.
Why? You just search for a matching string in both "defaults".
(It's using a hash table, right? If so, then share the hash table
for all (loaded) domains, perhaps?)
> Nothing prevents program from not using gettext, and use dgettext instead.
Just thinking about performance, code bloat, etc. The difference is
probably a drop-in-the-ocean, so it's mainly an "elegance" thing, I
guess.
Well, maybe.
Andrew Clausen