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

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

Re: bug in po-mode?


From: Karl Eichwalder
Subject: Re: bug in po-mode?
Date: Fri, 27 Sep 2002 22:02:52 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

address@hidden (Rasmus Resen Amossen) writes:

> I'm having troubles with the po-mode in pluralfors. The following is 
> exactely what I do:

Sigh, it's broken again.  I'm very sorry.

> I then run "xgettext --keyword=_ -i locale.php". This generates the 
> file "messages.po" (why not "messages.pot"?):

Probably for historic reasons.  BTW, this is the first time I see
someone using the --indent switch!

> Now I run "msginit -lda_DK -i messages.po" which generates the file "da.po":
> The problem is now that po-mode WON'T let me edit the "msgstr[1]". If I try 
> to (place the curser on "msgstr[1] and press ENTER"), Emacs comes with the 
> following error:
>
> -----Error start-----
> Search failed: "^\\(#~[         ]*\\)?msgid.*
> \\(\\(#~[       ]*\\)?\".*
> \\)*"
> -----Error end-----

I'm able to reproduce it and will try to find a proper solution.  It kind of
works, if the plural contaminated entry isn't the very last message of the
.po file, though...

> What to do?

For the moment, please edit plural entries in plain text mode
(fundamental mode):

    . escape from po-mode pressing 'E'; confirm with "yes"

    . edit the entry.

    . enter 'M-x po-mode RET' to enable po-mode again and continue as
      usual.

> By the way: If there are more than 2 pluralis forms given in the "Plural-
> Forms" header tag, how can I create all the msgstr[N]-tags needed for 
> these? I have only been able to create msgstr[0] and msgstr[1].

Escape from po-mode as explained above.  Proper functionality is still
missing.

-- 
address@hidden (work) / address@hidden (home):              |
http://www.suse.de/~ke/                                  |      ,__o
Free Translation Project:                                |    _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/             |   (*)/'(*)




reply via email to

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