-
Notifications
You must be signed in to change notification settings - Fork 2
Memsource Translation Memory
Robin Černín edited this page Mar 27, 2020
·
1 revision
$ memsource translation memory list
+---------+-------------+------+---------------------------+-------------+--------------+------------------------------------------------------------+------+------------+--------+
| id | internal_id | name | date_created | source_lang | target_langs | created_by | note | sub_domain | domain |
+---------+-------------+------+---------------------------+-------------+--------------+------------------------------------------------------------+------+------------+--------+
| 1052592 | 2 | test | 2020-01-25 22:07:09+00:00 | en | ['ja', 'zh'] | {"first_name": "Robin", "last_name": "Cernin", | None | null | null |
| | | | | | | "user_name": "robincernin", "email": | | | |
| | | | | | | "[email protected]", "role": "ADMIN", "id": | | | |
| | | | | | | "380294", "uid": "i0joEXVYjvh6821clw6Qm5"} | | | |
+---------+-------------+------+---------------------------+-------------+--------------+------------------------------------------------------------+------+------------+--------+
$ memsource translation memory search --trans-memory-id 1052592 --query "test*" --source-lang en --target-langs ja
+-------------+-------------+-------------+-------------+------------+--------------+
| source_lang | source_text | target_lang | target_text | project_id | project |
+-------------+-------------+-------------+-------------+------------+--------------+
| en | test | ja | testcde | 16934584 | test_project |
| en | testconsole | ja | molestunel | 15914814 | tmx_project |
+-------------+-------------+-------------+-------------+------------+--------------+
$ memsource translation memory import --trans-memory-id 1052592 --filenames /home/rcernin/Downloads/test-en-ja-T.mxliff
+------------------------------------------------+------------------------+------------------------+------------------------+-------------------------+-------+
| filename | created_segments_count | updated_cegments_count | skipped_segments_count | accepted_segments_count | empty |
+------------------------------------------------+------------------------+------------------------+------------------------+-------------------------+-------+
| /home/rcernin/Downloads/test-en-ja-T.mxliff | -1 | -1 | -1 | 1 | False |
+------------------------------------------------+------------------------+------------------------+------------------------+-------------------------+-------+
$ memsource translation memory export --trans-memory-id 1052592
+-----------+------------+--------------------------------------------------------------------+--------------------------+---------+--------+---------------------------------------------------------------------+
| id | action | created_by | date_created | project | parent | async_export |
+-----------+------------+--------------------------------------------------------------------+--------------------------+---------+--------+---------------------------------------------------------------------+
| 359813472 | EXPORT_TMX | {'userName': 'robincernin', 'uid': 'i0joEXVYjvh6821clw6Qm5', 'id': | 2020-03-27T10:06:05+0000 | None | None | {'exportTargetLangs': ['ja', 'zh'], 'transMemory': {'id': |
| | | '380294', 'firstName': 'Robin', 'lastName': 'Cernin', 'role': | | | | '1052592'}} |
| | | 'ADMIN', 'email': '[email protected]'} | | | | |
+-----------+------------+--------------------------------------------------------------------+--------------------------+---------+--------+---------------------------------------------------------------------+
$ memsource translation memory download --async-req-id 359813472 --filename ExportedTM.tmx
+--------+----------------+
| Field | Value |
+--------+----------------+
| format | TMX |
| path | ExportedTM.tmx |
+--------+----------------+