A text file for foreign words contains all defined foreign words and lists them in a table. You can use foreign words to mark foreign words with the corresponding language for continuous text elements.
You can edit the foreign words within the 'Draft' tab. An edit mask is supplied as standard with the example project, which can also be customized.
The editing and definition of foreign words is explained below using the"Foreign words to be marked automatically" screen of the BASE project as an example.
You can use the WSL function addForeignWords to automatically add the specified language to the terms in the text file (foreign word) for a text field. This is implemented, for example, in the BASE project in the XSL structure element text.wysiwyg.wItem.php.