Go Back   Pligg Forum > Pligg Development > Pligg Mods
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-14-2007, 04:07 PM
chuckroast's Avatar
chuckroast chuckroast is offline
Pligg Developer
Pligg Version: 9.9
Pligg Template: Summerfest
 
Join Date: Jun 2006
Location: PA
Posts: 2,108
Downloads: 48
Uploads: 18
Thanks: 157
Thanked 412 Times in 254 Posts
New Mod :Instant Language Translation

This little script/hack will allow readers from other countries to read the submitted story in their own language.

This means a site owner can now gain new audiences.

It currently translates the following.

English to Spanish
English to German
English to Russian
English to Italian
English to French
English to Chinese


If you like this module please consider making a donation to the author. (that's me!)



--------Installation instructions.. ---------

Download and unpack the files.
Upload the images contained in the images folder to your template/images folder.
Open link_summary.tpl in your templates folder and add the included code in translate.txt to the bottom of link_summary.tpl (copy and paste)
Save your addition to link_summary.tpl and upload it back to yor server.
Done!

If you would like a customized language translation script. The cost is $20.00 Private MSG me for details.

ENJOY!
Attached Files
File Type: rar pligg_translate_mod.rar (4.3 KB, 449 views - Who Downloaded?)
File Type: zip pligg_translate_mod.zip (4.9 KB, 52 views - Who Downloaded?)
__________________
Visit PliggPro the official Pligg Mods & Template Shop!


Last edited by AshDigg : 04-14-2007 at 04:29 PM.
Reply With Quote
The Following 5 Users Say Thank You to chuckroast For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 04-14-2007, 04:30 PM
AshDigg's Avatar
AshDigg AshDigg is offline
Mayor of PliggVille
 
Join Date: Dec 2005
Posts: 1,623
Downloads: 34
Uploads: 10
Thanks: 237
Thanked 346 Times in 207 Posts
Very cool. Do you have a demo site?

I added a .ZIP (even though RAR is bestest)
__________________
- Ash
Reply With Quote
  #3 (permalink)  
Old 04-14-2007, 05:29 PM
Geoserv Geoserv is offline
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 854
Downloads: 60
Uploads: 0
Thanks: 75
Thanked 49 Times in 45 Posts
Is there a similar mod to translate your entire pligg site with one click?

Geoserv
Reply With Quote
  #4 (permalink)  
Old 04-14-2007, 05:37 PM
chuckroast's Avatar
chuckroast chuckroast is offline
Pligg Developer
Pligg Version: 9.9
Pligg Template: Summerfest
 
Join Date: Jun 2006
Location: PA
Posts: 2,108
Downloads: 48
Uploads: 18
Thanks: 157
Thanked 412 Times in 254 Posts
Quote:
Is there a similar mod to translate your entire pligg site with one click?

Actually you could removes all {$story_url} from the code and paste it all into your sidebar.tpl
__________________
Visit PliggPro the official Pligg Mods & Template Shop!


Last edited by chuckroast : 04-14-2007 at 05:57 PM.
Reply With Quote
  #5 (permalink)  
Old 04-14-2007, 08:24 PM
Geoserv Geoserv is offline
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 854
Downloads: 60
Uploads: 0
Thanks: 75
Thanked 49 Times in 45 Posts
Perfect works like a charm.

Heres the code I used to get the translation go sitewide:

Quote:
<font size="1">Translate:&nbsp;
<a href="http://translate.google.com/translate?u={$my_base_url}&langpair=en|es&hl=en&ie =UTF-8&oe=UTF-8&prev=/language_tools">
<img src="{$my_pligg_base}/templates/{$the_template}/images/spanish.png" align="absmiddle"></a> <a

href="http://translate.google.com/translate?u={$my_base_url}&langpair=en|es&hl=en&ie =UTF-8&oe=UTF-8&prev=/language_tools">Spa

nish</a> |
<a

href="http://translate.google.com/translate?u={$my_base_url}&langpair=en%7Cde&hl=en& ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools"

><img src="{$my_pligg_base}/templates/{$the_template}/images/german.png" align="absmiddle"><a/> <a

href="http://translate.google.com/translate?u={$my_base_url}&langpair=en%7Cde&hl=en& ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools"

>German</a> |
<a

href="http://translate.google.com/translate?u={$my_base_url}&langpair=en%7Cru&hl=en& ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools"

><img src="{$my_pligg_base}/templates/{$the_template}/images/russian.png" align="absmiddle"><a/> <a

href="http://translate.google.com/translate?u={$my_base_url}&langpair=en%7Cru&hl=en& ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools"

>Russian</a> |
<a

href="http://translate.google.com/translate?u={$my_base_url}&langpair=en%7Cit&hl=en& ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools"

><img src="{$my_pligg_base}/templates/{$the_template}/images/itialian.png" align="absmiddle"></a> <a

href="http://translate.google.com/translate?u={$my_base_url}&langpair=en%7Cit&hl=en& ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools"

>Italian </a> |
<a

href="http://translate.google.com/translate?u={$my_base_url}&langpair=en%7Cfr&hl=en& ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools"

><img src="{$my_pligg_base}/templates/{$the_template}/images/french.png" align="absmiddle"></a> <a

href="http://translate.google.com/translate?u={$my_base_url}&langpair=en%7Cfr&hl=en& ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools"

>French</a> |
<a

href="http://translate.google.com/translate?u={$my_base_url}&langpair=en%7Czh-TW&hl=en&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_too

ls"><img src="{$my_pligg_base}/templates/{$the_template}/images/chinese.png" align="absmiddle"></a> <a

href="http://translate.google.com/translate?u={$my_base_url}&langpair=en%7Czh-TW&hl=en&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_too

ls">Chinese</a> |</p></font>
Thanks for the mod.

Working sample of sitewide translation with links in sidebar:

http://www.newsdots.com

Geoserv
Reply With Quote
  #6 (permalink)  
Old 04-14-2007, 08:25 PM
Geoserv Geoserv is offline
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 854
Downloads: 60
Uploads: 0
Thanks: 75
Thanked 49 Times in 45 Posts
Any idea how to make it to when it gets translated, the Google Frame gets automatically broken, its an option you have currently after it is translated.

Geoserv.
Reply With Quote
  #7 (permalink)  
Old 04-14-2007, 08:29 PM
Geoserv Geoserv is offline
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 854
Downloads: 60
Uploads: 0
Thanks: 75
Thanked 49 Times in 45 Posts
I noticed that when it translates, the main navigation gets translated to either the pligg name value or something.

It takes:

Quote:
<li id="navhome"><a href="{$my_base_url}{$my_pligg_base}" class="main"><span>{#PLIGG_Visual_Home#}</span><p style="font-size:10px; padding: 5px:">Spot the Dots</p></a></li>
My pligg base is News Dots, and translates into "Home", how can I fix the code so it actually trranslates News Dots? It doesn't translate "Spot the Dots" at all.


I figured out the part about translating in to home, I somehow changed the pligg value, but it still doesn't trrnaslate the "Spot the Dots" part.

Geoserv.

Last edited by Geoserv : 04-14-2007 at 08:37 PM.
Reply With Quote
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
6.1 after Modify Language ,textCode Chaos pptuu General Help 8 06-23-2007 09:25 AM
Language Files Templora General Help 1 12-27-2006 04:28 PM
Better for translation gandalfzoro Retired Threads 0 12-14-2006 05:22 AM
Language variables reverted to defaults ! revolver General Help 3 11-10-2006 02:56 PM
Chinese Simplified language supported!!! networm Core Development 3 08-11-2006 03:36 PM


LinkBacks Enabled by vBSEO 3.0.0