• Alexander Potashev's avatar
    krita_xgettext.sh: Fix modification of multiline msgctxt tags · b1ce7439
    Alexander Potashev authored
    Summary:
    For a message like this:
      msgctxt ""
      "context string"
      msgid "original text"
    the former code changed the msgctxt and also added
      msgctxt "(qtundo-format)"
    because it did not find the existing msgctxt on the previously line
    w.r.t. msgid.
    
    To fix the problem, we additionally check:
      lastLine !~ /^"/
    
    Thanks to Luigi Toscano for noticing and for his patch that does
    basically the same.
    
    CCMAIL: luigi.toscano@tiscali.it
    
    Reviewers: rempt, ltoscano
    
    Reviewed By: rempt, ltoscano
    
    Differential Revision: https://phabricator.kde.org/D1203
    b1ce7439
krita_xgettext.sh 3.85 KB