PHP Classes

Site Translator: Manage the translation of texts to multiple idioms

Recommend this page to a friend!
  Info   View files View files (12)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 46%Total: 3,081 All time: 1,177 This week: 425Up
Version License Categories
sitetranslator 1.0.0GNU General Publi...Localization, Databases, Libraries
Description 

Author

Site Translator is a small collection of classes which enable the creation of dynamic multilingual websites.

The framework allows editors and translators to login and edit the site translations in realtime.

The text translations are stored in a MySQL database table for a flexible way to query and update the translations to the supported idioms.

Innovation Award
PHP Programming Innovation award nominee
November 2004
Number 3


Prize: One book of choice by O'Reilly
Sometimes Web developers have the need to implement the same site in multiple idioms.

The translation is often done progressively by multiple professionals of the field that are not aware of Web development but know how to translate and review the translated texts to the idioms that are meant to be supported.

This package provides a Web based content management solution to address the needs of translating content to multiple idioms done by professionals that can login to the translation site and do their job remotely in a way that does not depend nor interfere with the Web developers work.

Manuel Lemos
Picture of Colin Eberhardt
Name: Colin Eberhardt <contact>
Classes: 2 packages by
Country: United Kingdom
Age: ???
All time rank: 74237 in United Kingdom
Week rank: 312 Up8 in United Kingdom Up
Innovation award
Innovation award
Nominee: 1x

Details

SiteTranslator Installation =========================== The following README describes a two stage installation, the first step details how to install SiteTranslator with the demonstration data using the LocalisedTextBaseDemo class. The resulting pages containing localised text will not be editable, however they will verify that the SiteTranslator classes and editing environment have been correctly installed. 1. Place the contents of this package into a directory on your server. 2. Unzip the contents of flags.zip 3. Configure SiteTranslatorConfig.php, most of the required data for demonstration of SiteTRanslator is already set. You must configure the following: i. Point $translationDir to the absoluterlocation of the 'translation' directory on your server. ii. Point $flagHomeSmall and $flagHomeLarge to the absolute directory of the flag images on your server. 4. Fire up your browser and navigate to demo/index.php. You should be able to view this page in English, German and Russian. You can also try logging in as an editor in order to view the interactive interface used to translate these pages. Once you have got this far you will probably want to place the text in a database so that you can perform translations. Create a database, or use an exisiting one on your site. The file demo/demo.sql provides a schema and some data so that you can run the same demonstration as above but this time using a database. 1. Import the contents of demo/demo.sql into your database 2. Configure SiteTranslatorConfig.php to use LocalisedTextBaseMySQL.php, to do this change the 'require' at the start of the file to use this class. Secondly change the constructor of SiteTranslatorConfig to create an instance of LocalisedTextBaseMySQL. 3. Configure the database parameters of SiteTranslatorConfig, these are all the variables starting with $mysql*. 4. Fire up your browser and navigate to demo/index.php. You should be able to view this page in English, German and Russian. You can now login as an editor or translator and actually start changing the localised text. That is just about it. Any questions? Colin E. webmaster@juggligndb.com

  Files folder image Files  
File Role Description
Accessible without login Plain text file addnew.php Appl. Translation framework
Accessible without login Plain text file demo.php Example Example usage
Accessible without login Plain text file index.php Appl. Tranlsation framework
Plain text file LocalisedTextBaseMySQL.php Class Persisitance class using a mySQL database
Accessible without login Plain text file login.php Appl. Tranlsation framework
Accessible without login Plain text file logout.php Appl. Tranlsation framework
Accessible without login Plain text file menu.php Appl. Tranlsation framework
Accessible without login Plain text file README.txt Doc. Installation instructions
Plain text file SiteTranslator.php Class Class used to display localised text
Plain text file SiteTranslatorAdmin.php Class Extends SiteTranslator to provide editor and translator functionality
Plain text file SiteTranslatorConfig.php Class Configuration file
Accessible without login Plain text file translate.php Appl. Tranlsation framework

 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,081
This week:0
All time:1,177
This week:425Up
 User Ratings  
 
 All time
Utility:57%StarStarStar
Consistency:64%StarStarStarStar
Documentation:56%StarStarStar
Examples:62%StarStarStarStar
Tests:-
Videos:-
Overall:46%StarStarStar
Rank:3064