My application can be used in different languages. For the translation I have a table with the fields ID, English, German, French, Chinese. How to I get the button to display the text of example - ID 5, German? The language would be defined in the settings.
I try to avoid translating all the forms and make different language versions. It would be much faster just to translate a table into the new language.
Michael
🍀 Das LibreOffice Forum braucht HEUTE Ihre Hilfe! 🍀
❤️ Spenden Sie jetzt und sichern Sie die Zukunft unseres LibreOffice-Forums ❤️
Ihre Spende hilft, die Community offen, werbefrei (bei Registrierung) und lebendig zu halten. Vielen lieben Dank!
>> Das LibreOffice-Forum lebt von Ihnen – und von vielen Experten, die freiwillig und kostenlos ihr Wissen teilen.<<
Als Dankeschön werden Sie im Forum als LO-SUPPORTER gekennzeichnet.
Translations of Buttons and Fieldnames
Re: Translations of Buttons and Fieldnames
Hi Michael,
you could, by macro, set the Title for each control when starting the form. I would add the ID for the transaltion in the Tag (additional information in German translation). So when loading the form you could start the query for the label-fields, which should be translated. And you could set the values for every label, which is part of the rows you will get.
Haven't tested it yet.
------ Update: See the atttachment. You could change the language of the labels in the form from Englisch to German. ------
Robert
you could, by macro, set the Title for each control when starting the form. I would add the ID for the transaltion in the Tag (additional information in German translation). So when loading the form you could start the query for the label-fields, which should be translated. And you could set the values for every label, which is part of the rows you will get.
Haven't tested it yet.
------ Update: See the atttachment. You could change the language of the labels in the form from Englisch to German. ------
Robert
- Dateianhänge
-
- Translated_Labels.zip
- Formular mit in Abhängigkeit von der Sprachwahl umstellbaren Beschriftungen
- (11.49 KiB) 183-mal heruntergeladen
https://de.libreoffice.org/get-help/documentation/
https://www.familiegrosskopf.de/robert/index.php?&Inhalt=base_handbuch
https://www.familiegrosskopf.de/robert/index.php?&Inhalt=xml_formulare
https://www.familiegrosskopf.de/robert/index.php?&Inhalt=base_handbuch
https://www.familiegrosskopf.de/robert/index.php?&Inhalt=xml_formulare
Re: Translations of Buttons and Fieldnames
Thank you for the comment. I will try your approach with makros, it makes sense. At the moment I am working on the translation table. Have to play with makros as my experience here is rudimentary.
Michael
Michael
An alle, die das LibreOffice-Forum gern nutzen:
Bitte beteiligen Sie sich mit 7 Euro pro Monat und helfen uns bei unserem Budget für das laufende.
Einfach per Kreditkarte oder PayPal. Als Dankeschön werden Sie im Forum als LO-SUPPORTER gekennzeichnet.
❤️ Vielen lieben Dank für Ihre Unterstützung ❤️