<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello dear members of LibreOffice support,</p>
<p>I want to translate an application based on Macros developed in
French to include default English for our GNU/Linux distribution.</p>
<p>I've already found how to translate dialog boxes into multiple
languages, and have default English:
<a class="moz-txt-link-freetext" href="https://help.libreoffice.org/Basic/Translation_of_Controls_in_the_Dialog_Editor">https://help.libreoffice.org/Basic/Translation_of_Controls_in_the_Dialog_Editor</a></p>
<p>I can not find on the Internet how to have the translation of the
text of the icons of a toolbar in English by default, and also in
French according to the language selected by the user.</p>
<p>My files for defining the toolbar are called
custom_toolbar_XXXX.xml, and are in this format:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE toolbar:toolbar PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "toolbar.dtd">
<toolbar:toolbar xmlns:toolbar=<a class="moz-txt-link-rfc2396E" href="http://openoffice.org/2001/toolbar">"http://openoffice.org/2001/toolbar"</a> xmlns:xlink=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xlink">"http://www.w3.org/1999/xlink"</a> toolbar:uiname="Niveau1 medias">
<toolbar:toolbaritem xlink:href="vnd.sun.star.script:Standard.Module6.gerer_cadre_image1?language=Basic&location=application" toolbar:text="Ajouter ou modifier une image"/>
<toolbar:toolbaritem xlink:href="vnd.sun.star.script:Standard.Module6.aggrandir_cadre_images?language=Basic&location=application" toolbar:text="Agrandir l'image"/>
<toolbar:toolbarseparator/>
<toolbar:toolbaritem xlink:href="vnd.sun.star.script:Standard.Module6.gerer_fond_ecran?language=Basic&location=application" toolbar:text="Ajouter ou modifier une image de fond "/>
</toolbar:toolbar>
</code></pre>
<p>Is it possible to put a language attribute in these files to
specify on which language the translation carries?</p>
<p>If not, where can we find the syntax of the toolbar.dtd format?</p>
<p>Thanks in advance for your help.</p>
<p>Best regards,</p>
<p>Patrick<br>
</p>
</body>
</html>