Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1506

Show translation statistics in "Configuration > Regional" section

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Scheduled
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.3.0
    • Component/s: Localization
    • Labels:
      None
    • Change Log Group:
      Added
    • Change Log Message:
      The language pack translation statistics in now collected and shown in "Configuration > Website > Regional" section in Admin Console.
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Plan

      1. show "Translations Synced" column in "Configuration > Regional" section
      2. column would have both filtering and sorting disabled (to speed up implementation)
      3. create "lang:TranslationStatistics" tag, that would:
        • accept "prefix" parameter; possible values: "phrases", "email-template"
        • make single DB query from DB table associated with given unit (via "prefix" parameter) in which get this from every language (replace "5" with language ID):
          SUM(IF(l5_TranslateFrom = 0, 0, 1)) / COUNT(l5_TranslateFrom)
        • cache in a static variable
        • return value for currently displayed language (in grid)

      • phrase count, that doesn't require to be synced:
        SUM(IF(l5_TranslateFrom = 0, 1, 0))
      • total phrase count:
        COUNT(l5_TranslateFrom)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: