Skip to Content
FASTSUITE E2API ReferencePython APIPython GuidePDF ReportsSettingsSettings in the language filesSettings in the language files

Settings in the language files

Preliminary note

For translating the report items there are translation files for each provided language (English, French, Chinese, Japanese, German). By default the language files are located in the installation path …\Lib\site-packages\cenpylib\languages.

PDF Language Deflt Location

In case of customization, the complete languages folder can be copied to a desired path, which is given with the create command. Otherwise the report takes the default files.

PDF Language Cust Location

Customer related settings and translation can be done there. Only the desired language file needs to be edited.

Following listed settings are supported to adjust the report. If the item doesn’t exist, the defaults form the script will be taken

Report name

defaultreportname

This item is the default PDF file name, where two hashes ## (if given) will be replaced by the current program name.

PDF Language File Set Report Name

Font

setfontname

This item sets the desired font type.

Please note: for Chinese and Japanese language only one set of characters exists. This setting is obsolete in this case.

PDF Language File Set Font Type
setfontsize

This item sets the desired font size.

The font size will be taken into account for Chinese and Japanese as well.

PDF Language File Set Font Size

Command name

commandname

This item sets the desired command name in the Run auxiliary commands if the method GetCommandName is prepared accordingly (see below).

PDF Language File Command Name

Example:

def GetCommandName(): nls = NLSUtility() nls.defineNLS(project="report") cmdname = nls.getNLS("commandname", "Report") return cmdname

 

NLS is set to the report language files. It tries to get the item commandname. When the item does´t exist, apply the string “Report” as result.

Operation

operationheader

Add a table row header before output an operation.

0 = none, but divider

1 = only OpName [default]

2 = Group&OpName  

3 = absolute none

PDF Language File Operation Header
operationsummary

This item sets a summary row after each operation. Default is no summary (=0).

PDF Language File Operation Summary

Logo image

nologouse

This item sets if header and footer images shall be used.

The default is True, which means that no pictures will be used.

PDF Language File No Logo Use

Table

headerrowcolorrgb

This item sets the desired background colour of the table header row.

The item values are the RGB portions (0..255) separated by a point; i.e. xxx.yyy.zzz.

The default value is grey, RGB 176.176.176

PDF Language File Header Row Colour
Column width

For each column its width can be specified by setting the value in the *.lng file.

Naming convention is: [columnName]colwidth

PDF Language File Set Column Width
Was this page helpful?