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

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

detecting conflicts between accelerators in msgstrs (msgaccel)


From: Kalle Olavi Niemitalo
Subject: detecting conflicts between accelerators in msgstrs (msgaccel)
Date: Wed, 12 Sep 2007 08:05:47 +0300
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.51 (gnu/linux)

The ELinks web browser uses gettext to load translations of
strings it shows in menus and such.  (The ELinks source tree
includes a modified version of libintl.)  Some of the strings
contain keyboard accelerators marked with tilde characters,
in a format that msgfmt --check-accelerators="~" can check.
However, msgfmt does not notice if there are conflicts between
accelerators, i.e. multiple msgstrs in the same menu specify the
same accelerator key.  So I have written a pair of Perl scripts
for that purpose.  See source code and documentation here:

http://repo.or.cz/w/elinks.git?a=tree;f=po/perl;h=b7dc5542334ddd0e236aeacf612da081182f84e9;hb=HEAD

The scripts originally had longer names.  I renamed them to
msgaccel-* on 2007-07-17, to make them seem more like part of a
coherent package.  I am writing to you now to notify about my use
of this prefix so that conflicts may be avoided.  (ELinks does
not install these scripts though, so conflicts would not be
fatal.)  And perhaps there are some ideas here that you would
like to use in gettext proper.

Attachment: pgpt4C21muMLi.pgp
Description: PGP signature


reply via email to

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