2022.2

Table Of Contents
Whenyouaddelements,suchastext,imagesoratable,tothecontentofatemplate,youareactually
constructinganHTMLfile.ItispossibletoeditthesourceoftheHTMLfiledirectlyintheDesigner;see
"EditingHTML"onpage568.
However,totaganelementfortranslation,youdon'thavetogointotheSourceview.
1. PlacethecursorinthetextthatshouldbetranslatedandselecttheHTMLelementinthebread-
crumbs(see"Selectinganelement"onpage570)orselecttheelementviatheOutlineview.Ele-
mentsthatcontaintextareparagraphs,headings,tablecells,buttons,labelsetc.
2. OpentheTranslationspane.Ifitisn'tvisible,select:Window > Show View > Translationsfrom
themenu.
3. ClicktheTag ElementbuttoninthetoolbaroftheTranslationspane.Thisaddsthedata-
translateattributetotheelement.(Attributesarevisibleonthe"Sourcetab"onpage989.)
Iftherewasnotranslationentrywiththesametextalready,thetextofthetaggedelementiscopiedtoa
newtranslationentryontheTranslationspane.
OnetranslationentryworksforallHTMLelementsthataretaggedfortranslationandhaveexactlythe
sametext.
Remember,onlytextinHTMLelementsthataretaggedfortranslationgettranslatedintheout-
put.
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986torestore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:"Mixingtextanddatainacellwithadirectlinktoadatafield"
onpage751.
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.
Page 858