2022.2

Table Of Contents
Locale
Thelocaleisasettingthatcanaffectdate,timeandcurrencyoutput,andotherformattingthatdepends
onlocationandlanguage.Thissettingisspecifictoeachtemplate,sochangingitforonetemplatewill
notaffectothertemplates.
AssumethatarecordsethasaDatefieldthatcontainsthefollowingdate:4/11/12,andthatthisfield
hasbeenaddedtothetemplateusingtheTextScriptWizardwiththeLongDateformat(see"Usingthe
TextScriptWizard"onpage314and"Formattingvariabledata"onpage317).Ifthelocaleissettoen-
US,thedateappearsonthepageasApril 1, 2016.Settingthelocaletofr-CAmakesthistextappear
as1 avril 2016.Settingittozh-CNwillprint2016 4 1.
Thelocalecanalsobeusedinscripts;see"Writingyourownscripts"onpage368and"StandardScript
API"onpage715.
Changingthelocale
Bydefault,thelocaleisthesameastheoperatingsystem'slocalesetting.Tochangethissettingforthe
currentlyopentemplate:
1. Onthemenu,selectEdit > Locale.
2. Usethedrop-downtoselecthowthelocaleistobesetforthecurrenttemplate:
l
SelectSystem Localetousetheoperatingsystem'slocalesettings.Theoperatingsys-
tem'slocaleissetintheRegionsettingsofthecontrolpanel.Notethatwhenoutputisgen-
eratedonadifferentoperatingsystem,thatoperatingsystem'slocalewillbeused.
l
SelectExplicit Localetospecifyastaticlocalewhichwillremainstaticforthistemplate,
whicheverserverthetemplateisusedon.UsetheLocale drop-downtoselectaspecific
locale.Thelocalescomprisealanguagecodefollowedbya2-lettercountrycode(de-DE,
zh-CN,fr-CA,fr-FR,etc),asdefinedbytheinternationalstandardsISO-639-1andISO
3166.
l
SelectData Fieldtouseadatafieldfromtherecord.Thelocalewillberecord-specificin
thiscase.Usethedrop-downtoselectafieldwithinthecurrentDataModelthatcontains
thelocale.
l
SelectParametertousethevalueofaruntimeparameter.Runtimeparametersare
definedinthetemplate,buttheirvalueissetatruntime;seeRuntimeparameters.
Note: TheDataFieldorRuntimeParametervaluemustbeastringthatcontainstheexact
localetobeused,suchas"en"or"fr-CA".Itcannotbeanaliassuchas"english"or
"french".Thelocalesupportslanguagecodes(en,fr,etc),aswellaslanguagecodesfol-
lowedbyahyphenanda2-lettercountrycode(de-DE,zh-CN,fr-CA,fr-FR,etc).The
Page 295