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

I18n for batch 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_BTCH_..." 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

          There are no comments yet on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development