Hello world,
I've implemented a Calc extension that includes some dialogs and I'd like to
have those translated to multiple languages. The dialogs are implemented in
this funny .xdl Basic format, the handlers in Java.
However, as you might've already expected ;) l10n didn't quite work out so
far. No matter what I do, I can't get localized strings displayed. Instead of
English or German strings, I see only the references e.g.
"&3.Dialog1.CommandButton1.Label"
It has certainly something to do with the fact that I've created l10n files
manually, since GUI for that is currently completely defunct due to [1] so if
anyone can spot an obvious mistake, something missing etc. in my data below
and/or give me some useful advice, I'd be grateful
My folder structure:
dialogs/
+- Dialog1.xdl
+- Dialog2.xdl
+- DialogStrings_de_DE.properties
+- DialogStrings_en_US.default
+- DialogStrings_en_US.properties
+- dialog.xlb
Dialog1.xdl:
<dlg:button dlg:id="CommandButton1" dlg:tab-index="0" dlg:left="98"
dlg:top="261" dlg:width="32" dlg:height="10"
dlg:value="&3.Dialog1.CommandButton1.Label">
DialogStrings_en_US.properties:
3.Dialog1.CommandButton1.Label=Close
DialogStrings_de_DE.properties:
3. Dialog1.CommandButton1.Label=Schließen
dialog.xlb:
<library:library xmlns:library="http://openoffice.org/2000/library"
library:name="dialogs" library:readonly="false"
library:passwordprotected="false">
<library:element library:name="Dialog1"/>
<library:element library:name="Dialog2"/>
</library:library>
[1] https://bugs.documentfoundation.org/show_bug.cgi?id=93592
--
Katarina Behrens
Softwareentwicklerin LibreOffice
–––
CIB software GmbH
Geschäftsstelle Hamburg
Flachsland 10
22083 Hamburg
–––
T +49 (40) / 28 48 42 -235
F +49 (40) / 28 48 42 -100
Katarina.Behrens@cib.de
www.cib.de
–––
Sitz: München
Registergericht München, HRB 123286
Geschäftsführer: Dipl.-Ing. Ulrich Brandner
Context
- Implementing l10n in an extension · Katarina Behrens
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.