Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-1856

Use pgettext function in Python 3.8

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.4.0b1
    • Component/s: Localization
    • Labels:
      None

      Description

      For the attributes we need to access gettext strings with context. Normally this is provided by gettext with the pgettext(context, message) function, but this was not available in Python until version 3.8

      Add support for pgettext in Python 3.8, but keep the old code for older versions.

        Attachments

          Activity

            People

            Assignee:
            outsidecontext Philipp Wolfer
            Reporter:
            outsidecontext Philipp Wolfer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package
                2.4.0b1