❤️ 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. 🌱


❤️ DANKE >> << DANKE ❤️

>> 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

Base ermöglicht es Ihnen, Ihre Daten in einer Datenbank direkt mit LibreOffice zu bearbeiten.
Antworten
Libremiki
Beiträge: 49
Registriert: Fr 14. Apr 2017, 11:03

Translations of Buttons and Fieldnames

Beitrag von Libremiki » Sa 14. Jul 2018, 14:08

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

RobertG
* LO-Experte *
Beiträge: 2888
Registriert: Sa 19. Mai 2012, 17:37
Kontaktdaten:

Re: Translations of Buttons and Fieldnames

Beitrag von RobertG » So 15. Jul 2018, 08:59

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
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

Libremiki
Beiträge: 49
Registriert: Fr 14. Apr 2017, 11:03

Re: Translations of Buttons and Fieldnames

Beitrag von Libremiki » Mo 23. Jul 2018, 04:53

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


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.



Antworten