{"id":283,"date":"2026-11-23T09:37:18","date_gmt":"2026-11-23T09:37:18","guid":{"rendered":"https:\/\/docs.latw.ai\/uncategorized\/glossary\/"},"modified":"2026-11-23T09:37:18","modified_gmt":"2026-11-23T09:37:18","slug":"glossary","status":"publish","type":"post","link":"https:\/\/docs.latw.ai\/pl\/latw-for-wpml\/glossary\/","title":{"rendered":"Glossary"},"content":{"rendered":"<p><em>Available in LATW AI Translator for WPML <strong>PRO<\/strong>.<\/em><\/p>\n<h2>What it does<\/h2>\n<p>The glossary pins chosen terms to a fixed translation: brand names, product names, industry<br \/>\nvocabulary, anything the AI keeps translating in a way you don&#8217;t want. You enter a term once, give<br \/>\nit a translation for each language, and from then on every translation into that language is told<br \/>\nto use your wording.<\/p>\n<p>You&#8217;ll find it under <strong>AI Translator \u2192 Glossary<\/strong>.<\/p>\n<h2>Adding an entry<\/h2>\n<p>Click <strong>Add Entry<\/strong> and fill in:<\/p>\n<ul>\n<li><strong>Term<\/strong>: the word or phrase as it appears in your content.<\/li>\n<li><strong>Source Language<\/strong>: the language the term is written in. It defaults to your WPML default<br \/>\nlanguage.<\/li>\n<li><strong>Description<\/strong>: optional. It is a note for you and your team only and <strong>is not sent to the<br \/>\nAI<\/strong>.<\/li>\n<li><strong>Translations<\/strong>: one field per language. Type the translation the AI should use for that<br \/>\nlanguage.<\/li>\n<\/ul>\n<p><strong>A translation field left empty means &#8220;no rule for this language&#8221;.<\/strong> That language gets nothing<br \/>\nfor this term, and the AI translates it however it sees fit. This is the most common surprise, and<br \/>\nit matters most for terms you want to leave untranslated (see below).<\/p>\n<p>You can also move entries in bulk with <strong>Import CSV<\/strong> and <strong>Export CSV<\/strong>. They use the same format<br \/>\nas the WPML glossary.<\/p>\n<h2>How the glossary reaches the AI<\/h2>\n<p>The glossary isn&#8217;t applied to the text after translation. It goes into the prompt as an<br \/>\ninstruction. When a job is sent from English to German, the plugin collects every entry that has a<br \/>\nGerman translation and adds a block like this to the prompt:<\/p>\n<pre><code>Glossary (use these exact translations for the listed terms):\nAeropress: Aeropress\ncold brew: Kaltextraktion\npour-over: Handfilter<\/code><\/pre>\n<p>A few things follow from that:<\/p>\n<ul>\n<li><strong>The block goes in through the <code>{{glossary}}<\/code> variable<\/strong> in the translation prompt. The default<br \/>\nprompt already has it. If you edit the prompt and remove it, the glossary is no longer sent, and<br \/>\nnothing in the translations tells you so. The settings screen warns you when the variable is<br \/>\nmissing. <em>How the Translation Prompt Works<\/em> shows where the block sits in the prompt.<\/li>\n<li><strong>Only the current language pair is sent.<\/strong> An English \u2192 German job gets the German<br \/>\ntranslations, not the French ones.<\/li>\n<li><strong>Entries also work in reverse.<\/strong> An entry written in English with a German translation is used<br \/>\nfor German \u2192 English jobs too, with the pair flipped. If two languages are both linked to a term<br \/>\nin a third language, the plugin uses that term to connect them.<\/li>\n<li><strong>Every matching entry is sent with every job<\/strong>, whether or not the term appears in the text.<br \/>\nA glossary of a few dozen terms costs next to nothing. A glossary of thousands of terms adds<br \/>\ntokens to every request, and you pay for those tokens.<\/li>\n<li><strong>It is an instruction, not a guarantee.<\/strong> A capable model follows it very reliably, and higher<br \/>\n<strong>Reasoning effort<\/strong> helps. Still, nothing checks the result afterwards. If a term must never be<br \/>\nwrong, also check it before saving (<em>Checking Translations Before They Are Saved<\/em>).<\/li>\n<\/ul>\n<h2>Keeping a term untranslated (&#8220;do not translate&#8221;)<\/h2>\n<p>The glossary has no separate &#8220;do not translate&#8221; checkbox. To keep a term as it is, <strong>enter the<br \/>\nsame term as its translation in every language<\/strong>.<\/p>\n<p>Example: you want the brand name <em>Aeropress<\/em> to stay <em>Aeropress<\/em> in German, French and Polish.<\/p>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Term<\/td>\n<td><code>Aeropress<\/code><\/td>\n<\/tr>\n<tr>\n<td>Source Language<\/td>\n<td>English<\/td>\n<\/tr>\n<tr>\n<td>German<\/td>\n<td><code>Aeropress<\/code><\/td>\n<\/tr>\n<tr>\n<td>French<\/td>\n<td><code>Aeropress<\/code><\/td>\n<\/tr>\n<tr>\n<td>Polish<\/td>\n<td><code>Aeropress<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The AI then gets <code>Aeropress: Aeropress<\/code> in the prompt for every one of those languages, which<br \/>\ntells it to leave the term unchanged.<\/p>\n<p>Why fill in every language rather than leaving the fields empty: an empty field sends nothing (see<br \/>\n<em>Adding an entry<\/em>), so for that language the AI gets no instruction at all and may well translate<br \/>\nor adapt the name. When you add a new language to the site later, open your &#8220;do not translate&#8221;<br \/>\nentries and fill in the new language too.<\/p>\n<p>To set up many such terms at once, use <strong>Import CSV<\/strong> with one row per term and language, where<br \/>\n<code>translated_term<\/code> is the same as <code>original_term<\/code>:<\/p>\n<pre><code class=\"language-csv\">\"original_language_code\",\"target_language_code\",\"original_term\",\"translated_term\",\"description\"\n\"en\",\"de\",\"Aeropress\",\"Aeropress\",\"Brand name - never translate\"\n\"en\",\"fr\",\"Aeropress\",\"Aeropress\",\"Brand name - never translate\"\n\"en\",\"pl\",\"Aeropress\",\"Aeropress\",\"Brand name - never translate\"<\/code><\/pre>\n<p>For a whole <em>kind<\/em> of text rather than individual terms (for example &#8220;never translate product<br \/>\ncodes&#8221;), add a sentence to the translation prompt instead. The glossary works term by term.<\/p>\n<h2>When the glossary does not apply<\/h2>\n<ul>\n<li><strong>No active licence.<\/strong> Your entries stay saved, but they are no longer sent to the AI, and the<br \/>\nGlossary screen is locked until a licence key is active again.<\/li>\n<li><strong>LATW Cloud.<\/strong> A site connected to LATW Cloud translates with the glossary set in its LATW Cloud<br \/>\nsite settings. The local glossary can&#8217;t be edited while the site is connected and isn&#8217;t used.<br \/>\n<strong>Export CSV<\/strong> still works, and LATW Cloud can import that file.<\/li>\n<li><strong>DeepL<\/strong> doesn&#8217;t read prompts, but it does honour the glossary: the plugin uploads your entries<br \/>\nto DeepL as a native glossary, so &#8220;do not translate&#8221; entries work there too.<\/li>\n<li><strong>Google Translate<\/strong> ignores the glossary entirely.<\/li>\n<\/ul>\n<h2>Developer reference<\/h2>\n<ul>\n<li>Entries are stored in the <code>{prefix}latwaitrp_glossary<\/code> table: one row per term with<br \/>\n<code>target_language_code = 'undefined'<\/code> (the term and its description), plus one row per<br \/>\ntranslation.<\/li>\n<li>The text for <code>{{glossary}}<\/code> is built by the <code>latwaitr_prompt_glossary<\/code> filter<br \/>\n(<code>$text, $source_lang, $target_lang<\/code>). The add-on hooks it to return the block shown above, or<br \/>\nan empty string when the language pair has no entries.<\/li>\n<li>The exact prompt each job sent, glossary included, is stored in the queue row&#8217;s <code>request_data<\/code><br \/>\ncolumn. That is the quickest way to check whether a term was actually sent.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Available in LATW AI Translator for WPML PRO. What it does The glossary pins chosen terms to a fixed translation: brand names, product names, industry vocabulary,\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_latwm_translated_slug":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-283","post","type-post","status-publish","format-standard","hentry","category-latw-for-wpml"],"_links":{"self":[{"href":"https:\/\/docs.latw.ai\/pl\/wp-json\/wp\/v2\/posts\/283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.latw.ai\/pl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.latw.ai\/pl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.latw.ai\/pl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.latw.ai\/pl\/wp-json\/wp\/v2\/comments?post=283"}],"version-history":[{"count":0,"href":"https:\/\/docs.latw.ai\/pl\/wp-json\/wp\/v2\/posts\/283\/revisions"}],"wp:attachment":[{"href":"https:\/\/docs.latw.ai\/pl\/wp-json\/wp\/v2\/media?parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.latw.ai\/pl\/wp-json\/wp\/v2\/categories?post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.latw.ai\/pl\/wp-json\/wp\/v2\/tags?post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}