Andreas Vox wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > >> Being more explicit: > > Thanks! > >> std::cout << _("my dynamic string") << '\n'; > > I was confused there. So "dynamic string" is short for > "string in a dynamic context". > I first thought you had to treat static string constants > and calculated strings differently.
I think it's nothing more complex than: the call to _("my dynamic string") is made when the function is called which is sometime *after* the gettext databases are initialized. the call to _(...) that initialises static_str char const * const static_str = _("my static string"); int main() { gettext.initialise(); } occurs before the call to gettext.initialise() (psuedo code). -- Angus