2022.2

Table Of Contents
1. OntheTranslationspane,clickontheNew Empty Stringbuttontocreatethetranslationentry.
2. Makesurethatanyelementinwhichthetextisinserted,aretaggedfortranslation.Therearesev-
eralwaystodothat:
l
LetthescriptinsertthetaggedHTMLelementaswellasthetext,forexample:
results.html( "<p data-translate>Bill to @CustNumber@</p>" );.
l
Ifthescriptinsertstextintoanexisting,emptyHTMLelement,switchtotheSourceview
andaddthedata-translateattributetotheelement(e.g.<pid="p1"data-translate>).
Dataplaceholdersintranslationentries
Atranslationentryinasnippetmayincludeplaceholdersfordatafields,e.g."Dear@name@".(For
moreinformationaboutplaceholderssee"Variabledataintext:scriptsandplaceholders"on
page311.)
Placeholdersmustnotbetranslated;otherwisethepersonalizationscriptwillnolongerreplacethem
withdata
Typically,translatorsarefamiliarwithentriesthatcontainvariables,butyoumayaddacomment
explainingthattheplaceholderisusedasavariableandthatitshouldnotbetranslated.
Toaddacomment,simplydouble-clicktheentryintheTranslationspaneandenteryourcommentin
theCommentsfield.CommentswillbeaddedtothePOTfileandarevisibletotranslatorsintheirtrans-
lationtools.
HTMLtagsintranslationentries
AtranslationentrymaycontainHTMLtags,forexamplewhenpartofthetextisstyledorwhenthereis
ahyperlinkinthetext.HTMLtagsmustnotbetranslatedorremoved.Normally,translatorswillrecog-
nizeasimpleboldoritalictag(<b>...</b>or<i>...</i>respectively),butmorecomplexelementslike
hyperlinkscouldcauseproblems.Thetranslatormayaccidentallymodifythetag,andbreakthehyper-
linkforexample.
OnewaytoavoidthisistosplitthetextaroundandinsideHTMLtagsintoseparatechunks,nomatter
howshort.SelecttherespectivetextinthetemplateandselectWrap in Spanfromthecontextual
menu.Subsequentlytagthenew<span>elementfortranslation.
AlternativelyyoucouldalsoaddacommentexplainingthattheHTMLtagshouldnotbechanged.
Toaddacomment,simplydouble-clicktheentryintheTranslationspaneandenteryourcommentin
theCommentsfield.CommentswillbeaddedtothePOTfileandarevisibletotranslatorsintheirtrans-
lationtools.
Page 419