addCompileTranslatableString

addCompileTranslatableString(source:      String;
                             errorCode:   Integer output;
                             errorOffset: Integer output;
                             errorLength: Integer output): Boolean;

The addCompileTranslatableString method of the Schema class compiles and adds a translatable string to all base locales of the receiving schema. If the compilation fails, the method returns true, the translatable string is not added, the current transaction is aborted, and the errorCode parameter contains the error number.

The addCompileTranslatableString method parameters are listed in the following table.

Parameter Description
source The text to be displayed for the translatable string.
errorCode The error code returned by the compiler. A value of zero (0) indicates that the translatable string compiled successfully.
errorOffset The position of the error in the translatable string. Note that the first character of the translatable string has a position of zero (0).
errorLength The length in characters of the error in the translatable string.