Your Website - viewed by your customers in their preferred language


Hook Up

Add this ONE LINE of code to the bottom of each page you want attached to us
<script src='https://api.onelinetomarket.com/'></script>

Set Up Your Options Needed

In your Back Office

Call us!

We convert the following:
  • PDF Converter
  • WORD Converter
  • CSV Converter
  • PPT Converter
  • ODP Converter
  • XLS Converter
  • XML Converter
  • DOCX Converter
  • ODS Converter
  • RTF Converter
  • DOC Converter
  • PPTX Converter
  • XLS Converter
  • ODT Converter
  • XLSX Converter
  • TEXT Converter
  • TXT Converter

Not Translate

If you do not want a phrase ( or page ) translated, surround that text with: <!-- NOtr --> .... <!-- NOtrEND -->

Customize Flags Placement

We place Flags ( the ability of YOUR users to see YOUR webpage in THEIR language) at the bottom of THE FIRST PAGE
To customize the location of ther Flags, place this where you want the flags to show:
<div id="trFlags"></div>

Javascript or JQuery edits required

The browser is activated before Jit-TR, meaning that all Javascript is loaded and cannot change
You need to create "hidden divs" and use innerHTML

       <!-- Constants used elsewhere -->
       <div style="display:none">
         <div id="success">Success</div>
         <div id="fail">Oops!</div>
       </div>
       <script>alert( document.getElementById("success").innerHTML )</script>
       <script>alert( $("#fail").htm() )</script>

JQuery edits required

Add translate.snippet - valid html only
$.post({url:"YOUR_AJAX_FILE" ...
   success:function(data) {
     $("#demo").html(data);
   }
)
             
$.post({url:"YOUR_AJAX_FILE" ...
   success:function(data) {
     translate.snippet(data,(translated) => {
        $("#demo").html( translated );
     }
   }
)
             


$html_message = array("message"=>'<h1>This is the email message</h1><div syle="color:red">Hello</div>');

   $ch = curl_init();
    curl_setopt( $ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1" );
    curl_setopt( $ch, CURLOPT_URL, <TRANSLATION URL> );
    curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
    curl_setopt( $ch, CURLOPT_ENCODING, "" );
    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
    curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
    curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
    curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 5 );
    curl_setopt( $ch, CURLOPT_TIMEOUT, 5 );
    curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
$headers = [
    "Origin: <YOUR SERVER NAME>"
    "Code: <YOUR ACCOUNT 16-digit access code>"
];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($html_message));

$content = curl_exec( $ch );
$response = curl_getinfo( $ch );
  print_r($response);

curl_close ( $ch );

------------------------------------------------------------------------------------

Send the $response  information as the message body
                OR
Send it - in addition to - the original maeesage created

Hire us to create the imap routines - or 
download and implement the code at:

https://github.com/SSilence/php-imap-client

*************
THIS MODULE ASSUMES THAT:
   the user enters information in the language of the web page
------ for example, if the language flag is Spanish, the content entered is Spanish
*************
1. Create a form  where the user enters content.
   make sure that the form has these features - choose your own id
      • maximum number of words to generate
      • audience
      • tone
2. Create an onclick button that executes a Javascript function
3. Add our "translate.create_ai" components
       • if you place "translate.create_ai" inside your function, it will be easier to debug
       • the info=>{} section adds the generated data 
 --------------------------------------------
<script>
function change() {   // starts your function 

    $('#btn').hide();           // # = id of onclick button - do not allow accidental regeneration

    translate.create_ai(
           $('#typ').val(),     // # = id where the audience type is located
           $('#siz').val(),     // # = id where the maximimum number of words is located
           $('#tone').val(),    // # = id where the message tone  is located
           $('#msg').val(),     // # = id where the information is placed for AI to create content
           info=>{$('#msg').val(info);                   // # = id where AI content is placed
                  $("#msg").css("background","#fff2cc")  // optional - for dramatic effect
                 }) 
 

        );            // ends your function
}
</script>


<form>
 <div>
    <textarea id="msg" readonly style="width: 90%; height: 30rem; overflow: auto; margin: 1rem; padding: 1rem; border: 1px solid black">
                Content user places inside this area
    </textarea>

    Use this information to generate
      <select id="siz">
          <option value="500">500</option>
          <option value="1000">1000</option>
          <option value="auto">auto</option>
      </select>
    words for
      <select id="typ">
          <option value="Blog">Blog</option<>
          <option value="Social Media">Generic Social Media</option<>
          <optgroup label=" --- ">
          <option value="Facebook">Facebook</option<>
          <option value="Google Business Messages">Google Business Messages</option<>
          <option value="Instagram">Instagram</option<>
          <option value="Line">Line</option<>
          <option value="LinkedIn">LinkedIn</option<>
          <option value="Pinterest">Pinterest</option<>
          <option value="Reddit">Reddit</option<>
          <option value="Snapchat">Snapchat</option<>
          <option value="Telegram">Telegram</option<>
          <option value="TikTok">TikTok</option<>
          <option value="Tumblr">Tumblr</option<>
          <option value="Twitter">Twitter</option<>
          <option value="Viber">Viber</option<>
          <option value="WeChat">WeChat</option<>
          <option value="WhatsApp">WhatsApp</option<>
          </optgroup>
      </select>
    in this tone:
      <select id="tone">
          <option value="Casual">Engaging  on a friendly level</option>
          <option value="Conversational">Encouraging interaction and dialogue</option>
          <option value="Humorous">Engaging humor or wit</option>
          <option value="Professional">Business-related or official communication</option>
          <option value="Informative">Providing information or insights</option>
          <option value="Inspirational">Inspiring and motivational</option>
          <option value="Authoritative">Establish credibility and expertise</option>
          <option value="Empathetic">Empathizes with the audience's feelings or challenges</option>
          <option value="Bold">Strong statements or calls to action</option>
      </select>

      <input id="btn" type="button" onclick="change()" value="Go">
 </div>
</form>

Bonjour