Skip to content

msgfmt.py does not work with plural form #49714

Closed

Description

@stevegeo
mannequin
BPO 5464
Nosy @loewis, @merwok
Files
  • de.po: Example PO file with plural form
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/loewis'
    closed_at = <Date 2010-06-04.18:15:20.950>
    created_at = <Date 2009-03-09.21:47:03.454>
    labels = ['type-bug']
    title = 'msgfmt.py does not work with plural form'
    updated_at = <Date 2010-06-11.16:26:47.333>
    user = 'https://bugs.python.org/stevegeo'

    bugs.python.org fields:

    activity = <Date 2010-06-11.16:26:47.333>
    actor = 'eric.araujo'
    assignee = 'loewis'
    closed = True
    closed_date = <Date 2010-06-04.18:15:20.950>
    closer = 'loewis'
    components = ['Demos and Tools']
    creation = <Date 2009-03-09.21:47:03.454>
    creator = 'steve_geo'
    dependencies = []
    files = ['13289']
    hgrepos = []
    issue_num = 5464
    keywords = []
    message_count = 2.0
    messages = ['83407', '107084']
    nosy_count = 3.0
    nosy_names = ['loewis', 'eric.araujo', 'steve_geo']
    pr_nums = []
    priority = 'high'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue5464'
    versions = ['Python 2.7', 'Python 3.2']

    Activity

    1. stevegeo commented on Mar 9, 2009

      stevegeomannequin
      MannequinAuthor
      It seems that C:\Python26\Tools\i18n\msgfmt.py does not work with PO
      files that use plural form. Get the following error.
      ERROR    Traceback (most recent call last):
        File "C:\Python26\Tools\i18n\msgfmt.py", line 203, in <module>
          main()
        File "C:\Python26\Tools\i18n\msgfmt.py", line 199, in main
          make(filename, outfile)
        File "C:\Python26\Tools\i18n\msgfmt.py", line 151, in make
          l = eval(l)
        File "<string>", line 1
          _plural "%d generations"
                                ^
      SyntaxError: invalid syntax
    2. added
      type-bug
      on Mar 9, 2009
    3. self-assigned this
      on Mar 9, 2009
    4. loewis commented on Jun 4, 2010

      loewismannequin
      Mannequin

      This is now fixed in r81697 and r81698.

    5. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    type-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions