Consultor Eletrônico



Kbase 15879: How a multiple occurance of a string is handled by tranMan2
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
How a multiple occurance of a string is handled by tranMan2

Translation Manager 2 handles string translations on a instance
basis. An "instance" is defined by three things: 1.) The
procedure name that the string appears in, 2.) The string itself
and 3.) The string attribute.

For example, if the procedure FOO_ONE.P has the string
"Hello World!" in it with no attributes this is one instance. If
"Hello World!":R15 (the same string with an attribute of Right
justify with 15 spaces reserved) also appears in the procedure
FOO.P, this is another instance. If "Hello World!" (the same
string with no attributes) appears in the procedure FOO_TWO.P this
is yet one more instance. All three of these instances require a
separate translation.

However, if "Hello World!" appears a second time in the procedure
FOO_TWO.P this is not another instance (since the procedure,
string and string attribute are all the same). If the string
"Hello World!" appears in INCLD_ME.I and INCLD_ME.I is included in
either FOO_ONE.P or FOO_TWO.P this is not another instance of the
string. Since include files are treated as if their code actually
exists in the main procedure the strings are treated this way also.

Progress Software Technical Support Note # 15879