bugGNU gettext - Bugs: bug #23177, po mode: editing a plural form...


You are not allowed to post comments on this tracker with your current authentication level.

bug #23177: po mode: editing a plural form creates invalid PO file

Submitted by:  Bruno Haible <haible>
Submitted on:  Tue 06 May 2008 12:23:29 AM UTC  
Category:  PO mode Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  Bruno Haible <haible>
Open/Closed:  Closed

Thu 08 May 2008 10:01:45 AM UTC, comment #3: 

Bug fix tested and approved!
Thank you, Bruno.

This bug is really annoying, do you intend to release a new version?

(file #15639)

Stéphane Raimbault <sraimbault>
Wed 07 May 2008 11:09:03 PM UTC, comment #2: 

The Emacs bug is unrelated, after all.

I fixed the bug in po-mode.el.

Bruno Haible <haible>
Project AdministratorIn charge of this item.
Tue 06 May 2008 11:38:01 AM UTC, comment #1: 

This bug depends on the resolution of the Emacs bug

Bruno Haible <haible>
Project AdministratorIn charge of this item.
Tue 06 May 2008 12:23:29 AM UTC, original submission:  

Reported by Stéphane Raimbault <stephane.raimbault@gmail.com> in
private email.

To reproduce:
- Take fr.po from gettext-0.17/gettext-tools/po/fr.po
- Take emacs 22.2
- emacs fr,po
- Search for the first occurrence of msgstr[1]. It's a 3-line string:

msgstr[1] ""
"Dans la directive numéro %u, trop de paramètres sont fournis (il en faut %u "
"au maximum)."

- Put the cursor at the beginning of the second or third of these lines.
- Press RET. Change the string. Press C-c C-c.
- The msgstr[1] is changed into msgstr[0] or msgstr !!
- The PO file is therefore invalid.

The effects can be observed more immediately by positioning
the cursor at the second or third line and executing
M-x po-current-entry
(It should position the cursor at the beginning of the currrent
entry, but moves it to the beginning of the next entry instead.)

Bruno Haible <haible>
Project AdministratorIn charge of this item.


Attached Files
file #15639:  po-mode-plural-form.patch added by sraimbault (4KiB - text/x-diff - Patch by Bruno Haible)
file #15613:  fr.po added by haible (204KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by sraimbault (Updated the item)
  • -email is unavailable- added by haible (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-26 haible CategoryNone => PO mode
    2008-08-16 haible Open/ClosedOpen => Closed
    2008-05-08 sraimbault Attached File- => Added po-mode-plural-form.patch, #15639
    2008-05-07 haible StatusIn Progress => Fixed
    2008-05-06 haible StatusConfirmed => In Progress
    2008-05-06 haible Attached File- => Added fr.po, #15613

    Back to the top

    Powered by Savane 3.5