2022.2

Table Of Contents
Changingthetextinataggedelementwillbreaktherelationshipwiththetranslationentry.This
meansthatthetextwillnotbetranslated.EdittheentryintheTranslationspaneorusetheSync
buttononthe"Translationspane"onpage530torestoretheconnection.
Notethatplaceholders(e.g.@Name@)andexpressions(e.g.{{Name}})inthetemplatewillget
replacedwithdatabeforetranslationtakesplace.Ifatranslationentrycontainsaplaceholderor
expression,thetextwillthennolongermatchthetranslationentry.
Alsonotethat,bydefault,alltextinaDynamicTablecellisreplacedwithdata.Topreventthis,
usethetechniquedescribedhere:Mixingtextanddatainonecell.
Same text, different translation: add a context
Shouldthesametextbetranslated differentlyindifferentlocations?Thenyouneedtoadda'context'
tothetranslationentry:
1. Double-clickthetranslationentry,orselectanelementandpresstheCtrlkeywhenyouclick
theTag Elementbutton.
Tip: PressingtheCtrlkeywhenyouclicktheTag ElementbuttonopenstheTranslation
StringOptionsdialog.
2. IntheContextfield,describewherethesourcetextisused,forexample:"Thistextisinthehead
ofatable",or"Table|Head"
Thedescriptionisaddedtothe<data-translate>attributeoftheHTMLelementinwhichthesourcetext
islocated,asitsvalue,forexample:<data-translate="Table">.
Notethatatranslationwillonlybeappliedifthevalueofthe<data-translate>attributeoftherespective
HTMLelementisexactlythesameasthegivenContext(case-sensitive).
Tagging text in snippets
Ifthetextthatyouwanttotagfortranslationislocatedinasnippet,donottagitinthesectionwherethe
snippetisused.Instead,openthesnippet(see"Snippets"onpage250)andtagtheelementsinside
thesnippetasdescribedabove.
Tagging text that is inserted by a script
OLConnectwillalsoapplytranslationstocontentthatisinsertedbypersonalizationscripts,butonlyif
thatcontentismarkedfortranslation,andifthereisamatchingtranslationentry.
Page 418