Re: Tcl and i18n
On Sat, Aug 26, 2006 at 01:28:50PM +0200, Sylvain Beucler wrote:
> Hi mentors,
>
> I'm working on the page-crunch package, a Tcl/Tk frontend for psnup
> and other utilities.
>
> There is a new version that comes with English and French l10n using
> msgcat::, but the program assumes that the msgcat file (e.g. "fr.msg")
> lies in the same directory than the script (eg /usr/bin in the
> package..) - which is not acceptable here.
>
> So I have 2 questions:
>
> - Is there a standard (FHS) location for msgcat files? Those are not
> .mo files.. Maybe /usr/share/nls?
>
> Locate doesn't help :/
>
> $ locate fr.msg
> /usr/lib/tk8.4/msgs/en.msg
>
>
> - More generally did any Tcl packager have to face i18n issues? Can
> you point me to existing packages?
To self-answer my question: msgcat is pretty unflexible and needs to
be told explicitely where to find his .msg files. Moreover, .msg must
be named <language_code>.msg, such as fr.msg (not <project>.msg as
with .po files).
Hence, they don't fit in the FHS, and we've put those files under
/usr/share/<project>/.
--
Sylvain
Reply to: