Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=2794)
The modification can be used to translate messages in all languages
Nice mod! :D
Translation by MOD Translator SirtLanVadisi in turkish and turkish-utf8 languages
<file name="$themedir/languages/Modifications.turkish.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Quick Translation MOD by SirtLanVadisi.NeT
$txt['quick_trans_not_found'] = 'Üzgünüm, çeviri bulunamamıştır...';
$txt['quick_trans_want_translate'] = 'Bir mesaj çevirmek istiyormusunuz ?';
$txt['quick_trans_select_lang'] = 'Dil seçiniz ';
// End Quick Translation MOD by SirtLanVadisi.NeT
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.turkish-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Quick Translation MOD by SirtLanVadisi.NeT
$txt['quick_trans_not_found'] = 'Üzgünüm, çeviri bulunamamıştır...';
$txt['quick_trans_want_translate'] = 'Bir mesaj çevirmek istiyormusunuz ?';
$txt['quick_trans_select_lang'] = 'Dil seçiniz ';
// End Quick Translation MOD by SirtLanVadisi.NeT
]]></add>
</operation>
</file>
Translation by MOD Translator SirtLanVadisi in german and german-utf8 languages
<file name="$themedir/languages/Modifications.german.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Quick Translation MOD by SirtLanVadisi.NeT
$txt['quick_trans_not_found'] = 'Leider, es konnte keine Übersetzung gefunden werden...';
$txt['quick_trans_want_translate'] = 'Wollen Sie eine Nachricht übersetzen ?';
$txt['quick_trans_select_lang'] = 'Wählen Sie eine Sprache aus';
// End Quick Translation MOD by SirtLanVadisi.NeT
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.german-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Quick Translation MOD by SirtLanVadisi.NeT
$txt['quick_trans_not_found'] = 'Leider, es konnte keine Übersetzung gefunden werden...';
$txt['quick_trans_want_translate'] = 'Wollen Sie eine Nachricht übersetzen ?';
$txt['quick_trans_select_lang'] = 'Wählen Sie eine Sprache aus ';
// End Quick Translation MOD by SirtLanVadisi.NeT
]]></add>
</operation>
</file>
Nice mod!
Successfully Installed (without any error).
But 'Translate' button didn't appeared any where in the message body, how could be configured?
No way. Maybe is a conflict with other scripts (prototype etc).
Quote from: Bugo on October 18, 2010, 02:31:54 AM
No way. Maybe is a conflict with other scripts (prototype etc).
I Tried again, now it is working...
Thanks, this is really nice mod!
Wo-hoo, nice one :)
Simple, elegant, powerfull, like smf :P
Really, i like it, and im gonna use it on my forum, i will just move translation button a little bit... :)
Agreed, as soon as I saw it I thought it was a pretty cool mod, nice work :)
Sounds awesome ill install it on my test forum tomorrow morning
Dutch translate don`t work ?
See http://code.google.com/intl/en-EN/apis/ajaxlanguage/documentation/#SupportedLanguages
Hi, Bugo. I was going to use this API in the past but the cap prevented me from doing what I wanted to do with it. I doubt the cap has been lifted though, 5 thousand characters right. The character limit however was only part of it, the response from Google was painfully slow also. :(
Quote from: ®SirtLan on October 17, 2010, 03:13:54 PM
Translation by MOD Translator SirtLanVadisi in german and german-utf8 languages
<file name="$themedir/languages/Modifications.german.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Quick Translation MOD by SirtLanVadisi.NeT
$txt['quick_trans_not_found'] = 'Leider, es konnte keine Übersetzung gefunden werden...';
$txt['quick_trans_want_translate'] = 'Wollen Sie eine Nachricht übersetzen ?';
$txt['quick_trans_select_lang'] = 'Wählen Sie eine Sprache aus';
// End Quick Translation MOD by SirtLanVadisi.NeT
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.german-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Quick Translation MOD by SirtLanVadisi.NeT
$txt['quick_trans_not_found'] = 'Leider, es konnte keine Übersetzung gefunden werden...';
$txt['quick_trans_want_translate'] = 'Wollen Sie eine Nachricht übersetzen ?';
$txt['quick_trans_select_lang'] = 'Wählen Sie eine Sprache aus ';
// End Quick Translation MOD by SirtLanVadisi.NeT
]]></add>
</operation>
</file>
you used google to translate this? Looks like.
better use this one:
$txt['quick_trans_not_found'] = 'Es konnte leider keine Übersetzung gefunden werden.';
$txt['quick_trans_want_translate'] = 'Wollen Sie eine Nachricht übersetzen?';
$txt['quick_trans_select_lang'] = 'Sprache wählen ';//"Wählen Sie eine Sprache aus" is correct but this one too + it is shorter -> more room for other stuff
After installing this Mod on my rC 2.03, I see nothing, no button called Translate..
how am i suppose to Enable it, where is the settings tab?
No settings. See screenshot.
For those who can't get it to work, it could be that the extra header info isn't being installed.
Look in Sources/Display.php for any
$context['html_headers'] = '
and replace it with
$context['html_headers'] .= '
Without the dot, it is overwriting this mods extra header data.
That's where I had a conflict with a mod.
it's working great at 1.1.12 smf, great option!
nice idea, but it needs to remember last language choice, because having to select translation language again and again is not convenient.
maybe store that info in cookie?
SMF Cookie Format (http://www.simplemachines.org/community/index.php?topic=7562.0)
but much respect for that approach, good work!
Idea is good. Unfortunately, my knowledge is not enough to embody it.
i have never used cookies for saving info, but i guess that might be easy ...
so i click on the button alright
and then a screen pops up alright
so i randomly click a language alright
....
but nothing happened!! :-[
see screenshot
Possible the service cannot find the translation.
Still no tranlste from my default forum language to EN.
Quote from: Bugo on November 12, 2010, 09:19:07 PM
Possible the service cannot find the translation.
but i tried, and all languages don't work
any solution?
no matter which one i click nothing happens
----------
update:
so i just found out that nothing is shown when use it in sticky topic
for all others it always show no translation is found
Source language = current language of the forum (but not the message!). But you can try change language. Find in Display.template.php this line:
original : "' . $txt['lang_dictionary'] . '",
and replace it with:
original : "ch",
nice... go like apollo.
Hi everyone-
I have SMF 1.1.11 and English is the forum default. Recently, a member made a post in Spanish, and when I try to translate the message i get a Translation not found error. It's a rather lengthy message, so that may have something to do with it.
However, I can translate a short English message into Spanish.
QuoteSource language = current language of the forum (but NOT the message!).
Quote from: Bugo on November 13, 2010, 09:23:24 AM
QuoteSource language = current language of the forum (but NOT the message!).
Well that sucks. For me at least.
Thanks Bugo
Version 0.3 is out: now the source (original) language of each message is determined automatically...
nice work
the "nothing happens" problem solved
but it still doesn't work for the first post of sticky thread
the icon won't show up if it's the first post of a sticky thread or locked thread
-----
wait a minute, not just the sticky's, i just post a new normal thread and it doesn't show the icon
but the other posts show, weird
ok, it's because i used [*code]bbc in the post, if i remove it then it shows fine
bug?
It may do not work if message is very big or has images (maybe). Please test with small sticky/locked messages.
i just tested with some conditions
here are conditions that it won't work:
when the topic is sticky or locked thread
when the topic has more than 1 image
when the topic uses [*code] bbc, possibly other bbc will too
when the messages are too big
ok it's bcuz the message is too large...(like 120words) is this gonna be improved in the future?
Google Language API has limits...
Quote from: Bugo on November 14, 2010, 01:03:04 AM
Google Language API has limits...
got it, hoping they do some improvement there
I have the Problem, that the Button only shows up to my own Posts that i can Edit.
I cant Translate Posts from other Users. Only if i Login as Admin.
Is this a Bug ?
Please tell, what version of SMF you're using, how you installed this mod (as mod or over parser), what theme you're using...
Quote from: Eudemon369 on November 14, 2010, 02:18:36 PM
Quote from: Bugo on November 14, 2010, 01:03:04 AM
Google Language API has limits...
got it, hoping they do some improvement there
These limits been set for this API for years now. They have made it higher from the old limitations, but still not high enough for some stuff. You can use a different technique with the API to get little chunks at a time but last time I tried to do this a few months back this technique was very sluggish.
I haven't really look at this mod yet, but some possibilities though if your submitting it via the URL you may be reaching the maximum URL length, if not the case then your hitting the api's maximum length. ;)
Quote from: nend on November 18, 2010, 10:44:36 AM
Quote from: Eudemon369 on November 14, 2010, 02:18:36 PM
Quote from: Bugo on November 14, 2010, 01:03:04 AM
Google Language API has limits...
got it, hoping they do some improvement there
These limits been set for this API for years now. They have made it higher from the old limitations, but still not high enough for some stuff. You can use a different technique with the API to get little chunks at a time but last time I tried to do this a few months back this technique was very sluggish.
I haven't really look at this mod yet, but some possibilities though if your submitting it via the URL you may be reaching the maximum URL length, if not the case then your hitting the api's maximum length. ;)
yeah, i think they should make the limit higher
a threat with less than 200 words and no image allow is not really a threat anymore :P
this would be a very nice mod for me, since i want to go international at some point and my site is now in dutch... However... couldnt you also add an option that it is only visable when the user is not using the standard language on the site?
If any site has no other languages? Only one?
I do not follow you.... My proposal is: If a user has set the language different then the forum standard... then they see the option to translate... Even better would be if the user can enable or disable it... since some maybe know the standard language, but are more comfortible reading the standard functions of the site in it's own language...
How can I change the button location?
Change code.
Yes but which code?
In Display.template.php. But I'm not interested, so think yourself.
Quote from: MissyNL on December 21, 2010, 04:24:03 PM
I do not follow you.... My proposal is: If a user has set the language different then the forum standard... then they see the option to translate... Even better would be if the user can enable or disable it... since some maybe know the standard language, but are more comfortible reading the standard functions of the site in it's own language...
I'm still busy with other projects.
@Joaso, what about a right alignment? I have made it in new version. And u can always change position of button with the help css.
@Bugo
Would be great!
Where can I get the new version?
See modification page.
Quote from: cordesh on November 17, 2010, 04:35:32 PM
I have the Problem, that the Button only shows up to my own Posts that i can Edit.
I cant Translate Posts from other Users. Only if i Login as Admin.
Is this a Bug ?
Hi Bugo,
I have the same problem, i Use SMF 1.1.12 with a theme made by me;
The installer works.
Can you help me?
Try find in Display.template.php this line:
<div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>
and replace with:
<div class="post" id="msg_' . $message['id'] . '">', $message['body'], '</div>
I'll add it in a future version.
An interesting add-on, works ok
eureka, it works! ;D
Thank you very much for your help and so quick!
I think i'll repack the mod with this correction for my forum, so if i will need to uninstall it in future i'll have no problem.
Is it ok?
Thank you again for your wonderful works
Ok, ok :)
hi Bugo,
i just installed it with no problems. but all i get is this image
SMF 2.0 RC4
Try these files (replace original).
no good. the result is the same. :(
IE?
tested initialy with Chrome and IE
after the replacement of the 2 files only with Chrome
Strange, I see this image in both browsers... Do you clear cache?
never mind. after upgrading to SMF 2.0 RC5 the mod is working fine, at least on the short enough posts.
With RC5 working.. But I have some Question. Translate icon is viewing only in a some of the posts.
I try write 1000 characters is still ok .
I test in one bord 1 massege with 2 replays. First only one word, second nearly 100 words. OK
But see this links and plaece say me where I have a problem ?
In this picture in one post is missing, and in second is ok -> www.turnokopa.com/SMF-test-Mod/Tr1.jpg
Here I try too more characters ant the Translate pic is still there --> www.turnokopa.com/SMF-test-Mod/Tr2.jpg
Please help!
I need a link to your forum, with these messages.
Error!
link forum: http://www.passiongames.it/forum/index.php
this is the problem I'm having
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1228.photobucket.com%2Falbums%2Fee460%2Fkrash661%2F1.png&hash=6b5c9ef95c6a2de26c3e25585d049460bac132c5)
--------------
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1228.photobucket.com%2Falbums%2Fee460%2Fkrash661%2F2.png&hash=f04d6a1399e2946d794397907309921ea9b3c871)
I'm using 2.0.1 ,as a mod,insidious theme and I'm using the Quick Translation 0.4.2
Try new version (at first you must install new_hooks (http://www.simplemachines.org/community/index.php?topic=454883.msg3184910#msg3184910) package).
Quote from: Bugo on October 28, 2011, 05:30:00 AM
(at first you must install new_hooks (http://www.simplemachines.org/community/index.php?topic=454883.msg3184910#msg3184910) package).
k,did this and still having this problem even with Quick Translation 0.5
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1228.photobucket.com%2Falbums%2Fee460%2Fkrash661%2F1.png&hash=6b5c9ef95c6a2de26c3e25585d049460bac132c5)
before without :New Hooks 0.1
New Hooks Examples 0.1
Quick Translation 0.5
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1228.photobucket.com%2Falbums%2Fee460%2Fkrash661%2Fbefore.png&hash=4fa587db139ebdbf07606eef8862b1b96cb599f0)
after with :New Hooks 0.1
New Hooks Examples 0.1
Quick Translation 0.5
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1228.photobucket.com%2Falbums%2Fee460%2Fkrash661%2Fafter.png&hash=229a02a6314dfadbcc8482f84ca9ece1a0428487)
I also installed both of these links and when i did,the translation didnt even work at all on anything with the .5 version
* new_hooks.zip (1.08 kB - downloaded 11 times.)
* new_hooks_examples.zip (1.98 kB - downloaded 6 times.)
As you see (screenshot in my previous post), I have no such problems, so your problem is not in this mod. Maybe in browser?
P.S. Try use this mod with small text blocks.
Quote from: Bugo on October 28, 2011, 12:33:30 PM
As you see (screenshot in my previous post), I have no such problems, so your problem is not in this mod. Maybe in browser?
P.S. Try use this mod with small text blocks.
I have tried with small text,I've tried everything I could think of.It just doesnt work,I'm using Firefox browser.It only works on my own post on the 0.4.2 version with my Firefox browser.Once I installed the 0.5 version and the new hooks on my Firefox browser,it doesn't work at all on anything,but the button is only on my own post.It doesn't react.
In my opinion it works better with the 0.4.2 version,just need to make it show on other post besides my own.
Link to your forum, please.
Quote from: Bugo on October 28, 2011, 01:08:54 PM
Link to your forum, please.
yeah no problem
http://www.ruletheonlinecompetition.com/index.php
Why do you have installed new_hooks_examples? Only new_hook package!
And disable any other scripts if they are.
Quote from: Bugo on October 28, 2011, 02:11:43 PM
Why do you have installed new_hooks_examples? Only new_hook package!
And disable any other scripts if they are.
I've already tried that also.but ok,i'll delete now.and also what is ment by this,"And disable any other scripts if they are."
yeah,it's still only working on my own post only.
Im going through my site and it only shows on some post.Maybe it only shows if the text is small and if it can auto detect the language?
krash661 what web browser are you using, Quick Translation works perfectly with Firefox & Opera but not with Midori,Unfortunately I can´t give test result with IE because I do not use IE (Linux user)
Quote from: French on October 28, 2011, 03:25:36 PM
krash661 what web browser are you using, Quick Translation works perfectly with Firefox & Opera but not with Midori,Unfortunately I can´t give test result with IE because I do not use IE (Linux user)
im using firefox,i think the problem is that its a bigger texted than whats supported.then i found out that google translation cant translate it either,which is telling me something is wrong with the language he posted in..probably not a real language or looks like a typical format problem for the browser - happens when you have latin letters and trying to
translate to greek lettering without support, ie, english to russian or something cause i think its spam posting anyways.But all in all its working,just need to give it a bigger texted capability,In my opinion.but i do like the mod.
i imagine this is a rather nice mod but i am having no luck with this. when installed, package manager suggests success, files are where there supposed to be but no translate image.
i use xampp for testing purposes and its not working there either. i've read every post in this thread and have yet too see it working on someones forum.
smf version 2.0.1 using firefox and ie
i tried everything suggested.
Did you try install mod on your work site?
Quote from: Bugo on December 08, 2011, 12:43:34 AM
Did you try install mod on your work site?
yes i did. not sure what else to say. read every post here, tried all solutions. it seems to have installed but no image on any site i tried it on.
Can I see a link to your forum with installed mod?
Quote from: Bugo on December 08, 2011, 10:31:21 AM
Can I see a link to your forum with installed mod?
its a closed forum belonging to someone else, shoot me a message and let me know if you need admin access.
Well, unfortunately, Google closed his Translate API (http://www.i-programmer.info/news/81-web-general/2495-google-translate-api-to-close.html):
Quote
The Google Translate API has been officially deprecated as of May 26, 2011. Due to the substantial economic burden caused by extensive abuse, the number of requests you may make per day will be limited and the API will be shut off completely on December 1, 2011.
Now is December 12, so this mod is more not works :(
yeah thanks for that. :o
o well, it seems lots of people aren't liking this. any chance it can work with bing?
Ok, I have made a new version by using other API. Try it now.
Thanks for making the new version Bugo....I'm really pleased to get this mod working again.
Loving the auto detect user language
Not sure I like the word translate under each post though. Is there a bit of code I could edit to make it appear on the right like the old image or change it back to the image?
Unlikely.
I'm actually liking the new way more now....
This version is great, much more in this than the previous versions
Great work!
Thanks!
Thank you
Great work!
Now, one way to tackle the link below for the IP and I'm happy.
nice Bugo. thank you. :D
Quote from: Eclipse16V on December 10, 2011, 03:32:51 PM
Now, one way to tackle the link below for the IP and I'm happy.
Well, try beta version, with 2 positions of translate button.
Just install New Hooks, then this mod.
It just gets better & better :D Thanks again Bugo
This should be included in the default SMF package it's just so useful.... ;)
Great work Bugo! :D
Quote from: Bugo on December 10, 2011, 11:18:26 PM
Quote from: Eclipse16V on December 10, 2011, 03:32:51 PM
Now, one way to tackle the link below for the IP and I'm happy.
Well, try beta version, with 2 positions of translate button.
Just install New Hooks, then this mod.
first thank you Bugo for the great development of the mod. I like everything new with it. and seams to me faster in translation than before.
now just have one question. how to add more languages as an option? what file do I have to modify?
thanks again
do you know what would be the final touch to this mod, not only for me but I think for other users too, if you can add an option to chose what languages to translate from/to. this would be included with the settings field you already created for the mod; and whatever languages the admin chose will just show up in the drop down translation menu which will avoid users from having a hard time finding their language as it used to happen with the old version.
well this is just my opinion I don't know if others agree with me or not.
cheers.
Why? It seems language auto detect works very well. For example, If any user uses browser with german language, he will get translation on german etc. I like this feature.
He may use a fake IP to access some pages or sites. The faked IP may refer to another country which not use his language. E.g: I am using Vietnamese but when I use fake IP, my country is USA, that time, it automatically refer to English :D
And what? This is not my problem :)
If you want change it, you can do it. But don't forget about license agreement (http://creativecommons.org/licenses/by-nc-sa/3.0/).
thanks for the reply. see the case is now it just translates from site language to English. it does not translate from English to site language. some members post stuff in English and other members dont speak it so they need something to translate the English for them.
Thanks Bugo
Works fine
EDIT:
I still have a small question.
How can I make the text of the button is gone and only appears as alt="..." and title="..."?
Quote from: Bugo on December 12, 2011, 04:21:21 AM
And what? This is not my problem :)
If you want change it, you can do it. But don't forget about license agreement (http://creativecommons.org/licenses/by-nc-sa/3.0/).
no I dont wanna edit it. I just want to know if its possible to have the mod translate from and to English. basically from the site language to English and the other way around.
thanks
Quote from: Eclipse16V on December 14, 2011, 03:57:53 AM
How can I make the text of the button is gone and only appears as alt="..." and title="..."?
I don't know. Ask Google.
Quote from: BaghdadGhost on December 14, 2011, 06:17:44 AM
I just want to know if its possible to have the mod translate from and to English. basically from the site language to English and the other way around.
Use Google Translator for that.
Something weird happened..my quick language button is missing..it used to be there and i just notice it is not there any more,what caused this and how do i fix it?
Quote from: Bugo on December 10, 2011, 09:31:46 AM
Well, unfortunately, Google closed his Translate API:
Quote
The Google Translate API has been officially deprecated as of May 26, 2011. Due to the substantial economic burden caused by extensive abuse, the number of requests you may make per day will be limited and the API will be shut off completely on December 1, 2011.
Now is December 12, so this mod is more not works :(
Ok, I have made a new version by using other API. Try it now.
ahhh..so the API is shut off..that's why its not showing...
so where do i get this new version?
now its 0.7 you can find it here http://custom.simplemachines.org/mods/index.php?mod=2794
what version do you have installed?
Quote from: BaghdadGhost on December 23, 2011, 02:16:13 PM
now its 0.7 you can find it here http://custom.simplemachines.org/mods/index.php?mod=2794
what version do you have installed?
I found it all..it's working fine..
I agree with you on " see the case is now it just translates from site language to English. it does not translate from English to site language. some members post stuff in English and other members dont speak it so they need something to translate the English for them. "
Quote from: krash661 on December 23, 2011, 02:35:34 PM
Quote from: BaghdadGhost on December 23, 2011, 02:16:13 PM
now its 0.7 you can find it here http://custom.simplemachines.org/mods/index.php?mod=2794
what version do you have installed?
I found it all..it's working fine..
I agree with you on " see the case is now it just translates from site language to English. it does not translate from English to site language. some members post stuff in English and other members dont speak it so they need something to translate the English for them. "
I wish Bugo consider my previous suggestion to add an option to be able to chose one more language with English. in the previous version we had a list of all languages and it was kinda hard to find user language. he already suggested to use google translate mod, but this mod translates the whole page, which at some point either does not work properly or mess up everything. while the unique thing about this mod is dedicated to replies only.
after all this is a great effort from Bugo.
thanks
lol I forgot to uninstall the older version before i installed the .7..then after i installed the new version(.7) there was no uninstall for the older version,so i had to just delete it...will this effect anything on my stuff or site??
if you dont have the old version I can give it to you so you either use parser to follow manual uninstalling or just reverse the operations of installation.
Quote from: BaghdadGhost on December 23, 2011, 02:56:57 PM
if you dont have the old version I can give it to you so you either use parser to follow manual uninstalling or just reverse the operations of installation.
lol i dont know how to or understand how to do all that file changing and stuff..if theres another way to bring it back and then uninstall it,then yeah...i had .5 version
Well, someone has to give you 0.5 version. I don't collect old versions.
just to be on the safe side delete the new version via package manager.
do the following and I hope I am not mistaking
go to themes/default/css/ and delete jTextTranslate.css
go to themes/default/images/ and delete the folder jTextTranslate
now in themes/default/scripts delete jquery.TextTranslate.js
in themes/default/Display.template.php find and delete
// Quick Translation
echo '
<script type="text/javascript">window.addEvent && document.write(unescape(\'%3Cscript type="text/javascript"%3EjQuery.noConflict();%3C/script%3E\'))</script>
<script type="text/javascript"><!-- // --><![CD' . 'ATA[
var text = document.getElementById("msg_', $message['id'], '").innerHTML;
var tmp = document.getElementById("msg_', $message['id'], '").innerText;
if ( typeof(tmp) !== "undefined") { text = tmp; }
google.language.detect(text, function(result) {
text = text.substring(0, 50);
if (!result.error)
{
var language = "unknown";
for (l in google.language.Languages)
{
if (google.language.Languages[l] == result.language)
{
language = l;
break;
}
}
origin_text_lang = google.language.Languages[language];
jQuery("#msg_', $message['id'], '").translate({
original: origin_text_lang
});
}
});
// ]' . ']></script>';
if you are using a custom theme repeat the above operations on your theme folder and display file
in sources/Display.php find and delete
// Quick Translation
$context['html_headers'] .= '
<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/css/jTextTranslate.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("language", "1");</script>
<script type="text/javascript">!window.jQuery && document.write(unescape(\'%3Cscript src="http://code.jquery.com/jquery.min.js"%3E%3C/script%3E\'))</script>
<script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/jquery.TextTranslate.js"></script>';
now you can re-install the new version.
enjoy :)
Quote from: Bugo on December 23, 2011, 03:21:23 PM
Well, someone has to give you 0.5 version. I don't collect old versions.
so if i can get a hold of the .5 version again, i can reinstall it and then uninstall it,then i should be fine?
No, you need put mod archive to Package dir and then uninstall mod via Package Manager area.
Quote from: BaghdadGhost on December 23, 2011, 03:24:00 PM
just to be on the safe side delete the new version via package manager.
do the following and I hope I am not mistaking
go to themes/default/css/ and delete jTextTranslate.css
go to themes/default/images/ and delete the folder jTextTranslate
now in themes/default/scripts delete jquery.TextTranslate.js
in themes/default/Display.template.php find and delete
// Quick Translation
echo '
<script type="text/javascript">window.addEvent && document.write(unescape(\'%3Cscript type="text/javascript"%3EjQuery.noConflict();%3C/script%3E\'))</script>
<script type="text/javascript"><!-- // --><![CD' . 'ATA[
var text = document.getElementById("msg_', $message['id'], '").innerHTML;
var tmp = document.getElementById("msg_', $message['id'], '").innerText;
if ( typeof(tmp) !== "undefined") { text = tmp; }
google.language.detect(text, function(result) {
text = text.substring(0, 50);
if (!result.error)
{
var language = "unknown";
for (l in google.language.Languages)
{
if (google.language.Languages[l] == result.language)
{
language = l;
break;
}
}
origin_text_lang = google.language.Languages[language];
jQuery("#msg_', $message['id'], '").translate({
original: origin_text_lang
});
}
});
// ]' . ']></script>';
if you are using a custom theme repeat the above operations on your theme folder and display file
in sources/Display.php find and delete
// Quick Translation
$context['html_headers'] .= '
<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/css/jTextTranslate.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("language", "1");</script>
<script type="text/javascript">!window.jQuery && document.write(unescape(\'%3Cscript src="http://code.jquery.com/jquery.min.js"%3E%3C/script%3E\'))</script>
<script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/jquery.TextTranslate.js"></script>';
now you can re-install the new version.
enjoy :)
wouldn't this be changing files and stuff?
" i dont know how to or understand how to do all that file changing and stuff "
Is there another way?
do you use any FTP software at all?
Quote from: Bugo on December 23, 2011, 03:26:59 PM
No, you need put mod archive to Package dir and then uninstall mod via Package Manager area.
can you explain how to do this?, i dont understand
check your personal messages
Bugo,
do you think the old version conflicts with new version?or changes anything?..cause if not,then it doesn't matter that the old version is installed.but at this moment,it seems like it doesn't matter..everything appears to be fine so far.
Great mod, thanks ...
One thing to clerify, installed 0.7 ( without newhooks) and it shows only oneline "translate" in the posts in the topic and translates to English only and to original.
Sometimes members post in other languages as well, like italian. There is no dropdown language selection menu.
Is it working as designed, am I suppose to customize something ?
All the best
Quoteand translates to English only and to original.
Hi teos55,
could you please advice how did you manage to make it translate to original also? mine just translates from original to english.
thank you
The clickable text "translate" switches to "show original" ...
Quote from: teos55 on January 02, 2012, 05:54:05 PM
The clickable text "translate" switches to "show original" ...
thanks but this does not mean it translates from english to original.
Oooops sorry, misunderstood . Yes you're right, english text is not translated to original language.
Why the icon translate.png not show up on messages?
The language choice only shows up on main page, nowhere else?
I have installed this Quick Translation into version 202. does this have something to do with this?
All parse for 202 version is done, but something is missing, the arrow image in messages. There
is only the "TRanslate" text bold and it seems to working.
I would appreciate help with this problem!
Thanks in advance :)
No reply yet ...
Quote from: teos55 on January 02, 2012, 05:03:00 PM
Great mod, thanks ...
One thing to clerify, installed 0.7 ( without newhooks) and it shows only oneline "translate" in the posts in the topic and translates to English only and to original.
Sometimes members post in other languages as well, like italian. There is no dropdown language selection menu.
Is it working as designed, am I suppose to customize something ?
All the best
Quote from: teos55 on January 10, 2012, 04:11:26 AM
No reply yet ...
Quote from: teos55 on January 02, 2012, 05:03:00 PM
Great mod, thanks ...
One thing to clerify, installed 0.7 ( without newhooks) and it shows only oneline "translate" in the posts in the topic and translates to English only and to original.
Sometimes members post in other languages as well, like italian. There is no dropdown language selection menu.
Is it working as designed, am I suppose to customize something ?
All the best
I also hope that Bugo consider adding an option to translate back from English to site language. He recommended to use google translate mod bit it just ruins the whole display of the page.
Author doesn't bader to reply, why?
Author wants to you read a description.
I apologize, in case someone asked this question already.
With the change in Google API access, this mod now works only with SMF 2.0.
Is there a chance it can be made to work again with SMF 1.1?
You were right in your mod description... it doesnt work! No link for translation showing.
Doesn't work? Just intall New Hooks package!
http://www.simplemachines.org/community/index.php?topic=405224.msg3226439#msg3226439
The linked reply gives no information about the ' new hooks package. No link no location, nothing in search of smf mods using the keyword 'hooks'.
As this was just updated what is going on?
Mod Name:
Quick Translation
Created By:
Bugo
Type:
Socialization
First Created:
October 10, 2010, 01:46:53 AM
Last Modified:
September 28, 2012, 02:26:36 PM
http://www.simplemachines.org/community/index.php?topic=405224.msg3226439#msg3226439
Quote from: Bugo on December 10, 2011, 11:18:26 PM
Just install New Hooks, then this mod.
The "translate" link doesn't displaying if translation is not needed.
Needed for what?
QuoteDescription: The modification can be used to translate a text in all the languages provided by the API.
API...? Not very clear what is Api you talking about. This is SMF languages or just what you decided?
It only works from 'other languages' to English on our site. Not from say, English to Japanese which is needed.
If it is from other languages to only English and Russian, I think you should clearly state that in the mod description on the mod page.
Now looking a the 7 pages of replies, many people were confused. It would save everyone, including yourself, a lot of time by stating exactly what it does.
I see things differently. This mod is provided AS IS. It's free.
If you don't like something, don't use it, don't install it, don't ask author to change something specially for you.
Use another solutions.
There is nothing in the description, nothing on the first page for the mod discussion. The only way to find out is to dig through the zip file and take a guess based on the english and russian QT files.
And look through your 7 pages and see how many people do not 'see things your way'. I wasted an evening (trying to
help Japanese people translate some English) because you are too arrogant to give simple , useful mod descriptions, or to give helpful replies.
Quotedon't ask author to change something specially for you.
I did not ask you to change it - just to give proper mod descriptions.
I noticed you updated the mod page... a little. Thanks for taking the trouble.
I would suggest you list the languages it 'translates to', so there is no ambiguity. You know. if people are informed it will make your life 10 times easier!
A fan of your mods... though to talk to, you are more like a grisly bear than a panda.
Andy
Nice mod, thanks! :)
What a great mod, and an elegant solution too!
Installed fine on my 2.0.4 forum, though it only works when I choose "under". [EDIT] New hooks fixed that.
A very small request: I'd prefer it if the "Translate" link was separated from the text and was more subtle... but thanks so much, it's really useful!
Can I ask something? What are the exact conditions this mod works on? I assume it checks the browser language, and then if a post is detected to be in some other language it will translate it to the browser language.
For instance, if my browser is set to English and a post is in German then that post will be translated into English.
It works for me with Opera/Chrome (but offers to translate English posts too!), but not FF. However my users are reporting mixed results (http://www.cpcwiki.eu/forum/cpcwiki-discussion/translation-added-to-the-forum!/new/#new), with some saying that changing the actual forum language in preferences do the trick, but not quite.
Any help?
0.8, with new hooks installed.
Ask Google about it :)
This mod uses Google Translator Toolkit API.
Quote from: Bugo on March 13, 2013, 12:41:54 PM
Ask Google about it :)
This mod uses Google Translator Toolkit API.
This was a reply to my post? Because I think my questions pertain to the mod, not the API? Could be wrong though...
First of all, thanks a lot for this great mod!
Today I saw a new appearance on the button of the website, which seems to be caused "by" the mod, or better by google coming trough the modification.
Quote(https://www.google.com/images/icons/product/translate-32.png)
Original text
Contribute a better translation
I also have attached a screen shot. Some how it does not really make happy if Google has so much "power" and makes unrequested advertising. How can this happen? Is there a way to solve or is it time to let go of "free"-stuff like google involved things?
Is it a mod thing that the forum is now open to such or is it a general reality for SMF?
That is a general feature offered by Google's translate engine.
Quote from: Arantor on October 11, 2013, 12:43:36 AM
That is a general feature offered by Google's translate engine.
Thanks for your answer Arantor,
So somebody who has not installed this google mod will have it as well? Or what do you mean by feature?
Or let me ask differently:
If I de-install this mod here, will I still have it on board?
Is it possible to get ride of it without de-installation of the mod?
Or is it even caused by any other stuff or SMF features?
No, no, and no.
This mod integrates Google Translate into your site. Suggesting a better translation sends it to Google. Google provides the translations.
Quote from: Arantor on October 11, 2013, 01:10:56 AM
No, no, and no.
No what? Arantor. Please correct me if I am wrong.
If I de-install this mod here, will I still have it on board? --> NO. So then it will be gone: Its caused by the mod.
Is it possible to get ride of it without de-installation of the mod? --> NO, it will stay in the footer as long as the mod is installed
Or is it even caused by any other stuff or SMF features? --> This NO means that it is definitely, exclusively caused by the mod.
Quote from: Arantor on October 11, 2013, 01:10:56 AMThis mod integrates Google Translate into your site. Suggesting a better translation sends it to Google. Google provides the translations.
I know, and there is no problem with it. Its about the google add in the footer of the SMF board that appeared since today.
I really wonder about such ways. *plopp* and you you have this and that secretly adopted. :)
Thanks a lot!
(Off- topic: maybe a general "Warning: this mod causes you to lose your interdependency original SMF provides you through third part implications. Prove the impacts and TOS carefully." would be good placed to avoid such surprises)
Google is an ad company. Everything they do is around serving ads one way or another.
I installed the Quick translation and New Hooks, but I am not seeing anything on my website showing a Translate option.
Am I just not seeing it?
Link for reference: http://pubstargaming.com/forum/sports-colosseum/ncaaf-if-bcs-standings-came-out-today/
Quote from: Arantor on October 11, 2013, 09:14:17 AM
Google is an ad company. Everything they do is around serving ads one way or another.
Yes I know, Arantor. So it means that my counts are right and one has no chance to avoid unloved adds within this mod if no deal is planed? Just to stay not to much on assuming.
Why would you? You're getting a service in exchange for an advert.
Quote from: Arantor on October 11, 2013, 12:32:48 PM
Why would you? You're getting a service in exchange for an advert.
So that means: Take the mode = Take the add-deal. No question of why actually. That is a secret question, very secret affair 8) not good to talk about as everybody uses it secretly, intimate unknown or even not . :-) Thanks for you patient, Arantor.
this mod works with 2.0.9?
Quote from: oroedel on January 02, 2015, 06:47:40 PM
this mod works with 2.0.9?
Johann is running it on 2.0.9 and works fine, so its maybe just a installation thing. Anywhere you might change just "2.0.5" to 2.0.9 and then install.
Quote from: sangham.net on April 23, 2015, 07:51:18 AM
Quote from: oroedel on January 02, 2015, 06:47:40 PM
this mod works with 2.0.9?
Johann is running it on 2.0.9 and works fine, so its maybe just a installation thing. Anywhere you might change just "2.0.5" to 2.0.9 and then install.
!!
:-X
Wrong, just saw that it does not work any more, never look if there is a link and no errors at all, maybe I destroyed it by the last design and css session... ::)
*wispering* any hints?not sure if I got the right heavenly wink, but what about this phrase tool?
QuoteMove the included file "core/Subs-QT.php" to "./Sources".
Move the included directory "default/images" to "./Themes/default".
Move the included directory "default/languages" to "./Themes/default"
is that helpful? and as it is starting with sub, maybe I havn't destroy it in the Css, if not it looks bad for me, very bad for me and the relation to consumer... well... its always better to work by one self, even it looks cheap, or?
Where's the new hooks file? It's gone
Quote from: anakmacan on April 13, 2017, 10:20:49 PM
Where's the new hooks file? It's gone
http://dragomano.ru/lessons/add-custom-hooks/new_hooks.zip
:)
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.turkish-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Quick Translation MOD by SirtLanVadisi.NeT
$txt['quick_trans_not_found'] = 'Üzgünüm, çeviri bulunamamıştır...';
$txt['quick_trans_want_translate'] = 'Bir mesaj çevirmek istiyormusunuz ?';
$txt['quick_trans_select_lang'] = 'Dil seçiniz ';
// End Quick Translation MOD by SirtLanVadisi.NeT
]]></add>
</operation>
</file>
What is that about?
Hola!!!! Saludos.
Does anyone advise me how to make this mod work in addition to private messages? Any ideas?
Thanks
Mark me error on line 118 ....... Does someone help me? Gracias
8: Undefined variable: txt
Sources/Subs-QT.php
Línea: 118
==>118:
$user_lang = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) : $txt['lang_dictionary'];
Quote from: Tenebroso_MW on March 12, 2018, 07:32:29 PM
Mark me error on line 118 ....... Does someone help me? Gracias
8: Undefined variable: txt
Sources/Subs-QT.php
Línea: 118
==>118:
$user_lang = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) : $txt['lang_dictionary'];
Look up the mod but apparently the variable $txt['lang_dictionary'] is not defined... Defining in QT.english.php should solve it although I would not be sure what I should say.
Regards!
There is a possibility that if any user, for whatever reason, does not detect the language or any extension that does not allow translation, mark this notice, including a VPN. It is, the most that has arrived with my neuron. Since the warning jumps when there is no translation. It's happening to me with visitors from the USA. And maybe from android. I think it's not an error, since the MOD goes well when it detects the language in the desktop browser, I think it's more of a notification. I do not have it clear.
Gracias Rock Lee
I should do some tests but it can be a mistake because I can not translate it correctly, I usually always have something to do, hybrid desk / mobile usually varies some data ...
Regards!
Quote from: Tenebroso_MW on March 12, 2018, 07:32:29 PM
Mark me error on line 118 ....... Does someone help me? Gracias
Fixed. See new version ;)
Quote from: Bugo on March 15, 2018, 01:46:22 AM
Fixed. See new version ;)
I also great just needed to use ;D in passing I leave the translations in Latin Spanish.
Regards!
Thanks Bugo, thanks Rock
Rock Lee, the Bugo file is unclosed ?> ..................
This MOD is a wonder. Thanks for sharing.
Quote from: Tenebroso_MW on March 15, 2018, 06:11:55 PM
Rock Lee, the Bugo file is unclosed ?> ..................
I think they are not closed, I always close them by reflex!
Regards!
I installed the update on localhost, everything perfect. Rock Lee, your file if the name is changed to QT.spanish_en-utf8.php is also in Spanish Es.
What I do not know is whether to remove the "?>" Closure in the php since the "lang_dictionary" variant can search for it by default language? ? ?
I'm a bit confused with the php closure, I do not know if it's a forgetfulness or part of the update. It is not obligatory to close it if it does not mark error or problem ......... therefore, your translation, maybe it should be without closing? ...... "?>" is intentional and not an error?
Actually, it should be installed in English and if you detect the Latin language (it would be valid in English but as I speak mostly in Latin I only do that). Otherwise you must omit this file because it is not found or it would mark error, if it is not specified, skip that file. It can be an oversight of the author or simple tic is generated when elbowing (I own or similar) but if we go to the PHP documentation Spanish (http://php.net/manual/es/language.basic-syntax.phptags.php) / English (http://php.net/manual/en/language.basic-syntax.phpmode.php) It must be closed because the file will interpret it is still open. To only be a translation (I think it should not affect) you do not see some kind of effect but if there is code meshing if it would give problems that's why I always declare it when I open it and close it. Besides, if you check some other translations they all close them to avoid problems later on, I have passed that you do not take the translations for this in some cases.
Regards!
Add: sorry if I speak English is somewhat clumsy.
I have it solved. Therefore only words of gratitude for the author of the MOD and to you, for your contribution.
Tenebroso
Saludos
just wanted to say thank you :)
installed on 2.0.15, didn't see anything, came here, found the new hooks, and now it's working :D
but can I ask, a slight ocd issue :D
how to move it from the , um, topic bar (?) and have it inline under the text in the post
i think it will get overlooked where it is at