Documentation Center

PslTransLists.Item

Item returns a translation list contained in the PslTransLists collection. The translation list can be indicated by its index (1,...), its source string list name or a language code. Item is the standard function, so the name can be omitted.

Syntax

Expression.Item (Index as PslTransList, LangID as VARIANT) as PslTransList

Expression Required. Object of type PslTransLists

Index Variant, Required. Either the index (1,...) of the translation list or the index of the source string list. If the source string list is indicated the second parameter LangID must also be indicated. A source string list can be identified by an index or its title.

LangID Variant, optional. If index specifies a source string list, LangID specifies the language. The language can be indicated by a language id (pslLangEnglishUSA, pslLangGerman,...), a language code ("enu", "deu",...) or an object of type PslLanguage.

Example

' Loop over all german translation lists
Dim prj As PslProject
Set prj = PSL.Projects(1)

Dim trn As PslTransList

For Each src In prj.SourceLists
  Set trn = trns(src, "deu")
  ...
Next src