Manfred's TR1. Discussion Boards
https://www.tr1.de/cgi-bin/yabb2/YaBB.pl

TR1 Board Announcements And General Issues >> New board features and more >> Translation broken / Übersetzung geht nicht
https://www.tr1.de/cgi-bin/yabb2/YaBB.pl?num=1675535841

Message started by Manfred on 04.02.23 at 19:37:21

Title: Translation broken / Übersetzung geht nicht
Post by Manfred on 04.02.23 at 19:37:21

Just got the message (thanks Kevin) that the translation is broken. It seems that Google changed the scripts and therefore a JavaScript exception occurs. I'll have to investigate here...
--
Habe gerade die Nachricht bekommen (Danke Kevin), dass die Übersetzung nicht mehr funktioniert. Es scheint, dass Google die Skripte geändert hat und darum eine JavaScript-Ausnahme auftritt. Hier muss ich erst mal recherchieren...

Manfred


Title: Re: Translation broken / Übersetzung geht nicht
Post by Manfred on 05.02.23 at 12:42:03

First resarch results: Google has cancelled the free translation service. I need to switch to the payed version (https://cloud.google.com/translate) and hope that the amount of translated characters each month will be way below the free contingent. And it requries to change the coding. ChatGPT (https://chat.openai.com/chat) helps a lot with this...
--
Erste Rechercheergebnisse: Google hat den kostenlosen Übersetzungsdienst eingestellt. Ich muss auf die kostenpflichtige Version (https://cloud.google.com/translate) umsteigen und hoffe, dass die Anzahl der übersetzten Zeichen pro Monat weit unter dem kostenlosen Kontingent liegt. Und es erfordert die Programmierung zu ändern. ChatGPT (https://chat.openai.com/chat) hilft dabei sehr...


Title: Re: Translation broken / Übersetzung geht nicht
Post by nanno on 05.02.23 at 14:35:07

Und wenn du einfach einen Button mit Link zu Google-Translate setzt und dem die dynamische URL mitgibst?

Der Service sollte ja weiter uneingeschränkt gratis sein...

LG
Greg


Title: Re: Translation broken / Übersetzung geht nicht
Post by Manfred on 06.02.23 at 20:17:10

Schon geprüft. Das geht nur mit "vollständigen" Seite wie die "Legal" Seite. Das Forum läuft aber in einem HTML-Frame. Im muss mal prüfen welche Lösung am wenigsten aufwändig und am zukunftsträchtigsten ist... In einer Testversion läuft die Translation schon wieder. Schätze spätestens zum nächsten Wochenende geht es wieder.
--
Already checked. This only works with "complete" pages like the "Legal" page. However, the forum runs in an HTML frame. I'll have to check which solution is the least complex and the most promising... The translation is already running again in a test version. Guess it will be back by next weekend at the latest.

Manfred


Title: Re: Translation broken / Übersetzung geht nicht
Post by Manfred on 11.02.23 at 02:24:14

Now I implemented the standard Google translation. it should be available on any page. Click Select Language at the very top header line at the very right and select a language of your choice. To cancel translation again, click Options at the screen top-right and then Disable translation for this site. I tested it a while and I think it works. If you encounter problems which might be caused by this new feature, please send me a mail with a as much as possible detailled description of what you did and what happend which you did not expect. More languages can be added easily. Just send a mail.
Attention: Please clear your browser cache once, so that all new scripts and styles are loaded!
--
Jetzt habe ich die Standard-Google-Übersetzung implementiert. Sie sollte auf jeder Seite verfügbar sein. Klicke in der obersten Kopfzeile ganz rechts auf Sprache auswählen und wähle eine Sprache deiner Wahl aus. Um die Übersetzung wieder abzubrechen, klicke oben rechts auf dem Bildschirm auf Optionen und dann auf Übersetzung für diese Website deaktivieren. Ich habe es eine Weile getestet und ich denke, es funktioniert. Wenn du auf Probleme stößt, die durch diese neue Funktion verursacht sein könnten, sende Sie mir bitte eine E-Mail mit einer möglichst detaillierten Beschreibung dessen, was du getan hast und was passiert ist, was du nicht erwartet hast. Weitere Sprachen können einfach ergänzt werden. Einfach eine Mail senden.
Achtung: Bitte lösche einmal den Browser-Cache, damit alle neuen Skripte und Styles geladen werden!

Manfred


Title: Re: Translation broken / Übersetzung geht nicht
Post by kdemery on 13.02.23 at 12:42:01

Hello Manfred

I tested it and it works better than before.

Before I had to click on an item description, normally in German, to open the item then translate it. Now when I select the new language all the forum item headers are translated for me.

Thank you for the time and trouble you have taken to modify this.

Regards
Kevin


Title: Re: Translation broken / Übersetzung geht nicht
Post by Gredner on 16.02.23 at 12:05:14

Hallo Manfred,
Danke, gute Arbeit funktionert sehr gut.