Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

CategoryLanguageResource

Purpose

Integrate NEC-TM as LanguageResource.

Bootstrap Class

editor_Plugins_NecTm_Init
TypeCore plug-in (delivered with translate5 core)

Description

  • For each translate5 instance only one set of NEC TM credentials is configured.
    1. username
    2. password
    3. a range of one or more top-level tags (these tags can only be set in the configuration on instance level of translate5)
  • All this data is passed on authentication of this translate5 instance with NEC TM and thus only TM data below the top-level tags can be accessed (plus all public data). To ensure this is in the responsibility of NEC TM.
  • On login and when the user enters the LanguageResources, translate5 queries NEC TM for all tags that can be accessed with the system credentials in NEC TM. The existing tags are saved in the translate5 DB. Tags that already exist in translate5 DB but do not exist any more in NEC TM are removed from the DB and from all language resource associations (current implementation: without any notification to the user or admin).
  • When a new NEC language resources is added in translate5, all tags are offered to choose from that translate5 in step 3 above has gotten from NEC TM.

For using LanguageResources in translate5, see Basic usage - LanguageResources.

Configuration of the NEC-TM- Plug-In

Config nameValuesDefaultDescription

runtimeOptions.plugins.NecTm.server

list[]NEC-TM Api Server; format: ["SCHEME://HOST:PORT"]
runtimeOptions.plugins.NecTm.credentialslist[]Credentials (licenses) to the NEC-TM API; format: ["username:password"]
runtimeOptions.plugins.NecTm.topLevelCategoriesIdslist[]These top-level categories are always send to NEC-TM in addition to the categories defined with your current NEC-TM language resource. So there will be always matches from segments, that contain these tags in NEC-TM. This definition can stay empty.
Enter the NEC-TM's tag-ids here, not their tag-names! Example: ["tag391","tag840"].
runtimeOptions.worker.editor_Plugins_NecTm_Worker.maxParallelWorkersinteger3Max parallel running workers of the NEC-TM-categories-synchronization worker
  • No labels