55 comments found

Helllo I have a page that has fix text and variable text that the user enters and is stored on the database. I want to include a flag icon that when the user clicking on it will translate the whole page, both the fix text and the text coming from the database

Can i do this with your script?

Thanks

Welego

Hello costainternet,

Sorry for the delay due to weekend. TranslateIT, translates only plain text. That’s why if it contains HTML , it will strip HTML out. I’m still planing to create a new version with a bit of HTML support. However I had to finish my website first before adding or updating any item so I could provide better support.

Considering there is no HTML support, you could send just plain texts, translate them and put them in the right place.

If you are thinking the way Google Translate translates the whole page, unfortunately it doesn’t work this way.

Let me know if you have any questions regarding to TranslateIT.

Hello i have a question before buy, i just read goggle remove the translation wrapper, tuis tool still work?

Welego

Hello mcarrocera,

This class is not using Google Translate. It is working, you can check the demo out.

D-Tales Purchased

I can say it´s working 100% ! :)

Welego

Thank you for your feedback D-Tales

Hy, any update on html tags? I will buy it if it wont strip my

and tags.

Welego

Hello PSmolicM,

I really couldn’t decide about HTML tags. If I were to use DOM and get the texts from HTML elements and translate them, the script’s size and work would be much bigger than it is right now thus it will make this script not a lightweight anymore.

My aim is to keep the script lightweight. However the translation service is stripping HTML tags. That’s why if I would like to keep HTML tags, it would mean the script won’t be a lightweight one anymore.

Default-user

I have an idea, what do you think would it work if i replace all html tags with utf chars witch would newer be typed in like æ and after translation replace those chars back to html tags? I would use only few tags so i don’t think it would be a problem.

Welego

Well replacing might work or just sending the text in a html tag. However if the string has nested HTML elements it might be a problem for you to replace.

I’m currently working with 5 select box. So when I send the form the selects return with the default values. Is there any way to work with ajax?

Anyway, it’s a very nice script! Working 100%!

Thanks.

Welego

Hello thiagomatsunaga,

Firstly thank you for your purchase. You can send the data via post or get method with ajax and then get the results and add / replace them on your page.

Simply, yes it is possible to work with ajax!

Once again thank you for your purchase and your opinion about Translate It.

P.S. Please don’t forget to rate it :)

I wish you best of luck with your project.

Default-user

Thanks Pixalax. I’ll make some experiments.

I’m not an JS expert, so, if a have some trouble can I ask you for some examples?

Thanks in advance.

Welego

Hello thiagomatsunaga,

Sure, just e-mail me from my profile page. I will send you a simple ajax example with Translate It. Comment section is not good for providing examples.

I wish you best of luck with your project.

dp40oz Purchased

Hey I got the download but the ZIP file is password protected and I didn’t receive a password. How do I get the password?

Default-user
dp40oz Purchased

Tried downloading about 15 times. Tried 3 separate computers and a web server. None of them can unzip the file. I contacted Envato support and they said to contact the author. As you can see I purchased the product. Can you just send me the script through email please.

Default-user
dp40oz Purchased

Figured it out. The ZIP’s delivered get corrupted when downloaded by Mac’s. Leave it to a tech/coding website to have the only ZIPs not Mac compatible. Its all good now though.

Welego

Hello dp40ox,

I’m glad you have sorted the problem out. Unfortunately I have to ZIP the files, that’s the rule on Envato while submitting an item for review. I’m not a Mac user so I truly didn’t know about it.

Please let me know if you need any help with the item.

P.S. It would be much faster (and better) if you would contact me with sending me an e-mail through my profile page.

I wish you best of luck with your project.

Hi, is there any way to change the API to Google Translate API? This current translate API doesn’t work really good. (Still worth it as it’s FREE) like for example it translates “apa kabar”(indonesian) to english “hongkong translation Indonesis” instead “how are you” , so it’s completely wrong. thanks in advance for the respond.

Welego

Hello freemanfunky,

There should be some differences but it shouldn’t take much time to convert it to Google Translate API with pretty much the same features.

Did you try it with Human Translation? I found it better than machine translation.

I must say I found the quality of Translate API pretty good. However they are not Google so they might not be able to focus on all the languages yet.

Hi, I have bought your script and is already more than a year ago. My problem is that the format of the text after translation is completely gone. The translater print everything behind each other like new lines, linefeeds etc. Please let me know how this can be solved. Thanks in advance!

Welego

Hello ramallard

Unfortunately this problem caused by the API. It strips all formatting (HTML characters) and accepts only texts.

However if your only problem is to keep newlines, that’s relatively easy;

1. Explode your string with using new line character delimiter.

2. Translate each array item one by one and put the translated text in a string together with your new lines.

