1
wishcraft
xTRANSAM 1.04 - Language Translator.....

Resized Image


For XOOPS 2.3.x

xTRANSAM 1.04 - eXtensible TRANSlator Automation Module.

Handles all forms of utf-8, utf-16, utf-32, unicode for Translation of XOOPS core and modules. Includes Path analysis, File IO Based within install structure, Editor (file selectable).

Hexs all file inputs for file transparency (any coding that PHP Supports).

Download: xTRANSAM 1.04 (Tar Ball) 44Kb

Mirror: Click Here 44Kb for XOOPS 2.3.x
vCard (*.vcf): Dr. Simon Antony Roberts.vcf
Follow, Like & Read:-

x.com/EmpressFX
facebook.com/DrAntonyRoberts

2
wishcraft
Re: xTRANSAM 1.02 (rc) - Fatal Error - Line 40

Quote:

Runeher Said:

hi simon...i get : Fatal error: Call to a member function mid() on a non-object in F:\1-a-wamp\wamp\www\selges\modules\xtransam\admin\admin_header.php on line 40 with your new module...



Change line 40 of admin_header.php to the following code:

le="color: #000000"><?php $xoopsModule = XoopsModule::getByDirname('xtransam');
vCard (*.vcf): Dr. Simon Antony Roberts.vcf
Follow, Like & Read:-

x.com/EmpressFX
facebook.com/DrAntonyRoberts

3
wishcraft
Re: xTRANSAM 1.02 (rc) - Admin Menu Names Missing

Quote:

Runeher says:
also the lang def for admin menu are missing or placed wrong...


Change the Module Info file in the language/english folder the file is called mod_info.php & add these 3 lines inside the <?php & ?>..

le="color: #000000"><?php define('_MI_XTRANSAM_ADMENU1', 'Translation Wizard'); define('_MI_XTRANSAM_ADMENU2', 'Do Translation'); define('_MI_XTRANSAM_ADMENU3', 'Language Matrix');
vCard (*.vcf): Dr. Simon Antony Roberts.vcf
Follow, Like & Read:-

x.com/EmpressFX
facebook.com/DrAntonyRoberts

4
wishcraft
Re: xTRANSAM 1.02 (rc) - Error: Handler does not exist

Quote:

Runeher says:

New error: Error: Handler does not exist

Module: multisite

Name: module


Simon says:
where is that


Runeher says:
when opening translation wizard


Change line 33 of /modules/xtransam/include/functions.php to

le="color: #000000"><?php $module_handler =& xoops_gethandler('module');
vCard (*.vcf): Dr. Simon Antony Roberts.vcf
Follow, Like & Read:-

x.com/EmpressFX
facebook.com/DrAntonyRoberts

5
wishcraft
Re: xTRANSAM 1.02 (rc) - Nothing is happening on my local installation

Quote:

How dos it works? Nothing is happening on my local installation


Change the CREATE TABLE insert line in /sql/mysql.sql in the module to...

