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

I18n for processActionsEE 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_PACT_..." 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

          tassilo.weidner Tassilo Weidner created issue -
          tassilo.weidner Tassilo Weidner made changes -
          Field Original Value New Value
          Link This issue is depended on by CAM-8026 [ CAM-8026 ]
          tassilo.weidner Tassilo Weidner made changes -
          Link This issue is depended on by CAM-8026 [ CAM-8026 ]
          tassilo.weidner Tassilo Weidner made changes -
          Link This issue is depended on by CAM-2268 [ CAM-2268 ]
          roman.smirnov Smirnov Roman made changes -
          Rank Ranked higher
          roman.smirnov Smirnov Roman made changes -
          Issue Type Task [ 3 ] Feature Request [ 2 ]
          tassilo.weidner Tassilo Weidner made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          tassilo.weidner Tassilo Weidner made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Original Estimate 0 minutes [ 0 ]
          Remaining Estimate 0 minutes [ 0 ]
          Assignee Tassilo Weidner [ tassilo.weidner ] Fabian Hinsenkamp [ fabian.hinsenkamp ]
          Resolution Fixed [ 1 ]
          fabian.hinsenkamp Fabian Hinsenkamp made changes -
          Status Resolved [ 5 ] In Test [ 10004 ]
          fabian.hinsenkamp Fabian Hinsenkamp made changes -
          Assignee Fabian Hinsenkamp [ fabian.hinsenkamp ] Michael Schoettes [ michael.schoettes ]
          michael.schoettes Michael Schoettes made changes -
          Status In Test [ 10004 ] Closed [ 6 ]
          seif.ghezala Seif Ghezala made changes -
          Fix Version/s 7.9.0-alpha1 [ 15191 ]
          fabian.hinsenkamp Fabian Hinsenkamp made changes -
          Affects Version/s 7.9.0-alpha2 [ 15291 ]
          tassilo.weidner Tassilo Weidner made changes -
          Affects Version/s 7.9.0-alpha2 [ 15291 ]
          thorben.lindhauer Thorben Lindhauer made changes -
          Workflow camunda BPM [ 44811 ] Backup_camunda BPM [ 63409 ]

            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