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

🙏 DANKE >> << DANKE 🙏

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

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: 2957
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) 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

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:
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 ❤️

Antworten