Difference between revisions of "Memsource"

From Lingoport Wiki
Jump to: navigation, search
(Created page with " ===Link LRM and Memsource=== Configure '''config_l10n_vendor.properties''' (which can be specified at the group or project config level): <ul> <li>uncomment '''<code>l10n.ve...")
 
(Link LRM and Memsource)
Line 1: Line 1:
   
 
===Link LRM and Memsource===
 
===Link LRM and Memsource===
  +
<ol>
 
  +
<li>
 
Configure '''config_l10n_vendor.properties''' (which can be specified at the group or project config level):
 
Configure '''config_l10n_vendor.properties''' (which can be specified at the group or project config level):
  +
</li>
 
<ul>
 
<ul>
 
<li>uncomment '''<code>l10n.vendor=local</code>'''</li>
 
<li>uncomment '''<code>l10n.vendor=local</code>'''</li>
Line 8: Line 10:
 
<li>configure '''<code>local.in.absolute.path</code>'''</li>
 
<li>configure '''<code>local.in.absolute.path</code>'''</li>
 
</ul>
 
</ul>
  +
<li>
 
 
Configure <HOME>/Lingoport_Data/L10nStreamlining/config/'''config_memsource_tofrom.properties''':
 
Configure <HOME>/Lingoport_Data/L10nStreamlining/config/'''config_memsource_tofrom.properties''':
  +
</li>
 
<ul>
 
<ul>
 
<li>configure '''<code>memsource.to.translation.dir</code>'''</li>
 
<li>configure '''<code>memsource.to.translation.dir</code>'''</li>
 
<li>configure '''<code>memsource.from.translation.dir</code>'''</li>
 
<li>configure '''<code>memsource.from.translation.dir</code>'''</li>
 
</ul>
 
</ul>
  +
<li>
 
 
Modify the Jenkins job <b>LocalVendorDownload</b> and check <b>Build after other projects are built</b> and then in <b>Projects to watch</b>, type in <b>MemsourceCallback</b>.
 
Modify the Jenkins job <b>LocalVendorDownload</b> and check <b>Build after other projects are built</b> and then in <b>Projects to watch</b>, type in <b>MemsourceCallback</b>.
  +
</li>
  +
</ol>
   
 
===Memsource Configuration===
 
===Memsource Configuration===

Revision as of 20:16, 2 October 2019

Link LRM and Memsource

  1. Configure config_l10n_vendor.properties (which can be specified at the group or project config level):
    • uncomment l10n.vendor=local
    • configure local.out.absolute.path
    • configure local.in.absolute.path
  2. Configure <HOME>/Lingoport_Data/L10nStreamlining/config/config_memsource_tofrom.properties:
    • configure memsource.to.translation.dir
    • configure memsource.from.translation.dir
  3. Modify the Jenkins job LocalVendorDownload and check Build after other projects are built and then in Projects to watch, type in MemsourceCallback.

Memsource Configuration

Configure the Memsource settings in the config_memsource_vendor.properties (which can be specified at the group or project config level).

#
# Contains configuration for memsource
#
# To configure the token, follow these instructions:
# https://help.memsource.com/hc/en-us/articles/115003461011-How-to-Setup-OAuth-Authentication-in-Memsource
#
# Run the following command to list the currently available template ids:
# (note that template ids can support any target locale, not just the listed ones)
# java -jar lingoport-memsource-cli.jar --list-templates -t <token>
#
# Make sure to configure the callback for your machine
#
memsource.api.token=
memsource.api.project.template.id=
memsource.api.source.locale=en
memsource.api.callbackURL=http://<your_machine>:8080/jenkins/generic-webhook-trigger/invoke?token=1skLO6zTb

Memsource Locale Mapping

Configure config_memsource_locale_mapping.properties (which can be specified at the group or project config level).
This file maps locales from LRM to Memsource.

The default location for the configuration file is at the group level (<HOME>/Lingoport_Data/L10nStreamlining/<group name>/config).

# 
#Locale mapping language only locales - Locales should be in the java format (_)
# This is the default mapping. For your community, you'll need to edit this file
# and place it either at the group level or the project level. 
#
aa=aa
ab=ab
ach=ach
af=af
af_na=af_na
...