Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msgfmt.py does not work with plural form #49714

Closed
stevegeo mannequin opened this issue Mar 9, 2009 · 2 comments
Closed

msgfmt.py does not work with plural form #49714

stevegeo mannequin opened this issue Mar 9, 2009 · 2 comments
Assignees
Labels
type-bug An unexpected behavior, bug, or error

Comments

@stevegeo
Copy link
Mannequin

stevegeo mannequin commented Mar 9, 2009

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']

    @stevegeo
    Copy link
    Mannequin Author

    stevegeo mannequin commented Mar 9, 2009

    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

    @stevegeo stevegeo mannequin added the type-bug An unexpected behavior, bug, or error label Mar 9, 2009
    @loewis loewis mannequin self-assigned this Mar 9, 2009
    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Jun 4, 2010

    This is now fixed in r81697 and r81698.

    @loewis loewis mannequin closed this as completed Jun 4, 2010
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants