Hi Osof,
OpenTBS does not turn language into French, or other language.
But is does delete all language definition when a sub-file is opened. This is because the spell checking can split TBS tags in several parts.
Generally, a DOCX has only one default language defined in the root style of the document, wich is stored in the sub-file "word/styles.xml".
But in fact you can define a different language for any custom style.
In addition to the language defined in styles, you can also define a custom language for any piece of text in the document.
What is probably happening to your document is that all custom language elements are deleted by OpenTBS in the main document, and then the default language (French I guess) steel remains in the default style because "word/styles.xml" is not modified.
In order to force the default language in the root style, here is the code (example to force language to English US):
$TBS->PlugIn(OPENTBS_EDIT_ENTITY, 'word/styles.xml', 'w:styles/w:docDefaults/w:rPrDefault/w:lang', 'w:val', 'en-US', true);
|