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
❤️ Helfen Sie noch heute, unser LibreOffice Forum zu erhalten! ❤️
Unterstützen Sie das LibreOffice-Forum und helfen Sie uns, unser Ziel für 2025 zu erreichen!
🍀 Jeder Beitrag zählt – vielen Dank für Ihre Unterstützung!🍀
Mit Ihrer Spende sichern Sie den Fortbestand, den Ausbau und die laufenden Kosten dieses Forums. 🌱
>> Dank Ihrer Unterstützung -> Keine Werbung für alle registrierten LibreOffice-Forum User! <<
🤗 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) 170-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 und unterstützen wollen:
Bitte helfen Sie uns mit 7 Euro pro Monat.
Durch Ihren Beitrag tragen Sie dazu bei, unsere laufenden Kosten für die kommenden Monate zu decken.
Unkompliziert per Kreditkarte oder PayPal.
Als ein kleines Dankeschön werden Sie im LO-Forum als SUPPORTER gekennzeichnet.