{"id":5592,"date":"2022-06-12T17:39:57","date_gmt":"2022-06-12T08:39:57","guid":{"rendered":"https:\/\/infoeye.com\/en\/?p=5592"},"modified":"2023-07-25T20:09:00","modified_gmt":"2023-07-25T11:09:00","slug":"%e7%b8%ab%e8%a3%bd%e4%bb%95%e6%a7%98%e6%9b%b8%e9%a1%9e%e3%81%ae%e8%87%aa%e5%8b%95%e7%bf%bb%e8%a8%b3","status":"publish","type":"post","link":"https:\/\/infoeye.com\/en\/%E7%B8%AB%E8%A3%BD%E4%BB%95%E6%A7%98%E6%9B%B8%E9%A1%9E%E3%81%AE%E8%87%AA%E5%8B%95%E7%BF%BB%E8%A8%B3\/","title":{"rendered":"Automatic translation of sewing specification documents"},"content":{"rendered":"<p>[vc_row][vc_column][vc_column_text]<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5597\" src=\"https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/deepl_logo_icon_167700.png\" alt=\"DeepL\" width=\"512\" height=\"256\" srcset=\"https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/deepl_logo_icon_167700.png 512w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/deepl_logo_icon_167700-300x150.png 300w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/>[\/vc_column_text][vc_column_text]When dealing with overseas manufacturers, there are often times when we have to translate comments into their language.<br \/>\nThis applies to sewing instructions as well, but I think the most common case is when inspecting the samples that have come in.<\/p>\n<p>When translating, of course, you may be using your own abilities, or you may be looking at the old yellow apparel dictionary.<br \/>\nMore recently, we have seen an increase in the use of excellent translation sites such as Google Translate and DeepL.<\/p>\n<p>In this article, we will show you how to use the API of DeepL and incorporate it into Claris FileMaker Custom Apps that you have created yourself.<br \/>\nWe recommend you to use the paid version of the software for full-scale use, but for the time being, you can use the software for free.<br \/>\nThere are many sewing-related terms that are unique and technical terms that are generally difficult to translate, but you can use the glossary at DeepL to grow your level of translation.<br \/>\nHere are the steps[\/vc_column_text][vc_column_text]1. Go to the DeepL site and register for free membership.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5594\" src=\"https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_21.png\" alt=\"DeepL\" width=\"1416\" height=\"239\" srcset=\"https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_21.png 1416w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_21-300x51.png 300w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_21-1024x173.png 1024w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_21-768x130.png 768w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_21-1200x203.png 1200w\" sizes=\"auto, (max-width: 1416px) 100vw, 1416px\" \/>[\/vc_column_text][vc_column_text]2. Go to the middle of the screen and press &#8220;Register for free&#8221; to register.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5595\" src=\"https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_24.png\" alt=\"DeepL\" width=\"1240\" height=\"631\" srcset=\"https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_24.png 1240w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_24-300x153.png 300w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_24-1024x521.png 1024w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_24-768x391.png 768w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_24-1200x611.png 1200w\" sizes=\"auto, (max-width: 1240px) 100vw, 1240px\" \/>[\/vc_column_text][vc_column_text]3. After registering, go to DeepL developer site and go to &#8220;Account&#8221; in the upper right corner.<br \/>\nhttps:\/\/www.deepl.com\/ja\/docs-api\/<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5599\" src=\"https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_32.png\" alt=\"DeepL\" width=\"1490\" height=\"356\" srcset=\"https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_32.png 1490w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_32-300x72.png 300w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_32-1024x245.png 1024w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_32-768x183.png 768w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_32-1200x287.png 1200w\" sizes=\"auto, (max-width: 1490px) 100vw, 1490px\" \/>[\/vc_column_text][vc_column_text]4. Copy the &#8220;DeepL authentication key used for API&#8221; in the &#8220;Account&#8221; tab, as it is required for this API use.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5600\" src=\"https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_34.png\" alt=\"DeepL\" width=\"1490\" height=\"393\" srcset=\"https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_34.png 1490w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_34-300x79.png 300w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_34-1024x270.png 1024w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_34-768x203.png 768w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_15_34-1200x317.png 1200w\" sizes=\"auto, (max-width: 1490px) 100vw, 1490px\" \/>[\/vc_column_text][vc_column_text]5. From here, we will create Claris FileMaker Custom Apps.<br \/>\nBelow is the completed diagram.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-5603\" src=\"https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_16_06-1024x845.png\" alt=\"DeepL\" width=\"580\" height=\"479\" srcset=\"https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_16_06-1024x845.png 1024w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_16_06-300x248.png 300w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_16_06-768x634.png 768w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_16_06.png 1060w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/>[\/vc_column_text][vc_column_text]The main flow is that you enter the source text, select the language with the button, and the source text and the language you want to translate are sent to DeepL.<br \/>\nThe excellent DeepL automatically detects the received language, converts the source text into the language you want to translate, and returns the translated text.<br \/>\nAt this time, you will need the &#8220;authentication key used by DeepL API&#8221; that you have just obtained.[\/vc_column_text][vc_column_text]6. We will follow along with this sample file. Although global fields are used, they do not have to be global fields.<\/p>\n<p>Field Name \u00a0 \u00a0 \u00a0 \u00a0 type\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000Options\/Comments<br \/>\ng_text 1 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Text Global\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000Enter the original text<br \/>\ng_text 2 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Text Global\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000Translated text retrieved from DeepL will be entered<br \/>\ng_lang\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Text Global\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000 \u3000\u3000\u3000 \u3000\u3000\u3000\u3000 \u3000\u3000 \u3000 \u3000Set the language to be translated<br \/>\ng_authentication_key \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Text Global\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000Authentication key for DeepL[\/vc_column_text][vc_column_text]7. We will create a script.<br \/>\nThe script is only 3 lines long.<br \/>\nMoreover, I see that the DeepL site describes what to set up, including the authentication key.<br \/>\nBasically, we will use this as is.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5604\" src=\"https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_16_12.png\" alt=\"DeepL\" width=\"1633\" height=\"580\" srcset=\"https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_16_12.png 1633w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_16_12-300x107.png 300w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_16_12-1024x364.png 1024w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_16_12-768x273.png 768w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_16_12-1536x546.png 1536w, https:\/\/infoeye.com\/en\/wp-content\/uploads\/2022\/06\/2022_06_12_16_12-1200x426.png 1200w\" sizes=\"auto, (max-width: 1633px) 100vw, 1633px\" \/>[\/vc_column_text][vc_column_text]7. We will create the actual script.<br \/>\nLet&#8217;s review what you have just copied from the DeepL website.<br \/>\nReplace &#8220;Authentication Key&#8221; below with your own authentication key.<br \/>\n<code>curl https:\/\/api-free.deepl.com\/v2\/translate \\<br \/>\n-d auth_key=authentication key \\<br \/>\n-d \"text=Hello, world!\" \\<br \/>\n-d \"target_lang=DE\"<\/code><\/p>\n<p>The following is a breakdown of the file that is easy to grasp in Claris FileMaker.<br \/>\ndestination URL\uff1a\u3000https:\/\/api-free.deepl.com\/v2\/translate \\<br \/>\nAuthentication key: Your own authentication key<br \/>\nOriginal: Hello, world!<br \/>\nLanguage to be translated: DE<\/p>\n<p>Set a 2-letter code for the language to be translated.<br \/>\nEN if you want to translate it into English.<br \/>\nSee &#8220;target_lang&#8221; on the following page for a list.<br \/>\n<a href=\"https:\/\/www.deepl.com\/ja\/docs-api\/translating-text\/request\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.deepl.com\/ja\/docs-api\/translating-text\/request\/<\/a>[\/vc_column_text][vc_column_text]The following is the script<br \/>\nIn actual Custom Apps, there is no need to use global fields.<br \/>\nAlso, you do not need to use the button to translate, you can master the languages to be translated for each client in advance and automatically execute the translation script by using the script trigger &#8220;OnObjectSave&#8221; in the &#8220;Source&#8221; field.<br \/>\nFurthermore, since there is a slight time lag in translation, it would be a good idea to run the translation on the server side and have the translated text in the background to eliminate frustration during busy times.<br \/>\n<code>1: Field Settings [ Auto Translate::g_lang ; Get ( script argument )<br \/>\n2: Insert from URL [ Select ; Dialog: off ; Target: $r ; \"https:\/\/api-free.deepl.com\/v2\/translate\" ; cURL option: \" -d auth_key=\" &amp; auto-translation::g_authentication_key &amp; \" -d \\\"text=\" &amp; auto-translation::g_text 1 &amp;\"\\\" &amp; \" -d \\\"target_lang=\" &amp; auto-translation::g_lang &amp;\"\\\"]<br \/>\n3: Field Settings [ automatic, machine translation::g_text 2 ; JSONGetElement ( $r ; \"translations[].text\" ) ] <\/code>[\/vc_column_text][vc_column_text]\u25cb\u3000treatment<br \/>\nEnter the authentication key and the original text, and press the language button to display the translated text.[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_column_text][\/vc_column_text][vc_column_text]When dealing with overseas manufacturers, there are often times when we have to translate comments into their language. This applies to sewing instructions as well, but I think the most common case is when inspecting the samples that have come in. When translating, of course, you may be using your own abilities, or you may [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"","footnotes":""},"categories":[48,7],"tags":[],"class_list":["post-5592","post","type-post","status-publish","format-standard","hentry","category-filemaker","category-news"],"acf":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/infoeye.com\/en\/wp-json\/wp\/v2\/posts\/5592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infoeye.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infoeye.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infoeye.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/infoeye.com\/en\/wp-json\/wp\/v2\/comments?post=5592"}],"version-history":[{"count":14,"href":"https:\/\/infoeye.com\/en\/wp-json\/wp\/v2\/posts\/5592\/revisions"}],"predecessor-version":[{"id":11232,"href":"https:\/\/infoeye.com\/en\/wp-json\/wp\/v2\/posts\/5592\/revisions\/11232"}],"wp:attachment":[{"href":"https:\/\/infoeye.com\/en\/wp-json\/wp\/v2\/media?parent=5592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infoeye.com\/en\/wp-json\/wp\/v2\/categories?post=5592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infoeye.com\/en\/wp-json\/wp\/v2\/tags?post=5592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}