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
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies

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:

$xoopsModule XoopsModule::getByDirname('xtransam');
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies

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 & ?>..

define('_MI_XTRANSAM_ADMENU1''Translation Wizard');
    
define('_MI_XTRANSAM_ADMENU2''Do Translation');    
    
define('_MI_XTRANSAM_ADMENU3''Language Matrix');
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies

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

$module_handler =& xoops_gethandler('module');
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies

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...

CREATE TABLE `xtransam_files` (                    
                       `
idINT(12UNSIGNED NOT NULL AUTO_INCREMENT,        
                       `
ioidINT(12UNSIGNED DEFAULT '0',                  
                       `
filenameVARCHAR(255) DEFAULT NULL,                 
                       `
pathVARCHAR(255) DEFAULT NULL,                     
                       `
importedTINYINT(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
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies

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..


/*Column Information For - multisite.xff0_xtransam_translator*/
---------------------------------------------------------------

FIELD               TYPE              COLLATION        NULL    KEY     DEFAULT  Extra           PRIVILEGES                       COMMENT
------------------  ----------------  ---------------  ------  ------  -------  --------------  -------------------------------  -------
id                  INT(30UNSIGNED  (NULL)           NO      PRI     (NULL)   AUTO_INCREMENT  SELECT,INSERT,UPDATE,REFERENCES         
ioid                INT
(12UNSIGNED  (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` (                 
                            `
idINT(30UNSIGNED NOT NULL AUTO_INCREMENT,          
                            `
ioidINT(12UNSIGNED DEFAULT '0',                    
                            `
fromidSMALLINT(6) DEFAULT '0',                       
                            `
toidSMALLINT(6) DEFAULT '0',                         
                            `
fileidINT(12) DEFAULT '0',                           
                            `
linetypeENUM('define') DEFAULT 'define',             
                            `
hexval_nameMEDIUMTEXT,                               
                            `
hexval_orginalMEDIUMTEXT,                            
                            `
hexval_translationMEDIUMTEXT,                        
                            `
replacestrMEDIUMTEXT,                                
                            `
outENUM('1','0') DEFAULT '0',                        
                            `
lineINT(12) DEFAULT '0',                             
                            `
autoTINYINT(2) DEFAULT '0',                          
                            
PRIMARY KEY (`id`)                                      
                          ) 
ENGINE=MYISAM AUTO_INCREMENT=1366 DEFAULT CHARSET=utf8



Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies

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...
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies

Login

Username:
Password:

Lost Password? Register now!

Who's Online

70 user(s) are online (27 user(s) are browsing Support Forums)


Members: 0


Guests: 70


more...

Donat-O-Meter

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

Latest GitHub Commits