Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cmdlets *-IshTranslationTemplate #68

Open
5 tasks
ddemeyer opened this issue Sep 6, 2019 · 0 comments
Open
5 tasks

Add cmdlets *-IshTranslationTemplate #68

ddemeyer opened this issue Sep 6, 2019 · 0 comments
Labels

Comments

@ddemeyer
Copy link
Contributor

ddemeyer commented Sep 6, 2019

TranslationOrganizer uses the IshTranslationTemplate to synchronize source/target/workflows coming from WorldServer, TMS, FileSystem, etc

These cmdlets would allow you to see what was sync'd, and potentially administrator one or more over the same API functions that TranslationOrganizer uses.

  • Add-IshTranslationTemplate
  • IshTranslationTemplate public objects for rendering
    • output.xml rendering the columns: type, name, alias, reference, sourcelanguage, review
  • Get-IshTranslationTemplate
    • Get because a Find would allow filtering which the API doesn't offer
    • The public object could also return ishtemplateref and workflow as xml
  • Remove-IshTranslationTemplate
    • -Type and -Alias are mandatory. Theoretically you could have Remove-IshTranslationTemplate which just removes all templates directly. Somewhat unsafe, then prefer a Get-IshTranslationTemplate | Remove-IshTranslationTemplate construction.
    • Where -Type is one of these allowed values FS|WS|TMS ... later LC?
  • Close ISHREMOTE-033

Create a Translation Template using

<translationjobtemplates>
  <translationjobtemplate>
    <translationjobtemplatedata sourcelanguage="en" type="WS" alias="" review="FALSE">
      <name>__Trisoft_IntegrationTest_Client:__Trisoft_IntegrationTest_ProjectType</name>
      <reference>1021:1001</reference>
      <workflows>
        <workflow language="ar" reference="1061">Trisoft Simple Translation Workflow</workflow>
        <workflow language="zh" reference="1061">Trisoft Simple Translation Workflow</workflow>
        <workflow language="nl" reference="1061">Trisoft Simple Translation Workflow</workflow>
        <workflow language="fo" reference="1061">Trisoft Simple Translation Workflow</workflow>
        <workflow language="fi" reference="1061">Trisoft Simple Translation Workflow</workflow>
        <workflow language="fr" reference="1061">Trisoft Simple Translation Workflow</workflow>
        <workflow language="de" reference="1061">Trisoft Simple Translation Workflow</workflow>
        <workflow language="it" reference="1061">Trisoft Simple Translation Workflow</workflow>
        <workflow language="ja" reference="1061">Trisoft Simple Translation Workflow</workflow>
        <workflow language="no" reference="1061">Trisoft Simple Translation Workflow</workflow>
        <workflow language="pt" reference="1061">Trisoft Simple Translation Workflow</workflow>
        <workflow language="ru" reference="1061">Trisoft Simple Translation Workflow</workflow>
        <workflow language="es" reference="1061">Trisoft Simple Translation Workflow</workflow>
      </workflows>
    </translationjobtemplatedata>
  </translationjobtemplate>
</translationjobtemplates>

Return gives using

<translationjobtemplates>
  <translationjobtemplate ishtemplateref="343708">
    <translationjobtemplatedata sourcelanguage="fr" type="FS" alias="" review="FALSE">
      <name>File System Export (fr)</name>
      <reference>FS__fr</reference>
      <workflows>
        <workflow language="es" reference="default">default</workflow>
        <workflow language="it" reference="default">default</workflow>
      </workflows>
    </translationjobtemplatedata>
  </translationjobtemplate>
  <translationjobtemplate ishtemplateref="343710">
    <translationjobtemplatedata sourcelanguage="nl" type="FS" alias="" review="FALSE">
      <name>File System Export (nl)</name>
      <reference>FS__nl</reference>
      <workflows>
        <workflow language="de" reference="default">default</workflow>
        <workflow language="fr" reference="default">default</workflow>
      </workflows>
    </translationjobtemplatedata>
  </translationjobtemplate>
</translationjobtemplates>
@ddemeyer ddemeyer added the could label Sep 6, 2019
@ddemeyer ddemeyer added this to the v0.10 milestone Sep 6, 2019
@ddemeyer ddemeyer modified the milestones: v0.10, v0.11 Dec 4, 2019
@ddemeyer ddemeyer removed this from the v0.11 milestone Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant