2022.2

Table Of Contents
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.
Pluralization
Ideally,intemplateswithvariabledata,thetextautomaticallyadjuststonumbersinthedata.Takefor
examplethefollowinglineinatemplate:
"Thisordercontains@num_products@product."
Intheoutput,thetext"@num_products@"willbereplacedwiththevalueofadatafield,anumberin
thiscase.(See"Variabledatainthetext"onpage708.)
Theword"product"shouldonlyremainthesamewhentheactualnumberofproductsis1:
"Thisordercontains1product".
Inallothercasesitshouldbechangedinto"products",e.g.:
"Thisordercontains10products".
ThistopicexplainshowtomakeOLConnectdynamicallyselectasingularorpluralword,dependingon
thevalueofadatafield.
Addingplurals
Enteringplurals,ortextwithplurals,isanaturalpartofthetranslationprocessofatemplate.Thispro-
cessstartsbycreatingtranslationentriesasdescribedinthefollowingtopic:"Translatingtemplates"on
page856.
Notethatitisn'trequiredtotranslatethetemplateeffectively.Youmayalsocreateatranslationfilefor
theoriginallanguageofatemplateanduseitjustforpluralizationbyenteringpluralsonly.
Toenablepluralizationonatranslationentry:
Page 860