File: detected.html

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

Contents

Class file image Download
<!DOCTYPE html>
<html lang="en">
<head>
    <title>language detection</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>
       source text
        <textarea>
            <?php print $text;?>
        </textarea>
    </p>
    <p>
        <div class="well">
        detected language : <?php print $lang;?>
    </div>
</div>
</body>
</html>
For more information send a message to info at phpclasses dot org.