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

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

gettext po-mode proposal


From: Dmitry Dzhus
Subject: gettext po-mode proposal
Date: Thu, 31 Jul 2008 00:04:14 +0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Greetings!

Recently I used Emacs `po-mode` shipped with gettext to create some
translation. I found out that it has no facility to «wrap» long
single-line messages (in Emacs terminology, there is no way to «fill»
them), because inserting newlines in translation buffer results in `\n`
being appended all over the corresponding `msgstr` afterwards. Gettext
manual states that this is an expected behavior because of gettext
policy of handling long multiline strings.

GNUnited Nations Manual describes really handy and nice `po-wrap` function:

http://www.gnu.org/software/trans-coord/manual/gnun/html_node/New-Translation.html

It wraps all long lines nicely without breaking any multiline messages.
It calls external `msgcat(1)` tool, so no functionality gets
duplicated. I suggest `po-wrap` to be included in `po-mode`.
-- 
Happy Hacking.

http://sphinx.net.ru

reply via email to

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