Announcement

Collapse
No announcement yet.

Translation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Translation

    Well someone requested this as a hack, but it ended up being a template modification so it's here.

    Anyway, what this does is adding a drop down menu with a list of languages, and you just select one and the thread will be translates.

    The install this, add the following HTML code:
    Code:
    	<td align="center"><table cellpadding="0" cellspacing="0" border="0"><tr><td><smallfont><b>Translate Thread:</b><br>
    	<select name="lang" onchange="window.location=('http://fets3.freetranslation.com:5081/?Url=path_to_forums%2Fshowthread.php%3Fs%3D%26threadid%3D$threadid&Sequence=core&Language='+this.options[this.selectedIndex].value)">
    		<option value="-1" selected>Please select direction:</option>
    		<option value="English/Spanish">English to Spanish</option>
    		<option value="English/French">English to French</option>
    		<option value="English/German">English to German</option>
    		<option value="English/Italian">English to Italian</option>
    		<option value="English/Norwegian">English to Norwegian</option>
    		<option value="English/Portuguese">English to Portuguese</option>
    		<option value="Spanish/English">Spanish to English</option>
    		<option value="French/English">French to English</option>
    		<option value="German/English">German to English</option>
    		<option value="Italian/English">Italian to English</option>
    		<option value="Portuguese/English">Portuguese to English</option>
    	</select></smallfont></td></tr></table></td>
    right before this:
    Code:
    	<td align="center">$adminoptions</td>
    in your showthread template.

    You only need to change the red part, like this. If the forum is at http://www.vbulletin.com/forum you need to replace the red part with "www.vbulletin.com%2Fforum" (you drop the http:// and change / into %2F as you can see!).

    That's it.
    Last edited by Chen; Tue 18th Dec '01, 6:15am.
    Chen Avinadav
    Better to remain silent and be thought a fool than to speak out and remove all doubt.

    גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

  • #2
    any demos ???
    :: Always Back Up Forum Database + Attachments BEFORE upgrading !
    :: Nginx SPDY SSL - World Flags Demo [video results]
    :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

    Comment


    • #3
      vBulletin.org has this.
      Chen Avinadav
      Better to remain silent and be thought a fool than to speak out and remove all doubt.

      גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

      Comment


      • #4
        Originally posted by FireFly
        vBulletin.org has this.
        goes off to take a look
        :: Always Back Up Forum Database + Attachments BEFORE upgrading !
        :: Nginx SPDY SSL - World Flags Demo [video results]
        :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

        Comment


        • #5
          Great. Thnx Firefly

          Comment


          • #6
            I can't get this to work at my site ... it's not reading the cookie. Upon choosing a language it takes me to a translated log-in page. What am I missing?

            www.total-impact.com
            Liquid Layout = Less Ad Revenue?
            How to Monetize Your Site

            More features does NOT equal progress (Less is More)

            Administrator:
            vBulletin.org - #1 Community for vBulletin Modifications
            allnurses.com - #1 Community for Nurses

            Comment


            • #7
              Yeah I should've mentioned that side effect.
              You can't use the translator for threads that require you to be logged-in.

              This is because of the way it really works. Once you select a language, the translator (located somewhere on their servers) is literally visiting that thread, reads it and outputs the translation.
              Problem is, the translator isn't logged-in when reading the thread, so the thread will look like as if you were a guest.
              Chen Avinadav
              Better to remain silent and be thought a fool than to speak out and remove all doubt.

              גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

              Comment


              • #8
                hah, I figured that ... I was hoping for a better answer. thank you
                Liquid Layout = Less Ad Revenue?
                How to Monetize Your Site

                More features does NOT equal progress (Less is More)

                Administrator:
                vBulletin.org - #1 Community for vBulletin Modifications
                allnurses.com - #1 Community for Nurses

                Comment


                • #9
                  HAHA.. Well.. its good..

                  Comment


                  • #10
                    Thx, wondered when you would release this.
                    Email: [email protected]
                    Site: Under Construction

                    Comment


                    • #11
                      Wish there was a way to make it work in all the forums but it's still a GREAT piece of code for public stuff. Thank you!!!
                      www.web-dj.net/
                      Web-DJ┬║NET -
                      Small Business and e-Commerce
                      Design and Hosting

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...
                      X