PHP Classes

Translate

Recommend this page to a friend!

      EDictionary  >  All threads  >  Translate  >  (Un) Subscribe thread alerts  
Subject:Translate
Summary:php error
Messages:2
Author:rosario
Date:2012-07-20 15:56:07
Update:2012-07-20 17:26:52
 

 


  1. Translate   Reply   Report abuse  
Picture of rosario rosario - 2012-07-20 15:56:07
Hi,
I tried to use your php class to translate my webcontent but I receve a php error, T_STATIC error.
Do you know why? I am using php 5, maybe is it a version issue?

Thx a lot for yur support.
Regards,
Rosario

  2. Re: Translate   Reply   Report abuse  
Picture of Ivan Ivan - 2012-07-20 17:26:52 - In reply to message 1 from rosario
Thanks for feedback! This error occured because you use PHP with version below then 5.3. It doesn't support keyword 'static'. Older versions use 'self' instead. I did mistake in description, sorry :(.
I've updated 2 files (EDictionary.php and adapters/ETAdapterYandexDict.php) to support PHP5.2 (replaced 'static::' with 'self::'). Try it please :)