[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [intl] Is there anyway to find out what language & message file is i
From: |
Bruno Haible |
Subject: |
Re: [intl] Is there anyway to find out what language & message file is in use ? |
Date: |
Mon, 27 May 2002 13:47:38 +0200 (CEST) |
Rapp, Perry writes:
> Is there anyway to find out what language & message file is in use
> by the libintl ?
>
> Eg,
>
> getcurrentlang() -> "sv"
>
> getcurrentmsgcat() ->
> "bizarreMSlocation\share\locale\sv\LC_MESSAGES\lifelines.mo"
gettext keeps a list of catalogs open in general. You can get
information about the catalog that has highest priority [for a given
domain] by calling gettext(""). It returns a string of meta
information about the catalog, which you can then parse.
Bruno