Bug 1568998 - ValueError: plural forms expression could be dangerous
Summary: ValueError: plural forms expression could be dangerous
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: libosinfo
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-04-18 13:36 UTC by Nerijus Baliūnas
Modified: 2018-09-05 09:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-05 09:08:27 UTC
Type: Bug


Attachments (Terms of Use)

Description Nerijus Baliūnas 2018-04-18 13:36:13 UTC
Please see bug 1334960 and bug 1364114.

There is a typo in libosinfo/po/lt.po (Lithuanian translation):

"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 or n%100>=20) 

should be ("or" is considered to be an identifier by gettext):

"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20)

Please fix Plural-Forms headers (s/or/||/).

Comment 1 Daniel Berrangé 2018-09-05 09:08:27 UTC
Fixed upstream in

commit 8bdfeff395ac0773bfc510d4ae4827d1a5355c96 (HEAD -> master, origin/master, origin/HEAD)
Author: Daniel P. Berrangé <berrange@redhat.com>
Date:   Wed Sep 5 10:05:08 2018 +0100

    Refresh translations from zanata
    
    Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>


Note You need to log in before you can comment on or make changes to this bug.