Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-8525

I18n for search-decisions plugin in Cockpit (ee)

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.9.0, 7.9.0-alpha1
    • Component/s: cockpit
    • Labels:
      None

      Description

      1. in HTML files all verbal texts are replaced with meaningful tokens which are piped to the angular translate filter
        <p>{{ 'EXAMPLE_TOKEN' | translate }}</p>
        
      2. in JS files all verbal texts are replaced with meaningful tokens - the instant method of the $translate provider is applied to the tokens
        $translate.instant('EXAMPLE_TOKEN');
        
      3. all tokens are stored in src/main/resources-plugin/cockpit/locales/en.json
      4. use a meaningful prefix like "PLGN_SEDE_..." for the tokens to make clear that they belong together
      5. do not split up coherent sentences in multiple tokens if the sentences contain one or more variables. Neither in the HTML nor JS files. Use the following way instead to handle such situations:
        <p>{{ 'BATCHES_PROGRESS_FAILED' | translate:'{jobs: selection.failedJobs}' }}</p>
        
        $translate.instant('SERVICES_RESOURCE', {status: errorResponse.status})
        
        {
          ...
          "BATCHES_PROGRESS_FAILED" : "Failed {{jobs}}",
          ...
          "SERVICES_RESOURCE": "Received {{status}} from server.",
          ...
        }
        
      6. punctuation signs should be stored in the translation file also
      7. no further configurations are necessary (e. g. Gruntfile, etc.)

        Issue Links

          Activity

          Hide
          michael.schoettes Michael Schoettes added a comment -

          Test failed:
          The label No decision instances matched by current filter is not translated

          Show
          michael.schoettes Michael Schoettes added a comment - Test failed: The label No decision instances matched by current filter is not translated
          Hide
          michael.schoettes Michael Schoettes added a comment -

          Tassilo Weidner, the search plugin translation works fine. Please ignore my comment. I've opened a new issue for the missing translation --> CAM-8658

          Show
          michael.schoettes Michael Schoettes added a comment - Tassilo Weidner , the search plugin translation works fine. Please ignore my comment. I've opened a new issue for the missing translation --> CAM-8658

            People

            • Assignee:
              michael.schoettes Michael Schoettes
              Reporter:
              tassilo.weidner Tassilo Weidner
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development