Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6.x > Mods and Customizations

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-03-2011, 09:11 PM
teryakisan teryakisan is offline
Member
 
Join Date: Jun 2011
Location: Beaumont, Tx
Posts: 141
Send a message via AIM to teryakisan Send a message via Yahoo to teryakisan Send a message via Skype™ to teryakisan
Lightbulb [ADDON] Internal Translation

Sometimes we get tickets in languages other than English. To assist with this, I have added a translation widget to the back-end for the staff. Thanks to FreeTranslation.com for the neat widget.

In include/staff/viewticket.inc.php

before the very last </div> tag add this code...
PHP Code:
<div id="Translate" class="tabbertab"  align="left">
 <
h2>Translate</h2>
<
center><script src="http://www.freetranslation.com/text-translator/?width=450"></script></center>
</div>
</div> 
This will add a tab to the bottom of the viewticket page that says "Translate". Staff can click the tab and paste in the foreign text for translation.

I think it would be neat if there were a button on each message that will automagically paste the contents of the message to the translation box. I'll work on that next.

Reply With Quote
  #2  
Old 09-15-2011, 03:42 AM
jaapie jaapie is offline
Junior Member
 
Join Date: Mar 2011
Posts: 9
Smile

Cool widget !!

Cannot wait untill you add the "auto paste " text...!!

Nice addon, check this text2speech widget (just for fun):

<div id="Translate" class="tabbertab" align="left">
<h2>Text2speech</h2>
<center><script type="text/javascript" src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js"></script><script type="text/javascript">if (WIDGETBOX) WIDGETBOX.renderWidget('80a27d03-f400-404a-aea3-2dc62dd0e5dc');</script></center>
</div>


Attached Images
File Type: jpg text2 speech.jpg (36.0 KB, 12 views)

Last edited by jaapie; 09-15-2011 at 03:46 AM.
Reply With Quote
  #3  
Old 10-15-2011, 06:02 PM
Gibbc Gibbc is offline
Junior Member
 
Join Date: Feb 2011
Posts: 17
Default google

Quote:
Originally Posted by teryakisan View Post
Sometimes we get tickets in languages other than English. To assist with this, I have added a translation widget to the back-end for the staff. Thanks to FreeTranslation.com for the neat widget.

In include/staff/viewticket.inc.php

before the very last </div> tag add this code...
PHP Code:
<div id="Translate" class="tabbertab"  align="left">
 <
h2>Translate</h2>
<
center><script src="http://www.freetranslation.com/text-translator/?width=450"></script></center>
</div>
</div> 
This will add a tab to the bottom of the viewticket page that says "Translate". Staff can click the tab and paste in the foreign text for translation.

I think it would be neat if there were a button on each message that will automagically paste the contents of the message to the translation box. I'll work on that next.

this works well for me but is there any way to use googles translate API ???
Reply With Quote


Reply

Bookmarks

Tags
internal, translate

Thread Tools Search this Thread
Search this Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:45 AM.