PHP Classes

File: translated.html

Recommend this page to a friend!
  Classes of adriano ghezzi   PHP Yandex Translate API Wrapper   translated.html   Download  
File: translated.html
Role: Auxiliary data
Content type: text/plain
Description: translate example
Class: PHP Yandex Translate API Wrapper
Translate text between languages using Yandex API
Author: By
Last change:
Date: 7 years ago
Size: 1,337 bytes
 

Contents

Class file image Download
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <a href="/"> <button class="btn-primary pull-left"> back </button> </a> <br> <?php if(!$result){?> <div class="row"> <p class="text-danger"> <?php print "Error $msg";?> </p> </div> <br> <?php }?> <div class="row col-md-6"> <p> <?php print "source language is $source";?> </p> <p> <?php print "destination language is $source";?> </p> <div class="panel panel-default"> <div class="panel-heading">requested text</div> <div class="panel-body"> <?php print $text;?> </div> </div> <div class="panel panel-default"> <div class="panel-heading">text translated</div> <div class="panel-body"> <?php print $translatedText;?> </div> </div> </div> </body> </html>