|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
| 3 | +<concept id="concept_cfk_z5b_dt"> |
| 4 | + <title>Create Project</title> |
| 5 | + <conbody> |
| 6 | + <p>Use the following parameters to create a project from command line:</p> |
| 7 | + <table> |
| 8 | + <tgroup cols="4"> |
| 9 | + <colspec colwidth="20*" align="center"/> |
| 10 | + <colspec colwidth="15*" align="center"/> |
| 11 | + <colspec colwidth="50*" align="left"/> |
| 12 | + <colspec colwidth="15*" align="center"/> |
| 13 | + <thead> |
| 14 | + <row> |
| 15 | + <entry>Parameter</entry> |
| 16 | + <entry>Value</entry> |
| 17 | + <entry>Description</entry> |
| 18 | + <entry>Required</entry> |
| 19 | + </row> |
| 20 | + </thead> |
| 21 | + <tbody> |
| 22 | + <row> |
| 23 | + <entry translate="no">-add</entry> |
| 24 | + <entry>JSON file</entry> |
| 25 | + <entry>Full path to a <xref href="../glossaries/JSON.dita">JSON</xref> file containing |
| 26 | + the data required for creating the project.</entry> |
| 27 | + <entry>Yes</entry> |
| 28 | + </row> |
| 29 | + </tbody> |
| 30 | + </tgroup> |
| 31 | + </table> |
| 32 | + <p>Example:</p> |
| 33 | + <codeblock translate="no"> |
| 34 | +fluenta_cli.bat -add addProject.json |
| 35 | + </codeblock> |
| 36 | + <p>Where the content of <cmdname>addProject.json</cmdname> should be like:</p> |
| 37 | + |
| 38 | + <codeblock translate="no"> |
| 39 | +{ id:12345678, |
| 40 | + title:"JSON test", |
| 41 | + description:"project created using JSON and CLI", |
| 42 | + map:"D:\\sample content\\en\\User_Guide-use-only.ditamap", |
| 43 | + srcLang:"en-US", |
| 44 | + tgtLang:["es","fr"] |
| 45 | +} |
| 46 | +</codeblock> |
| 47 | + <section> |
| 48 | + <title>JSON Value Pairs</title> |
| 49 | + <table> |
| 50 | + <tgroup cols="4"> |
| 51 | + <colspec colwidth="20*" align="center"/> |
| 52 | + <colspec colwidth="15*" align="center"/> |
| 53 | + <colspec colwidth="50*" align="left"/> |
| 54 | + <colspec colwidth="15*" align="center"/> |
| 55 | + <thead> |
| 56 | + <row> |
| 57 | + <entry>Member</entry> |
| 58 | + <entry>Data Type</entry> |
| 59 | + <entry>Description</entry> |
| 60 | + <entry>Required</entry> |
| 61 | + </row> |
| 62 | + </thead> |
| 63 | + <tbody> |
| 64 | + <row> |
| 65 | + <entry translate="no">id</entry> |
| 66 | + <entry>Number</entry> |
| 67 | + <entry>Project identifier</entry> |
| 68 | + <entry>Yes</entry> |
| 69 | + </row> |
| 70 | + <row> |
| 71 | + <entry translate="no">title</entry> |
| 72 | + <entry>String</entry> |
| 73 | + <entry>Short text description for the project. This is the description displayed in |
| 74 | + Fluenta's GUI</entry> |
| 75 | + <entry>Yes</entry> |
| 76 | + </row> |
| 77 | + <row> |
| 78 | + <entry translate="no">description</entry> |
| 79 | + <entry>String</entry> |
| 80 | + <entry>A longer text description for the project</entry> |
| 81 | + <entry>Yes</entry> |
| 82 | + </row> |
| 83 | + <row> |
| 84 | + <entry translate="no">map</entry> |
| 85 | + <entry>String</entry> |
| 86 | + <entry>Path to the project DITA map</entry> |
| 87 | + <entry>Yes</entry> |
| 88 | + </row> |
| 89 | + <row> |
| 90 | + <entry translate="no">srcLang</entry> |
| 91 | + <entry>String</entry> |
| 92 | + <entry>Language code for the original DITA content</entry> |
| 93 | + <entry>Yes</entry> |
| 94 | + </row> |
| 95 | + <row> |
| 96 | + <entry translate="no">tgtLang</entry> |
| 97 | + <entry>String Array</entry> |
| 98 | + <entry>An array containing the target languages for the project</entry> |
| 99 | + <entry>Yes</entry> |
| 100 | + </row> |
| 101 | + <row> |
| 102 | + <entry translate="no">memories</entry> |
| 103 | + <entry>Number Array</entry> |
| 104 | + <entry>An array containing the ids of existing memories to be associated with the |
| 105 | + project</entry> |
| 106 | + <entry>No</entry> |
| 107 | + </row> |
| 108 | + </tbody> |
| 109 | + </tgroup> |
| 110 | + </table> |
| 111 | + </section> |
| 112 | + </conbody> |
| 113 | +</concept> |
0 commit comments