Skip to content

Commit

Permalink
issue 64 - adding links to translations by google and bing
Browse files Browse the repository at this point in the history
  • Loading branch information
tx2z committed May 17, 2013
1 parent a1e7237 commit 52aae75
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions web/classes/Transvision/ShowResults.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,19 @@ public static function resultsTable($searchResults, $recherche, $locale1, $local
<td dir='{$direction1}'>
<div class='string'>
<a href='http://translate.google.com/#{$locale1ShortCode}/{$locale2ShortCode}/"
. urlencode(strip_tags($sourceString))
. "'>{$sourceString}</a>
{$sourceString}
</div>
<div dir='ltr' class='infos'>
<a class='source_link' href='{$locale1Path}'>
&lt;source&gt;
</a>
<span>Translate with:</span>
<a href='http://translate.google.com/#{$locale1ShortCode}/{$locale2ShortCode}/"
. urlencode(strip_tags($sourceString))
. "' target='_blank'>Google</a>
<a href='http://www.bing.com/translator/?from={$locale1ShortCode}&to={$locale2ShortCode}&text="
. urlencode(strip_tags($sourceString))
. "' target='_blank'>BING</a>
</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion web/style/new_glossary.css
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ td div.infos {
text-align:right;
margin-top:4px;
}
td div.infos a {
td div.infos a, td div.infos span {
float:left;
margin-right: 5px;
}
Expand Down

0 comments on commit 52aae75

Please sign in to comment.