This should do the trick. Let me give you an example;

// Our String With New Line
$string = 'This is a test <br /> This text is in new line';
// Explode String
$string = explode('<br />',$string);

if ($string) {
   // Initiate Translate It Class
   require_once('translateit.class.php');
   $config = array('logDir'=>'logs/');
   $translate = new translateIt('cache/', $config);
  // Create an array for translated strings.
  $translatedString = array();
  // Loop String array
  foreach ($string as $str) {
    // Add to Translated Strings array.
    $translatedString[] = $translateIt->translate('en', 'de', $str);
  }

  // Loop Translated String and Format The New Lines
  $outPut = '';
  foreach ($translatedString as $string) {
    $outPut .= $string.'<br />';
  }

  // Clear the Last <br /> from string and echo it
  echo rtrim($outPut,'<br />');

}

I don’t know when or if Translated API will allow any HTML. I hope the example above helps you. You can use the same or similar logic for your such needs.

Default-user

Thanks a lot for the support. I will try to do it like that:-)

Welego

My pleasure ramallard.

I wish you best of luck with your project.

Hi Pixalax, I have unfortunatly a new problem. I downloaded the latest version which is not working with Google anymore. Problem now is that the translation from a few phrases English to Dutch take 10 seconds around. That is ofcourse way too long. Do you have an idea what can be wrong? Thanks so much in advance!

Welego

Hello ramallard

I didn’t understand what you mean by “not working with Google” This script is not using Google Translate. It never used.

I suggest you to use cache. Depending on how many new lines you have, it will send the text and wait for translation of each array element. This will take longer time than just sending one text.

Of course it is also related to connection speed between your server and translate API servers.

Maybe you can e-mail me your link and explain the problem so I can check it out and try to help you out?

daguru Purchased

I get only: MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATION FOR TODAY. CONTACT ALBERTO@TRANSLATED.NET TO TRANSLATE MORE

Welego

Hello daguru,

Please make it sure that your cache folder is writable and cache files are already there.

After getting your API keys (don’t use the defaults) here are the daily limits;

  1. Max. 500 character limit. Pretty much just one long sentence.
  2. You can send 1000 requests per day. Pretty much clicking translate button 1000 times. Of course that is considering for each click you don’t translate more than 500 characters. Lets say if each time you translate 501 words, it will send 2 requests and you can only click 500 times.

I hope this helps. Alternatively you can send me an e-mail from my profile.

If you think you don’t translate that much, please send me e-mail and let’s check your usage logs together.

Default-user
daguru Purchased

Thanx for your answer!

...but where i paste the api key in the class?

Welego

API key for Translated.net is not mandatory. However I still added it to 1.4.2. Just in case in the future it will become mandatory. I will be submitting it later.

If you can e-mail me from my profile, I can send you the file so you don’t have to wait.

Morning is possible to translate a whole article? And it works with HTML

Welego

Hello tectonny,

Unfortunately it doesn’t work with HTML. The API is stripping all HTML tags.

hello this translate the entire site? and folders?

ty

Welego

Hello fotografo123,

It just translates texts that you provide. It doesn’t translate an entire website and / or folders. However if you would like, you can modify it to suit your needs (if you have enough knowledge). It is just a PHP Class.

I wish you best of luck with your projects.

Best regards,

can the form be modified to highlight all languages and output all translation at 1 go?

Welego

Hello moneymachine,

If I understood you correctly, you would like to translate whatever is typed to all available languages and display each translation with one click.

If so, my answer is; Yes this can be done. However, Translate API has some limitations and I can’t guarantee the limitations of free API would fit your needs for the future as well as I am have no relation with Translate API or the company in question.

I wish you best of luck with your projects.

Best regards,

arikin Purchased

Works as advertised! :) A way to edit and backup the cache files would be a good addition. I want to cleanup common phrases to provide better results. A much better alternative to google’s “test for us and then let us bill you for using it” strategy. :-(

Welego

Hello arikin,

Thank you for your purchase and your comment. I have few things on the to-do-list with other projects at the moment. When I get some free time, I will keep it in mind to update it with the features you need.

conexur Purchased

Hi: I already bought your script but before putting this on work I need to know if it can take more than 50,000 translation a day, using the ip of the users.

Thanks.

Welego

Hello conexur,

Unfortunately Translated API decreased free usage limits over time. I believe 50.000 requests will be too high for the current free usage limitations.

Considering the paid alternative is Google, I’m guessing you would like a free option. At the moment I don’t know any free service which could fit your needs.

Even if the limits wouldn’t be an issue, I would recommend few modifications for your needs. If you are planning to use cache feature (this way you would send less translation requests) it is better to use a database instead of file system.

by
by
by
by
by
by