News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

BabelfishTranslate

Started by JayBachatero, July 17, 2006, 12:56:59 PM

Previous topic - Next topic

JayBachatero

Link to Mod
Review this Mod

This mod will add a dropdown menu with a list of languages that you can translate the website to using Babelfish services.

Known Issues
* You can only translate one way.  Once you translate from y to x you can't go to x to y.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Gobo

Hi Jay

i was wondering about something. Ive been using Babelfish for my HTML file for a long time now but when I tried to use it on SMf a while back it wouldnt work and the user would get logged out once page translated.

So I was wondering how you resolved that issue?

PS: I havent tried it out yet, just curious

JayBachatero

I looked into it and couldn't find a way to solve the problem.  Another problem is that if you translate to lets say English -> Spanigh you can translate again.  Babefish modifies the form so I couldn't find a way around it.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Gobo

Yes its the same thing I experienced

However its a very useful tool all the same since even though my forum is in English mainly I have audiences from all around coming to read the articles in whatever broken up translation is available.

Very useful if someone wants to cater to wider audiences.


URPG

#4
Thanks for wrapping -this- i've written into a neath package. Now we simply need to solve the re-translation trouble... could we enter a line to check if the babel-fish url is already contained?

JayBachatero

I'll have to look into it.  The problem is that babelfish add the stuff AFTER the page is loaded.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

samurai-lupin

I've installed the BabelfishTranslate Mod and love it. However I wanted to place it in the upper right corner of my forum (next to the PM info) in a new column.

However when I added a new colum and placed in the code (babelfishTranslate();), it would only display babelfishTranslate(); on the board but not the input field & button. What code would I need to enter to make it appear properly?

Thank you all for your thoughts and advice!


</select>
<input type="submit" value="', $txt[34], '" /><br />
<span class="middletext">', $txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}

echo '

</td>

###Bablefish would need to go here####

</tr>
</table>
</td>
</tr>
</table>';

JayBachatero

Add this

';
babelfishTranslate();
echo '
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

samurai-lupin


URPG

Any modifications that need to be done for RC3?

JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Witte

Hi, I installed this on 1.1 final, and this is the error I get : Session verification failed. Please try logging out and back in again, and then try again.

Tried logging in and out, made no difference, also tried altering the database session driven option, no difference...Would be fantastic if this got working, it's a great mod...

Witte

can this be done by adding   sesc=' , $context['session_id'] , ' to the url in Subs.php?

valamir

I like the concept and would love to use it, but could you please make a .zip download link?

Witte

#14
Quote from: valamir on December 12, 2006, 04:29:09 PM
I like the concept and would love to use it, but could you please make a .zip download link?

I had the same problem, but just unpack the tar.gz with winrar or whatever, it thro's an error, but look in the folder created and all is well...

Then just re zip it yourself with winzip...

[edit] this can both be done with either winzip OR winrar I would say...but I do as I just stated with the .gz mods, they all seem to be corrupted, but when you unzip them and rezip them they are ok...

PLAYBOY

PLEASE MAKE IT FOR RC3 1.1 - I SO MUCH NEED THIS MOD thank you...

starsong

OK what templete in a theme mod do the modifications go on? Plus what do I add to make teh translater button at the top of the page?
Ty so much,

Jodi

JayBachatero

starsong index.template.php

playboy - it should work in 1.1.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

starsong

Quote from: JayBachatero on January 01, 2007, 10:48:05 PM
starsong index.template.php


Hmm I must not be adding it in teh right place or the right thing

I added it at the ned....
//Show the babelfish translate
   babelfishTranslate();

is that right? This is for a modified theme

JayBachatero

yes add it after the footer.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Advertisement: