1
angelomorto
Fast Xoops Language Translator v.0.1

Hi people,
I created a script to make life easier for who want to translate the Xoops modules .

How "Fast XooLaT" work:

1) download the zip and extract on Xoops root
2) Set Microsoft Translator API Key in xoolat/translate/config.inc.php
3) indicate the path on url ex. http://www.innovationsky.org/xoolat/translate.php?file=../language/english/admin.php (click to view demo)
4) Indicate in which language you want to translate
5) Enter a description to identify the translation ex. "Translation of Xoops v.2.5.5"
6) Click Get Code

Now, you will get your translation ready on site Ideone.com where you can download or share the translation.

Feature:
- I hope to make the script a Xoops module
- Use multiple source languages ​​(currently English only)
- Automatically find modules and languages

If you have problems or suggestions, for example an alternative ti Ideone.com , contact me.

Screenshot:
Resized Image


Resized Image


Resized Image


Resized Image


Resized Image

2
irmtfan
Re: Fast Xoops Language Translator v.0.1
  • 2013/2/18 3:18

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


very nice tool indeed.
I still cannot make it to work for me in localhost.
It keeps show me this error:
Fatal errorMaximum execution time of 30 seconds exceeded in F:/xampp/htdocs/xoops255/xoolat/result.php on line 31


I think something is wrong with my installation?
i will try more.

Edit:
ok i found the issue. if you leave some definitions blank it will drop to a infinite loop.
so you must translate all definitions before submit.

but i have another error now:
Fatal errorUncaught SoapFault exception: [VersionMismatchWrong Version in F:xampphtdocsxoops255xoolatresult.php:28 Stack trace#0 F:xampphtdocsxoops255xoolatresult.php(28): SoapClient->__call('createSubmissio...', Array) #1 F:xampphtdocsxoops255xoolatresult.php(28): SoapClient->createSubmission('fastxoolat', 'fastxoolat', '// $Id: admin.p...', 29, 26, false, false) #2 {main} thrown in F:xampphtdocsxoops255xoolatresult.php on line 28


I keep testing.


Overall, I just can see one small issue.
we dont have any navigation facility. I mean i have to type the correct url of the file.

3
angelomorto
Re: Fast Xoops Language Translator v.0.1

Quote:

irmtfan wrote:
very nice tool indeed.
I still cannot make it to work for me in localhost.
It keeps show me this error:
Fatal errorMaximum execution time of 30 seconds exceeded in F:/xampp/htdocs/xoops255/xoolat/result.php on line 31


I think something is wrong with my installation?
i will try more.

Edit:
ok i found the issue. if you leave some definitions blank it will drop to a infinite loop.
so you must translate all definitions before submit.

but i have another error now:
Fatal errorUncaught SoapFault exception: [VersionMismatchWrong Version in F:xampphtdocsxoops255xoolatresult.php:28 Stack trace#0 F:xampphtdocsxoops255xoolatresult.php(28): SoapClient->__call('createSubmissio...', Array) #1 F:xampphtdocsxoops255xoolatresult.php(28): SoapClient->createSubmission('fastxoolat', 'fastxoolat', '// $Id: admin.p...', 29, 26, false, false) #2 {main} thrown in F:xampphtdocsxoops255xoolatresult.php on line 28


I keep testing.


Overall, I just can see one small issue.
we dont have any navigation facility. I mean i have to type the correct url of the file.


Tnx for your info!
You can try with add the function set_time_limit(0); //(for unlimited time)
how large is the file you take the test?
In localhost I use Xampp, I'll try to do some tests on Aruba.it!!!

Try it on a remote server, I do not know if API Microsoft Translator works in localhost!

4
Mamba
Re: Fast Xoops Language Translator v.0.1
  • 2013/2/18 12:46

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
Try it on a remote server, I do not know if API Microsoft Translator works in localhost!

It seems to be working OK on PHP 5.4.11 and WampServer, I am getting only this error:

Quote:
Notice: Undefined index: class in S:\wamp64\www\xoops\xoolat\translate\class\MicrosoftTranslator.class.php on line 212
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

5
angelomorto
Re: Fast Xoops Language Translator v.0.1

Quote:

Mamba wrote:
Quote:
Try it on a remote server, I do not know if API Microsoft Translator works in localhost!

It seems to be working OK on PHP 5.4.11 and WampServer, I am getting only this error:

Quote:
Notice: Undefined index: class in S:\wamp64\www\xoops\xoolat\translate\class\MicrosoftTranslator.class.php on line 212


In /xoolat/translate.php on line 30 change whit this code:

$selectbox = array('id'=> 'txtLang','name'=>'txtLang','class'=>'');

6
angelomorto
Re: Fast Xoops Language Translator v.0.1

This is the new correct file: xoolat.zip

Changelog:
- added set_time_limit(0)
- added class on selectBox

Notes:
In localhost verify is active the extension php_openssl.dll

7
angelomorto
Re: Fast Xoops Language Translator v.0.1


Login

Who's Online

255 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 255


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits