Allows translating mChat messages.
kasimi
mChat developer
Posts: 1173 Joined: 06 Oct 2016, 09:56
Location: Germany
Post
by kasimi » 14 May 2020, 12:06
mChat Google Translate
This extension adds a button next to each mChat message that allows to translate it to English using Google Translate.
There is no configuration. Once enabled, the
Translate button will appear for
all users .
Requirements
PHP at least 5.4.7
phpBB at least 3.2.0
mChat at least 2.0.1
Download
https://github.com/kasimi/phpbb-ext-mch ... slate/tags
How to install, update and uninstall extensions:
https://www.phpbb.com/extensions/installing/
Install path:
ext/kasimi/mchatgoogletranslate/
kasimi
mChat developer
Posts: 1173 Joined: 06 Oct 2016, 09:56
Location: Germany
Post
by kasimi » 18 May 2020, 10:14
Version 1.0.1 is available. It adds support for various other mChat add-on extensions such as
Infinite Scroll .
kasimi
mChat developer
Posts: 1173 Joined: 06 Oct 2016, 09:56
Location: Germany
Post
by kasimi » 18 May 2020, 13:27
Quick update to version 1.0.2 which fixes compatibility with earlier mChat versions.
kasimi
mChat developer
Posts: 1173 Joined: 06 Oct 2016, 09:56
Location: Germany
Post
by kasimi » 18 May 2020, 13:46
Another update to version 1.0.3 . It removes an unnecessary delay when adding the [Translate] link, and more importantly it translates the messages to the individual user's board language, as configured in the UCP.
kasimi
mChat developer
Posts: 1173 Joined: 06 Oct 2016, 09:56
Location: Germany
Post
by kasimi » 18 May 2020, 19:46
Version 1.0.4 correctly translates edited messages.
dimassamid
Posts: 18 Joined: 11 Jan 2019, 04:19
Post
by dimassamid » 19 May 2020, 21:10
Thank you for this small, but very useful extension!
miri4ever
Posts: 57 Joined: 16 Aug 2020, 00:33
Location: Germany
Post
by miri4ever » 04 Oct 2020, 19:50
On Firefox it works well, but on Chrome I got a white page if I press translate button.
kasimi
mChat developer
Posts: 1173 Joined: 06 Oct 2016, 09:56
Location: Germany
Post
by kasimi » 06 Oct 2020, 20:18
What style are you using? Did you try prosilver? Can you check the browser console for errors?
dimassamid
Posts: 18 Joined: 11 Jan 2019, 04:19
Post
by dimassamid » 10 Oct 2020, 14:23
miri4ever wrote: ↑ 04 Oct 2020, 19:50
On Firefox it works well, but on Chrome I got a white page if I press translate button.
The same problem
Here is a demo:
http://dimassp1.beget.tech/mchat
But it worked before, I don't understand what happened
The new Chrome version? Or the Google blocked the translation function in Chromium browsers?
The Translate link contains
href="about:invalid#zClosurez" , as a result of which a new empty window opens.
Chrome 86.0.4240.75 -
not working
Edge 86.0.622.38 -
not working
Vivaldi 3.3.2022.45 -
not working
SeaMonkey 2.49.5 -
working
Firefox 81.0.1 -
working
dimassamid
Posts: 18 Joined: 11 Jan 2019, 04:19
Post
by dimassamid » 11 Oct 2020, 19:52
I have found the trick
https://stackoverflow.com/questions/641 ... -in-chrome
OPEN:
ext/kasimi/mchatgoogletranslate/styles/prosilver/template/event/overall_footer_body_after.html
FIND:
ADD BEFORE:
Code: Select all
<!-- Translate button fix -->
<script>
$(document).ready(function(){
setInterval( function() {
$(".goog-te-gadget-link").click(function(){
$(this).attr('href', 'javascript:;');
});
}, 1000);
});
</script>
<!-- Translate button fix -->
This works, but I hope
Kasimi offers a better solution
Users browsing this forum: CCBot [Bot] and 0 guests