Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 5.3.4, PUP 5.4.0
    • Component/s: Modules
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide

      Module locale files are synced down to the Agent's $vardir in a directory structure usable by FastGettext.

      Show
      Module locale files are synced down to the Agent's $vardir in a directory structure usable by FastGettext.
    • Team:
      Platform Core
    • Sprint:
      Platform Core KANBAN
    • Release Notes:
      New Feature
    • Release Notes Summary:
      During pluginsync, the agent will now download module translation files along with the rest of the module data.
    • QA Risk Assessment:
      No Action

      Description

      The second part of getting module translations visible on the the agent is to actually download the locale files along with the other module data. This involves the following steps:

      • Add a new Downloader to the DownloaderFactory for downloading locale files. This downloader should put the files into a directory structure like $vardir/locales/<locale>/<module_name>.po. For the time being, we should sync all of the available locales, not just the one detected on the system. This can be optimized later if needed.
      • Add the relevant settings for the new downloader (e.g. localedest and localesource) to the settings defaults.
      • Add tests for the new Downloader to the downloader factory specs.
      • Update the tests in the plugin handler specs to exercise the locale downloader.

      Other pieces may fall out of this, and other tests may need to be updated, but this is a good start. Note that this will not cause any module translations to actually be displayed; this ticket's other subtask describes the work needed to load the translation files from $vardir once they are present.

        Attachments

          Activity

            People

            Assignee:
            maggie Maggie Dreyer
            Reporter:
            maggie Maggie Dreyer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support