Arbortext Command Language > Functions by Alphabetical Listing > stylesheet_gentext_lang_stats
  
stylesheet_gentext_lang_stats
stylesheet_gentext_lang_stats(lang, stats[, doc])
This function provides information about the translation for the specified lang imported from an XLIFF file into a stylesheet to provide translations of generated text. stats populates an array that provides information on the results of the requested translation from the XLIFF file. doc is optional - specify a stylesheet document or a user document with which the stylesheet is associated.
Values for the parameters are listed below:
Parameter values
Parameter
Permitted Values
lang
The language code of the language for which to obtain statistics
stats
The following values are assigned to the array:
stats[‘current’]
The number of translation units that are current
stats[‘effectivecurrent’]
The number of translations units in effective definitions that are current
stats[‘notcurrent’]
The number of translation units with a translation that is not current (the source has changed after the translation was added)
stats[‘effectivenotcurrent’]
The number of translation units in effective definitions with a translation that is not current
stats[‘untranslated’]
The number of translation units without a translation
stats[‘effectiveuntranslated’]
The number of translation units in effective definitions without a translation
stats[‘total’]
The total number of translation units in the stylesheet
doc
(Optional)
Path to the stylesheet or user document. If not specified, the function will refer to the current document.
When successful, the function will return 1, otherwise it will return 0. The function can be unsuccessful if:
Stylesheet is not found
lang does not match a target generated text language on the XLIFF file
If the function is unsuccessful, all stats will be zero.
Refer to Using ACL to Import XLIFF Files in Arbortext Styler help for some sample ACL code demonstrating the use of this function.
Related Topics
stylesheet_import_xlf