It is very easy and convenient to add a Help Tip, saved in an external XLIFF file, to an object in 4D. This is an example of contents of an XLIFF file:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xliff PUBLIC "-//XLIFF//DTD XLIFF//EN" "https://www.oasis-open.org/committees/xliff/documents/xliff.dtd"> <xliff version="1.0"> <file datatype="x-STR#" original="undefined" source-language="en-US" target-language="en-US" product-version="v11"> <header> <note>The character "%" (out of numerical context) is a meta character that will be replaced (often by a numberical value) before the string is displayed</note> <note>Text between less than (<) and greater than (>) symbols is a variables name and must not be localised</note> <note>\r, \t and \n are meta-characters.</note> <note>Never remove an error entry to know what error codes have been used in past releases.</note> </header> <body> <group id="20000" resname="Help_Tip"> <trans-unit id="1"> <source>Text Ares</source> <target>This is a Help Tip</target> </trans-unit> </group> </body> </file> </xliff> |
The Help_Tip group has id equal to 20000 and the "trans-unit" has id equal to 1. You can specify different trans-unit id's for different Help Tips. This XML structure is saved in a file with the extension "xlf". The file is saved in the Language.lproj folder located inside the Resources folder. In the object Property List, Help theme, pass a reference to the Help Tip as shown here: