Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Bugo on October 17, 2010, 12:55:02 PM

Title: Quick Translation
Post by: Bugo on October 17, 2010, 12:55:02 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=2794)

The modification can be used to translate messages in all languages provided by the Google Translator Toolkit (https://translate.google.com/manager/website/).

How this works? When browser's preferrable language doesn't match with user's language (on forum) then such users can see a special "translate" button, on button panel.

This mod needs PHP 5.3 or greater. It uses pear package Text_LanguageDetect that can identify 52 human languages from post message.

Doesn't work? Just install New Hooks (https://dragomano.ru/lessons/add-custom-hooks/new_hooks.zip) package!

Russian Support (https://dragomano.ru/mods/quick-translation) | Donate (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SJLXR6X7XGEDC)

This work is licensed under a BSD (https://opensource.org/licenses/bsd-license.php)
Title: Re: Quick Translation
Post by: Masterd on October 17, 2010, 01:09:28 PM
Nice mod! :D
Title: Re: Quick Translation
Post by: -=[Vyorel]=- on October 17, 2010, 02:55:39 PM
Cool!

Nice mod! :D
No. It's very nice! ;)
Title: Re: Quick Translation
Post by: iPhoneDestek on October 17, 2010, 03:13:54 PM
Translation by MOD Translator SirtLanVadisi in turkish and turkish-utf8 languages




Code: [Select]

<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




Code: [Select]

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

Title: Re: Quick Translation
Post by: .ABM. on October 17, 2010, 10:59:42 PM
Nice mod!
Title: Re: Quick Translation
Post by: Qayyom Ashraf on October 18, 2010, 01:35:48 AM
Successfully Installed (without any error).

But 'Translate' button didn't appeared any where in the message body, how could be configured?
Title: Re: Quick Translation
Post by: Bugo on October 18, 2010, 02:31:54 AM
No way. Maybe is a conflict with other scripts (prototype etc).
Title: Re: Quick Translation
Post by: Qayyom Ashraf on October 18, 2010, 03:28:06 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!
Title: Re: Quick Translation
Post by: Dzonny on October 19, 2010, 01:54:52 PM
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... :)
Title: Re: Quick Translation
Post by: Nibogo on October 19, 2010, 09:41:35 PM
Agreed, as soon as I saw it I thought it was a pretty cool mod, nice work :)
Title: Re: Quick Translation
Post by: KensonPlays on October 20, 2010, 01:38:05 AM
Sounds awesome ill install it on my test forum tomorrow morning
Title: Re: Quick Translation
Post by: wiecher on October 27, 2010, 08:25:02 AM
Dutch translate don`t work ?
Title: Re: Quick Translation
Post by: Bugo on October 27, 2010, 11:20:42 AM
See http://code.google.com/intl/en-EN/apis/ajaxlanguage/documentation/#SupportedLanguages
Title: Re: Quick Translation
Post by: nend on November 04, 2010, 12:14:53 AM
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.  :(
Title: Re: Quick Translation
Post by: chilly on November 04, 2010, 05:25:37 AM
Translation by MOD Translator SirtLanVadisi in german and german-utf8 languages
Code: [Select]
<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:
Code: [Select]
$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
Title: Re: Quick Translation
Post by: soulgeek on November 06, 2010, 01:51:23 AM
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?
Title: Re: Quick Translation
Post by: Bugo on November 06, 2010, 02:25:09 AM
No settings. See screenshot.
Title: Re: Quick Translation
Post by: Abavagada on November 06, 2010, 11:46:15 AM
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

Code: [Select]
$context['html_headers']  = '
and replace it with

Code: [Select]
$context['html_headers']  .= '
Without the dot, it is overwriting this mods extra header data.
That's where I had a conflict with a mod.


Title: Re: Quick Translation
Post by: qtime on November 10, 2010, 11:00:55 AM
it's working great at 1.1.12 smf, great option!
Title: Re: Quick Translation
Post by: _pi on November 10, 2010, 04:32:56 PM
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!
Title: Re: Quick Translation
Post by: Bugo on November 10, 2010, 04:38:24 PM
Idea is good. Unfortunately, my knowledge is not enough to embody it.
Title: Re: Quick Translation
Post by: _pi on November 10, 2010, 05:16:25 PM
i have never used cookies for saving info, but i guess that might be easy ...

Title: Re: Quick Translation
Post by: Eudemon on November 12, 2010, 05:24:58 PM
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
Title: Re: Quick Translation
Post by: Bugo on November 12, 2010, 09:19:07 PM
Possible the service cannot find the translation.
Title: Re: Quick Translation
Post by: qubbah on November 12, 2010, 09:47:44 PM
Still no tranlste from my default forum language to EN.
Title: Re: Quick Translation
Post by: Eudemon on November 12, 2010, 10:01:43 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
Title: Re: Quick Translation
Post by: Bugo on November 13, 2010, 04:56:04 AM
Source language = current language of the forum (but not the message!). But you can try change language. Find in Display.template.php this line:
Code: [Select]
original : "' . $txt['lang_dictionary'] . '",and replace it with:
Code: [Select]
original : "ch",
Title: Re: Quick Translation
Post by: qubbah on November 13, 2010, 05:57:15 AM
nice... go like apollo.
Title: Re: Quick Translation
Post by: studiowi33 on November 13, 2010, 07:19:35 AM
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.
Title: Re: Quick Translation
Post by: Bugo on November 13, 2010, 09:23:24 AM
Quote
Source language = current language of the forum (but NOT the message!).
Title: Re: Quick Translation
Post by: studiowi33 on November 13, 2010, 01:01:53 PM
Quote
Source language = current language of the forum (but NOT the message!).

Well that sucks. For me at least.

Thanks Bugo
Title: Re: Quick Translation
Post by: Bugo on November 13, 2010, 04:12:41 PM
Version 0.3 is out: now the source (original) language of each message is determined automatically...
Title: Re: Quick Translation
Post by: Eudemon on November 13, 2010, 05:45:34 PM
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?
Title: Re: Quick Translation
Post by: Bugo on November 13, 2010, 06:08:36 PM
It may do not work if message is very big or has images (maybe). Please test with small sticky/locked messages.
Title: Re: Quick Translation
Post by: Eudemon on November 13, 2010, 06:32:30 PM
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?
Title: Re: Quick Translation
Post by: Bugo on November 14, 2010, 01:03:04 AM
Google Language API has limits...
Title: Re: Quick Translation
Post by: Eudemon on November 14, 2010, 02:18:36 PM
Google Language API has limits...
got it, hoping they do some improvement there
Title: Re: Quick Translation
Post by: 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 ?


Title: Re: Quick Translation
Post by: Bugo on November 17, 2010, 05:10:14 PM
Please tell, what version of SMF you're using, how you installed this mod (as mod or over parser), what theme you're using...
Title: Re: Quick Translation
Post by: nend on November 18, 2010, 10:44:36 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. ;)
Title: Re: Quick Translation
Post by: Eudemon on November 28, 2010, 01:08:03 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
Title: Re: Quick Translation
Post by: MissyNL on December 20, 2010, 05:25:27 PM
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?

Title: Re: Quick Translation
Post by: Bugo on December 20, 2010, 11:43:16 PM
If any site has no other languages? Only one?
Title: Re: Quick Translation
Post by: 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...
Title: Re: Quick Translation
Post by: Joazo on January 18, 2011, 05:50:11 PM
How can I change the button location?
Title: Re: Quick Translation
Post by: Bugo on January 18, 2011, 11:47:33 PM
Change code.
Title: Re: Quick Translation
Post by: Joazo on January 19, 2011, 12:18:40 AM
Yes but which code?
Title: Re: Quick Translation
Post by: Bugo on January 19, 2011, 06:01:07 AM
In Display.template.php. But I'm not interested, so think yourself.

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.
Title: Re: Quick Translation
Post by: Bugo on January 20, 2011, 02:40:42 PM
@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.
Title: Re: Quick Translation
Post by: Joazo on January 21, 2011, 03:44:53 AM
@Bugo

Would be great!

Where can I get the new version?
Title: Re: Quick Translation
Post by: Bugo on January 21, 2011, 05:15:35 AM
See modification page.
Title: Re: Quick Translation
Post by: Morph_nkgc on January 21, 2011, 09:48:24 AM
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?
Title: Re: Quick Translation
Post by: Bugo on January 21, 2011, 10:23:04 AM
Try find in Display.template.php this line:
Code: [Select]
<div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>and replace with:
Code: [Select]
<div class="post" id="msg_' . $message['id'] . '">', $message['body'], '</div>
I'll add it in a future version.
Title: Re: Quick Translation
Post by: impreza on January 21, 2011, 12:54:49 PM
An interesting add-on, works ok
Title: Re: Quick Translation
Post by: Morph_nkgc on January 21, 2011, 02:16:51 PM
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
Title: Re: Quick Translation
Post by: Bugo on January 21, 2011, 11:09:11 PM
Ok, ok :)
Title: Re: Quick Translation
Post by: ben sisko on February 12, 2011, 04:05:53 AM
hi Bugo,

i just  installed it with no problems. but all i get is this image

SMF 2.0 RC4
Title: Re: Quick Translation
Post by: Bugo on February 12, 2011, 05:51:56 AM
Try these files (replace original).
Title: Re: Quick Translation
Post by: ben sisko on February 12, 2011, 06:04:33 AM
no good. the result is the same.  :(
Title: Re: Quick Translation
Post by: Bugo on February 12, 2011, 06:38:14 AM
IE?
Title: Re: Quick Translation
Post by: ben sisko on February 12, 2011, 06:40:45 AM
tested initialy with Chrome and IE
after the replacement of the 2 files only with Chrome
Title: Re: Quick Translation
Post by: Bugo on February 12, 2011, 06:49:58 AM
Strange, I see this image in both browsers... Do you clear cache?
Title: Re: Quick Translation
Post by: ben sisko on February 14, 2011, 05:45:45 AM
never mind. after upgrading to SMF 2.0 RC5 the mod is working fine, at least on the short enough posts.
Title: Re: Quick Translation
Post by: gotostars on March 12, 2011, 05:59:22 PM
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!
Title: Re: Quick Translation
Post by: Bugo on March 12, 2011, 11:35:10 PM
I need a link to your forum, with these messages.
Title: Re: Quick Translation
Post by: bruce86 on August 24, 2011, 03:44:16 PM
Error!
link forum: http://www.passiongames.it/forum/index.php
Title: Re: Quick Translation
Post by: krash661 on October 27, 2011, 07:51:02 PM
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=402abe0ef7f4bba1602b9e04b23ecbef)
--------------
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1228.photobucket.com%2Falbums%2Fee460%2Fkrash661%2F2.png&hash=6ab485c25984d2d2484a74e4cdeaa904)
I'm using 2.0.1 ,as a mod,insidious theme and I'm using the  Quick Translation 0.4.2
Title: Re: Quick Translation
Post by: Bugo on October 28, 2011, 05:30:00 AM
Try new version (at first you must install new_hooks (http://www.simplemachines.org/community/index.php?topic=454883.msg3184910#msg3184910) package).
Title: Re: Quick Translation
Post by: krash661 on October 28, 2011, 11:04:59 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=402abe0ef7f4bba1602b9e04b23ecbef)
Title: Re: Quick Translation
Post by: krash661 on October 28, 2011, 11:45:21 AM
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=dd54f5a256818e33486e98749406386a)

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=d52dbc36cb008d6e2a6f75ba9c51a2ef)
Title: Re: Quick Translation
Post by: krash661 on October 28, 2011, 12:01:59 PM
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.)
Title: Re: Quick Translation
Post by: 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.
Title: Re: Quick Translation
Post by: krash661 on October 28, 2011, 12:50:12 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.
Title: Re: Quick Translation
Post by: krash661 on October 28, 2011, 12:59:17 PM
In my opinion it works better with the 0.4.2 version,just need to make it show on other post besides my own.
Title: Re: Quick Translation
Post by: Bugo on October 28, 2011, 01:08:54 PM
Link to your forum, please.
Title: Re: Quick Translation
Post by: krash661 on October 28, 2011, 01:14:12 PM
Link to your forum, please.
yeah no problem
http://www.ruletheonlinecompetition.com/index.php
Title: Re: Quick Translation
Post by: 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.
Title: Re: Quick Translation
Post by: krash661 on October 28, 2011, 02:12:35 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."
Title: Re: Quick Translation
Post by: krash661 on October 28, 2011, 02:20:38 PM
yeah,it's still only working on my own post only.
Title: Re: Quick Translation
Post by: krash661 on October 28, 2011, 03:05:02 PM
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?
Title: Re: Quick Translation
Post by: 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)
Title: Re: Quick Translation
Post by: krash661 on October 28, 2011, 03:49:04 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.
Title: Re: Quick Translation
Post by: sawz on December 07, 2011, 07:29:55 PM
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.
Title: Re: Quick Translation
Post by: Bugo on December 08, 2011, 12:43:34 AM
Did you try install mod on your work site?
Title: Re: Quick Translation
Post by: sawz on December 08, 2011, 04:51:02 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.
Title: Re: Quick Translation
Post by: Bugo on December 08, 2011, 10:31:21 AM
Can I see a link to your forum with installed mod?
Title: Re: Quick Translation
Post by: sawz on December 08, 2011, 05:56:07 PM
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.
Title: Re: Quick Translation
Post by: Bugo on December 10, 2011, 01:12:34 AM
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 :(
Title: Re: Quick Translation
Post by: sawz on December 10, 2011, 05:33:24 AM
yeah thanks for that.  :o

o well, it seems lots of people aren't liking this. any chance it can work with bing?
Title: Re: Quick Translation
Post by: Bugo on December 10, 2011, 09:31:46 AM
Ok, I have made a new version by using other API. Try it now.
Title: Re: Quick Translation
Post by: Oscworth on December 10, 2011, 09:57:06 AM
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?

Title: Re: Quick Translation
Post by: Bugo on December 10, 2011, 11:48:07 AM
Unlikely.
Title: Re: Quick Translation
Post by: Oscworth on December 10, 2011, 02:46:32 PM
I'm actually liking the new way more now....

This version is great,  much more in this than the previous versions
Great work!

Thanks!
Title: Re: Quick Translation
Post by: Eclipse16V on December 10, 2011, 03:32:51 PM
Thank you
Great work!

Now, one way to tackle the link below for the IP and I'm happy.
Title: Re: Quick Translation
Post by: sawz on December 10, 2011, 03:45:19 PM
nice Bugo. thank you.  :D
Title: Re: Quick Translation
Post by: Bugo on December 10, 2011, 11:18:26 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.
Title: Re: Quick Translation
Post by: Oscworth on December 11, 2011, 08:59:05 AM
It just gets better & better   :D   Thanks again Bugo 

This should be included in the default SMF package it's just so useful.... ;)
Title: Re: Quick Translation
Post by: Robert. on December 11, 2011, 09:05:22 AM
Great work Bugo! :D
Title: Re: Quick Translation
Post by: BaghdadGhost on December 11, 2011, 05:36:40 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
Title: Re: Quick Translation
Post by: BaghdadGhost on December 11, 2011, 05:54:08 PM
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.
Title: Re: Quick Translation
Post by: Bugo on December 12, 2011, 01:55:02 AM
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.
Title: Re: Quick Translation
Post by: Tomy Tran on December 12, 2011, 03:56:12 AM
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
Title: Re: Quick Translation
Post by: 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/).
Title: Re: Quick Translation
Post by: BaghdadGhost on December 12, 2011, 04:22:48 AM
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.


Title: Re: Quick Translation
Post by: Eclipse16V on December 14, 2011, 03:57:53 AM
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="..."?
Title: Re: Quick Translation
Post by: BaghdadGhost on December 14, 2011, 06:17:44 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
Title: Re: Quick Translation
Post by: Bugo on December 14, 2011, 01:37:41 PM
How can I make the text of the button is gone and only appears as alt="..." and title="..."?
I don't know. Ask Google.

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.
Title: Re: Quick Translation
Post by: krash661 on December 23, 2011, 01:21:17 PM
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?
Title: Re: Quick Translation
Post by: krash661 on December 23, 2011, 02:13:05 PM
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?
Title: Re: Quick Translation
Post by: 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?

Title: Re: Quick Translation
Post by: krash661 on December 23, 2011, 02:35:34 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. "
Title: Re: Quick Translation
Post by: BaghdadGhost on December 23, 2011, 02:43:32 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

Title: Re: Quick Translation
Post by: krash661 on December 23, 2011, 02:53:37 PM
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??
Title: Re: Quick Translation
Post by: 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.

Title: Re: Quick Translation
Post by: krash661 on December 23, 2011, 03:04:15 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
Title: Re: Quick Translation
Post by: Bugo on December 23, 2011, 03:21:23 PM
Well, someone has to give you 0.5 version. I don't collect old versions.
Title: Re: Quick Translation
Post by: 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

Code: [Select]
// 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

Code: [Select]
// 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  :)
Title: Re: Quick Translation
Post by: krash661 on December 23, 2011, 03:24:57 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?
Title: Re: Quick Translation
Post by: 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.
Title: Re: Quick Translation
Post by: krash661 on December 23, 2011, 03:28:24 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

Code: [Select]
// 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

Code: [Select]
// 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?
Title: Re: Quick Translation
Post by: BaghdadGhost on December 23, 2011, 03:29:51 PM
do you use any FTP software at all?
Title: Re: Quick Translation
Post by: krash661 on December 23, 2011, 03:34:57 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
Title: Re: Quick Translation
Post by: krash661 on December 23, 2011, 03:36:05 PM
do you use any FTP software at all?
yes
Title: Re: Quick Translation
Post by: BaghdadGhost on December 23, 2011, 03:37:33 PM
check your personal messages
Title: Re: Quick Translation
Post by: krash661 on December 23, 2011, 04:22:15 PM
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.
Title: Re: Quick Translation
Post by: 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
Title: Re: Quick Translation
Post by: BaghdadGhost on January 02, 2012, 05:51:20 PM
Quote
and 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
Title: Re: Quick Translation
Post by: teos55 on January 02, 2012, 05:54:05 PM
 The clickable text "translate"  switches to "show original" ...
Title: Re: Quick Translation
Post by: BaghdadGhost on January 02, 2012, 06:07:15 PM
The clickable text "translate"  switches to "show original" ...

thanks but this does not mean it translates from english to original.


Title: Re: Quick Translation
Post by: teos55 on January 03, 2012, 03:38:30 AM
 Oooops sorry, misunderstood .  Yes you're right,  english text is not translated to original language. 
Title: Re: Quick Translation
Post by: Surferbird on January 08, 2012, 05:20:31 AM
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 :)
Title: Re: Quick Translation
Post by: teos55 on January 10, 2012, 04:11:26 AM
No reply yet ...

  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
Title: Re: Quick Translation
Post by: BaghdadGhost on January 10, 2012, 04:35:38 AM
No reply yet ...

  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.

Title: Re: Quick Translation
Post by: Surferbird on January 10, 2012, 03:01:07 PM
Author doesn't bader to reply, why?
Title: Re: Quick Translation
Post by: Bugo on January 10, 2012, 03:37:51 PM
Author wants to you read a description.
Title: Re: Quick Translation
Post by: Abavagada on January 13, 2012, 01:34:25 PM
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?

 
Title: Re: Quick Translation
Post by: OCJ on October 01, 2012, 11:31:05 AM
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
Title: Re: Quick Translation
Post by: Bugo on October 01, 2012, 11:39:42 AM
http://www.simplemachines.org/community/index.php?topic=405224.msg3226439#msg3226439
Just install New Hooks, then this mod.
The "translate" link doesn't displaying if translation is not needed.
Title: Re: Quick Translation
Post by: OCJ on October 01, 2012, 11:55:36 AM
Needed for what?

Quote
Description: 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.
Title: Re: Quick Translation
Post by: OCJ on October 01, 2012, 11:57:38 AM
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.

Title: Re: Quick Translation
Post by: Bugo on October 01, 2012, 12:21:01 PM
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.
Title: Re: Quick Translation
Post by: OCJ on October 01, 2012, 12:27:21 PM
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.


Quote
don't ask author to change something specially for you.

I did not ask you to change it - just to give proper mod descriptions.

Title: Re: Quick Translation
Post by: OCJ on October 03, 2012, 01:37:07 PM
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

Title: Re: Quick Translation
Post by: Rain Forest on October 04, 2012, 04:53:51 AM
Nice mod, thanks! :)
Title: Re: Quick Translation
Post by: Gryzor on March 10, 2013, 03:07:07 PM
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!
Title: Re: Quick Translation
Post by: Gryzor on March 13, 2013, 10:42:23 AM
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.
Title: Re: Quick Translation
Post by: Bugo on March 13, 2013, 12:41:54 PM
Ask Google about it :)
This mod uses Google Translator Toolkit API.
Title: Re: Quick Translation
Post by: Gryzor on March 13, 2013, 12:50:06 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...
Title: Re: Quick Translation
Post by: sangham.net on October 11, 2013, 12:39:33 AM
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?
Title: Re: Quick Translation
Post by: Arantor on October 11, 2013, 12:43:36 AM
That is a general feature offered by Google's translate engine.
Title: Re: Quick Translation
Post by: sangham.net on October 11, 2013, 12:54:32 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?
Title: Re: Quick Translation
Post by: Arantor on October 11, 2013, 01:10:56 AM
No, no, and no.

This mod integrates Google Translate into your site. Suggesting a better translation sends it to Google. Google provides the translations.
Title: Re: Quick Translation
Post by: sangham.net on October 11, 2013, 07:21:29 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.

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

Title: Re: Quick Translation
Post by: 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.
Title: Re: Quick Translation
Post by: xpubstargamingx on October 11, 2013, 12:14:17 PM
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/
Title: Re: Quick Translation
Post by: sangham.net on October 11, 2013, 12:28:37 PM
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.
Title: Re: Quick Translation
Post by: Arantor on October 11, 2013, 12:32:48 PM
Why would you? You're getting a service in exchange for an advert.
Title: Re: Quick Translation
Post by: sangham.net on October 11, 2013, 12:47:22 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.
Title: Re: Quick Translation
Post by: oroedel on January 02, 2015, 06:47:40 PM
this mod works with 2.0.9?
Title: Re: Quick Translation
Post by: sangham.net on April 23, 2015, 07:51:18 AM
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.
Title: Re: Quick Translation
Post by: sangham.net on April 24, 2015, 02:32:50 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?

Quote
Move 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?
Title: Re: Quick Translation
Post by: anakmacan on April 13, 2017, 10:20:49 PM
Where's the new hooks file? It's gone
Title: Re: Quick Translation
Post by: Dzonny on April 14, 2017, 06:49:39 AM
Where's the new hooks file? It's gone
http://dragomano.ru/lessons/add-custom-hooks/new_hooks.zip
:)
Title: Re: Quick Translation
Post by: huy1909hp on April 15, 2017, 11:23:39 AM
Code: [Select]
]]></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>
Title: Re: Quick Translation
Post by: Steve on April 15, 2017, 04:45:11 PM
What is that about?
Title: Re: Quick Translation
Post by: Tenebroso_MW on October 23, 2017, 08:47:30 PM
Hola!!!! Saludos.


Does anyone advise me how to make this mod work in addition to private messages? Any ideas?

Thanks
Title: Re: Quick Translation
Post by: 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:   
Code: [Select]
$user_lang = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) : $txt['lang_dictionary'];
Title: Re: Quick Translation
Post by: Rock Lee on March 12, 2018, 09:37:52 PM
Mark me error on line 118 ....... Does someone help me? Gracias




8: Undefined variable: txt

Sources/Subs-QT.php
Línea: 118



==>118:   
Code: [Select]
$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!
Title: Re: Quick Translation
Post by: Tenebroso_MW on March 13, 2018, 02:03:00 AM
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
Title: Re: Quick Translation
Post by: Rock Lee on March 13, 2018, 07:24:08 AM
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!
Title: Re: Quick Translation
Post by: Bugo on March 15, 2018, 01:46:22 AM
Mark me error on line 118 ....... Does someone help me? Gracias
Fixed. See new version ;)
Title: Re: Quick Translation
Post by: Rock Lee on March 15, 2018, 01:28:26 PM
Fixed. See new version ;)

I also great just needed to use ;D in passing I leave the translations in Latin Spanish.

Regards!
Title: Re: Quick Translation
Post by: Tenebroso_MW on March 15, 2018, 06:11:55 PM
Thanks Bugo, thanks Rock


Rock Lee, the Bugo file is unclosed ?> ..................

This MOD is a wonder. Thanks for sharing.
Title: Re: Quick Translation
Post by: Rock Lee on March 15, 2018, 07:21:55 PM
Rock Lee, the Bugo file is unclosed ?> ..................

I think they are not closed, I always close them by reflex!


Regards!
Title: Re: Quick Translation
Post by: Tenebroso_MW on March 15, 2018, 08:17:51 PM
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?
Title: Re: Quick Translation
Post by: Rock Lee on March 15, 2018, 08:33:05 PM
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.
Title: Re: Quick Translation
Post by: Tenebroso_MW on March 15, 2018, 08:42:48 PM
I have it solved. Therefore only words of gratitude for the author of the MOD and to you, for your contribution.


Tenebroso
 Saludos
Title: Re: Quick Translation
Post by: shadav on August 20, 2019, 03:52:01 PM
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