le="color: #000000"><?php CREATE TABLE `xtransam_files` ( `id` INT(12) UNSIGNED NOT NULL AUTO_INCREMENT, `ioid` INT(12) UNSIGNED DEFAULT '0', `filename` VARCHAR(255) DEFAULT NULL, `path` VARCHAR(255) DEFAULT NULL, `imported` TINYINT(2) DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=MYISAM CHARSET=utf8;


You can download the latest version from the SVN with all the bug fixes xTRANSAM 1.04.tar.gz
vCard (*.vcf): Dr. Simon Antony Roberts.vcf
Follow, Like & Read:-

x.com/EmpressFX
facebook.com/DrAntonyRoberts

6
wishcraft
xTRANSAM 1.04 - The more I look at it, the more i like it!!

See with language the way it is dynamic and ever change vapresent void of interchangable bits like unicode in utf-8, 32, & utf-16 you need to handle the inputs on the provider with encoding.

This is the database that stores the language sequences in hex so what the input get no matter what format your hard drive or MySQL database you can have a latin1 or utf-8 hard drive and still store utf-16 or 32..


le="color: #000000"><?php /*Column Information For - multisite.xff0_xtransam_translator*/ --------------------------------------------------------------- FIELD TYPE COLLATION NULL KEY DEFAULT Extra PRIVILEGES COMMENT ------------------ ---------------- --------------- ------ ------ ------- -------------- ------------------------------- ------- id INT(30) UNSIGNED (NULL) NO PRI (NULL) AUTO_INCREMENT SELECT,INSERT,UPDATE,REFERENCES ioid INT(12) UNSIGNED (NULL) YES 0 SELECT,INSERT,UPDATE,REFERENCES fromid SMALLINT(6) (NULL) YES 0 SELECT,INSERT,UPDATE,REFERENCES toid SMALLINT(6) (NULL) YES 0 SELECT,INSERT,UPDATE,REFERENCES fileid INT(12) (NULL) YES 0 SELECT,INSERT,UPDATE,REFERENCES linetype ENUM('define') utf8_general_ci YES define SELECT,INSERT,UPDATE,REFERENCES hexval_name MEDIUMTEXT utf8_general_ci YES (NULL) SELECT,INSERT,UPDATE,REFERENCES hexval_orginal MEDIUMTEXT utf8_general_ci YES (NULL) SELECT,INSERT,UPDATE,REFERENCES hexval_translation MEDIUMTEXT utf8_general_ci YES (NULL) SELECT,INSERT,UPDATE,REFERENCES replacestr MEDIUMTEXT utf8_general_ci YES (NULL) SELECT,INSERT,UPDATE,REFERENCES OUT ENUM('1','0') utf8_general_ci YES 0 SELECT,INSERT,UPDATE,REFERENCES line INT(12) (NULL) YES 0 SELECT,INSERT,UPDATE,REFERENCES auto TINYINT(2) (NULL) YES 0 SELECT,INSERT,UPDATE,REFERENCES /*Index Information For - multisite.xff0_xtransam_translator*/ -------------------------------------------------------------- TABLE Non_unique Key_name Seq_in_index Column_name COLLATION Cardinality Sub_part Packed NULL Index_type COMMENT ------------------------ ---------- -------- ------------ ----------- --------- ----------- -------- ------ ------ ---------- ------- xff0_xtransam_translator 0 PRIMARY 1 id A 1365 (NULL) (NULL) BTREE /*DDL Information For - multisite.xff0_xtransam_translator*/ ------------------------------------------------------------ TABLE CREATE TABLE ------------------------ ---------------------------------------------------------- xff0_xtransam_translator CREATE TABLE `xff0_xtransam_translator` ( `id` INT(30) UNSIGNED NOT NULL AUTO_INCREMENT, `ioid` INT(12) UNSIGNED DEFAULT '0', `fromid` SMALLINT(6) DEFAULT '0', `toid` SMALLINT(6) DEFAULT '0', `fileid` INT(12) DEFAULT '0', `linetype` ENUM('define') DEFAULT 'define', `hexval_name` MEDIUMTEXT, `hexval_orginal` MEDIUMTEXT, `hexval_translation` MEDIUMTEXT, `replacestr` MEDIUMTEXT, `out` ENUM('1','0') DEFAULT '0', `line` INT(12) DEFAULT '0', `auto` TINYINT(2) DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=MYISAM AUTO_INCREMENT=1366 DEFAULT CHARSET=utf8



vCard (*.vcf): Dr. Simon Antony Roberts.vcf
Follow, Like & Read:-

x.com/EmpressFX
facebook.com/DrAntonyRoberts

7
Kiwi_Chris
Re: xTRANSAM 1.04 - Language Translator.....
  • 2009/5/17 10:04

  • Kiwi_Chris

  • Just popping in

  • Posts: 79

  • Since: 2009/1/3 2


Hi I would love to learn more about this translator,

I can not find any information on how to use it.

From Installing I can see it will translate the information, is there a way for users to choose between the translations, is this only for the admin side.

If you can link me with the information about this module I would be most grateful.

Thank you.

8
trabis
Re: xTRANSAM 1.04 - Language Translator.....
  • 2009/5/17 10:55

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


'allow url fopen' is required in php settings.

Works great here, took about 10 minutes to translate news module using google API but, Hey, I just had to wait!

Thanks Simon, great work!

9
anderssk
Re: xTRANSAM 1.04 - Language Translator.....
  • 2009/5/17 11:11

  • anderssk

  • Quite a regular

  • Posts: 335

  • Since: 2006/3/21


That's just the module I have been missing for the last 2 years!

Thanks Simon!!


Remember 'allow url fopen' can only been set i php.ini
And then you don't have green flags in protector

10
wishcraft
Re: xTRANSAM 1.04 - Language Translator.....

Hey man it is early days for the transam for ages...

Better than a sportz utility.. -0(

Thanks trabis and anderssk...

Remember Hex the language...
vCard (*.vcf): Dr. Simon Antony Roberts.vcf
Follow, Like & Read:-

x.com/EmpressFX
facebook.com/DrAntonyRoberts

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits