How to translate the toolbar into multiple languages?

classic Classic list List threaded Threaded
3 messages Options
Patrick d'Emmabuntüs Patrick d'Emmabuntüs
Reply | Threaded
Open this post in threaded view
|

How to translate the toolbar into multiple languages?

Hello dear members of LibreOffice support,

I want to translate an application based on Macros developed in French to include default English for our GNU/Linux distribution.

I've already found how to translate dialog boxes into multiple languages, and have default English: https://help.libreoffice.org/Basic/Translation_of_Controls_in_the_Dialog_Editor

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.

My files for defining the toolbar are called custom_toolbar_XXXX.xml, and are in this format:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE toolbar:toolbar PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "toolbar.dtd">
<toolbar:toolbar xmlns:toolbar="http://openoffice.org/2001/toolbar" xmlns:xlink="http://www.w3.org/1999/xlink" toolbar:uiname="Niveau1 medias">
 <toolbar:toolbaritem xlink:href="vnd.sun.star.script:Standard.Module6.gerer_cadre_image1?language=Basic&amp;location=application" toolbar:text="Ajouter ou modifier une image"/>
 <toolbar:toolbaritem xlink:href="vnd.sun.star.script:Standard.Module6.aggrandir_cadre_images?language=Basic&amp;location=application" toolbar:text="Agrandir l&apos;image"/>
 <toolbar:toolbarseparator/>
 <toolbar:toolbaritem xlink:href="vnd.sun.star.script:Standard.Module6.gerer_fond_ecran?language=Basic&amp;location=application" toolbar:text="Ajouter ou modifier une image de fond "/>
</toolbar:toolbar>

Is it possible to put a language attribute in these files to specify on which language the translation carries?

If not, where can we find the syntax of the toolbar.dtd format?

Thanks in advance for your help.

Best regards,

Patrick


_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Dennis Roczek Dennis Roczek
Reply | Threaded
Open this post in threaded view
|

Re: How to translate the toolbar into multiple languages?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Hi Patrick,

On 10.06.2019 01:02, Patrick d'Emmabuntüs wrote:
> Hello dear members of LibreOffice support,
>
> I want to translate an application based on Macros developed in French
> to include default English for our GNU/Linux distribution.
>
> I've already found how to translate dialog boxes into multiple
> languages, and have default English:
> https://help.libreoffice.org/Basic/Translation_of_Controls_in_the_Dialog_Editor
The up-to-date link is at
https://help.libreoffice.org/6.2/en-US/text/sbasic/guide/translation.html?DbPAR=BASIC#bm_id8915372

</snip>
> |<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE toolbar:toolbar PUBLIC
> "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "toolbar.dtd">
> <toolbar:toolbar xmlns:toolbar="http://openoffice.org/2001/toolbar"
> xmlns:xlink="http://www.w3.org/1999/xlink" toolbar:uiname="Niveau1
> medias">

> If not, where can we find the syntax of the toolbar.dtd format?
The dtd-url is basically only a place holder (since ever).

Please check this url:
https://wiki.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/AddOns/Toolbars

Hopefully it helps.

Sorry, for the rest I cannot help you more.

> Thanks in advance for your help.
>
> Best regards,
>
> Patrick

Best regards,

Dennis Roczek
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEhYmMfFabYko4V91Tzj5B/c4qttkFAl0BFJAACgkQzj5B/c4q
ttl7FQ/+OUSK1xpbMT3EIZFfeuYlmHsgrrPB6S2XPfkhWvHuHr3ZOxynPZFKAIkk
2/TXJmMzp5Sq8AIkTvWRW/XPlzXRQPWAgP252WS/1dqyeIBOnJi2Oi5JbOjz29OM
hOaoaoIFYpw0R2s/D5M3EvkAgwXBn8+/NF0f7mwIrpseO6Tcv1fW3i1uml3mKrbl
LEN2Lg8O8sQdR+h8MgC1Agxpsh/4ibB8i1LCVZIbf9eOBPcYyO+QudTWsERZuhbn
JysAXitxiYOBVR5MJFH9/KrKwkdOsn97u6E45THE9jiV/FqAQ6rw7OkU+sBj7jwW
7pdzzsOt1qxOENFX85ktF5jiWPirWkHwrUkIgUfNvZmFX7xW9My5YVOGQCp320BF
UM3k15buTj7auD8x8NCbPco2FTNRHrairAzn5kUDMaylZXA6s9QSGGbLw3yD806a
D4yoctbtLAXq8HMqH6ED/xuMpLP/ynMe4oQM7FtCHBDjy+2Km9bRw01tHuNxxPBg
vBbTa6DJRwWoNUG8rAQ/mchtSQmr4PE28+8gGwmde21GAC6PRl251RVmvTfVJfw/
QyjY8pA/7veTsIov3lSpWX429x2kzK92za1LWgLaqZlYw/7+4axQECL6OZVjGgdz
AelcJpf7bOQL76oSRrLRW/9YIdvEe3HtnTizQym929I98ctqafo=
=Xitu
-----END PGP SIGNATURE-----
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Dennis Roczek Dennis Roczek
Reply | Threaded
Open this post in threaded view
|

Re: How to translate the toolbar into multiple languages?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi Patrick,

please keep the discussion on the mailing list and not privately.

> Hi Dennis,
>
> Thanks for your help.
>
> I do not see how to make the link with the files on this page
> https://wiki.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/AddOns/Toolbars
>
>
and the files custom_toolbar_XXXX.xml of toolbar.
>
> Very best regards,
>
> Patrick

</snip>
I can only repeat myself:
> Hopefully it helps.
>
> Sorry, for the rest I cannot help you more.

Dennis
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEhYmMfFabYko4V91Tzj5B/c4qttkFAl0Dnv8ACgkQzj5B/c4q
ttmSoBAAjWzx+OGVHpABH1OBOh/qeEKdF/ayhIy8KtzMf3iMvqr5CG0ksanNye0e
PlXhjVx+ZkdpBFF95QYohIXRDxT+EWECbzRdg2K/jo2pic84ifbhrswnMm8PQOME
18S1rXwrsJUuVaP46RufphvBpImrMRRe1+qJlDSB0DhxP1QJ4J1VHzzWgMAwo3px
MNl2k8DWvJvEp6M6VcAw1u++04EEkqUGobbQ1lneJIhwnqMxkzVVHxrY9ImGAsC1
G1Ds/mCASoMZCmlPbH8Vj2h+KpoobEbUDpAfyGeiEDHmcbB1iOr1ByUvMzCl7maB
F4FfotbSEYhArtWS/6KAeS4PHvpPTBMj8CXF88ADZgdOoIHGP1itOQF1dS6Oh2BD
QAgMCYNaI1ODXQy7FStnKF0RG7IBx6S3o7F18vr3CZ+QHY7o+Dx6UBniiNwndziR
iPGpeQCbopYxUerSFfT7aveJfCZvSos6SgPkVO1wNdHrAT7Jo26aT4ruOmI+XQta
HBYnIwABjlPbF5Tho+MbCszYsiEfp5Csbz74x2GpFEJ9I9sfoGrIuy8NtbwRUre7
VtnO8PL+5JkOnHko5UAs+FOhtyiaDGDQso6xP4GU5irS33bDdkbukxEDtWi1q+OK
8uBs4ARruAWRNQs3j3JcHryWZGNq2QDLyjdWl3eRdzgoXxbqs7g=
=uT6F
-----END PGP SIGNATURE-----
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice