GenTxt (Language label : Language : variable1: variable2: variable3: variable4: variable5: variable6: variable7: variable8: variable9)
Language label = language label (30A)
Language = Language code (optional)
Variable1-9 replace string(s) (optional)
Return type:
Translated text string
Description:
GenTxt is used to generate tests strings for browsers, print etc that have to be compatible with many languages (or one)
First parm is a language label that later will be translated into real text.
Second is the language code the text should be returned as
Variable1-9 are pieces of text that will be inserted into the translated text at the points where a % is defined. It looks like this
Language label ‘cust_list001’ is translated to ‘Customer list from %1 to %2’
When used like this
(from=’Annabelle’ and to=Bertha)
print_header=gentxt(‘cust_list001:fs_langcd:from:to)
This will be displayed on the screen:
“Customer list from Anabelle to Bertha”
As the language code the iSeries2web supplied fs_langcd (see appendix B) is used. This will give a translation into the language the user selected at sign on
(You can change fs_langcd if you want, it will be restored at next roundtrip)