Login   Register  
PHP Classes
elePHPant
Icontem

oLoc: Retrieve and edit internationalized texts

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files Example   View files View files (133)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-11-15 (7 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 790 This week: 5All time: 3,984 This week: 325Up
Version License PHP version Categories  
oloc 1.0GNU General Public Lice...3.0Localization, PHP 5
Description Author  

This package can be used to retrieve and edit internationalized application texts.

It consists of a run-time class and other classes and scripts for editing translations.

The run-time class that retrieves text translations from XML files.

It takes an identifier of a text to retrieve, the path of the directory of the translated text XML files, the text idiom and the default idiom in case the translated text is not defined for the specified idiom.

The editor classes and scripts provide an AJAX based interface for editing texts to translate applications for the different supported idioms.

It allows the user to enter the translation for each application text, or upload a whole translation template file which should be in the Excel format.

Innovation Award  
PHP Programming Innovation award nominee
December 2007
Number 5


Prize: One book of choice by Packt
Localization is the process of adapting software programs to the users local idiom and other details of each world country or region.

Localization often consists on translating the texts used in the messages presented to the users of the programs. Depending on the size of the application, the effort to localize it may not be trivial.

This package provides an AJAX based Web interface to help translating the texts used in PHP Web applications, thus reducing the localization efforts.

Manuel Lemos
Picture of Johan Barbier
Name: Johan Barbier <contact>
Classes: 17 packages by
Country: France France
Age: 42
All time rank: 412 in France France
Week rank: 84 Down4 in France France Down
Innovation award
Innovation award
Nominee: 6x

  Files folder image Files  
File Role Description
Files folder imageajax (6 files)
Files folder imageclass (7 files)
Files folder imagecountries (2 files)
Files folder imagecss (1 file)
Files folder imageimg (3 files)
Files folder imageinc (1 file)
Files folder imagejs (2 files)
Files folder imagelocales (26 directories)
Files folder imagetemplates (1 file)
Files folder imagetmp (1 file)
Files folder imagewebsites (1 directory)
Accessible without login Plain text file back.office.php Appl. Back-Office application
Plain text file oloc.example.php Example oLocale class example
Plain text file readme.txt Doc. Documentation

  Files folder image Files  /  ajax  
File Role Description
  Plain text file ajax.back.office.add.constant.php Appl. Ajax script
  Plain text file ajax.back.office.del.constant.php Appl. Delete a translation
  Accessible without login Plain text file ajax.back.office.display.list.php Appl. Ajax script
  Plain text file ajax.back.office.get.websites.php Appl. Ajax script
  Accessible without login Plain text file ajax.back.office.update.toolz.menu.php Appl. Ajax script
  Plain text file ajax.back.office.update.value.php Appl. Ajax script

  Files folder image Files  /  class  
File Role Description
  Accessible without login Plain text file class.backoffice.php Class Back Office main class
  Accessible without login Plain text file class.genparser.php Class Back Office auxiliary class
  Plain text file class.localeException.php Class oLocale specific Exceptions
  Plain text file class.oLocale.php Class oLocale class
  Accessible without login Plain text file class.openoffice23htmlparser.php Class Soecific class for parsing HTML files from sCalc in OpenOffice
  Plain text file package.exceptions.errors.php Class Errors to Exceptions class
  Plain text file package.exceptions.php Class Exceptions class

  Files folder image Files  /  countries  
File Role Description
  Plain text file countries.xml Data Countries XML file
  Plain text file get.alpha.cn.php Aux. Function used to retrieve iso 3166-1 alpha codes

  Files folder image Files  /  css  
File Role Description
  Plain text file back.office.css Data Back Office css file

  Files folder image Files  /  img  
File Role Description
  Image file add16.png Icon Image
  Image file delete16.png Data Button
  Image file help32.png Icon Image

  Files folder image Files  /  inc  
File Role Description
  Plain text file inc.main.php Conf. Configuration file

  Files folder image Files  /  js  
File Role Description
  Accessible without login Plain text file back.office.js Data JS script
  Plain text file prototype.js Data Prototype library

  Files folder image Files  /  locales  
File Role Description
Files folder imageBEL (2 files)
Files folder imageBGR (2 files)
Files folder imageCHE (2 files)
Files folder imageCZE (2 files)
Files folder imageDNK (2 files)
Files folder imageENG (2 files)
Files folder imageESP (2 files)
Files folder imageEST (2 files)
Files folder imageFIN (2 files)
Files folder imageFRA (2 files)
Files folder imageGER (2 files)
Files folder imageGRC (2 files)
Files folder imageHRV (2 files)
Files folder imageHUN (2 files)
Files folder imageITA (2 files)
Files folder imageLITHUANIE (2 files)
Files folder imageLVA (2 files)
Files folder imageNLD (2 files)
Files folder imageNORVEGE (2 files)
Files folder imagePOL (2 files)
Files folder imagePRT (2 files)
Files folder imageROU (2 files)
Files folder imageRUSSIE (2 files)
Files folder imageSLOVENIE (2 files)
Files folder imageSUEDE (2 files)
Files folder imageSVK (2 files)

  Files folder image Files  /  locales  /  BEL  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  BGR  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  CHE  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  CZE  
File Role Description
  Plain text file err.xml Data localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  DNK  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  ENG  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  ESP  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  EST  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  FIN  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  FRA  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  GER  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  GRC  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  HRV  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  HUN  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  ITA  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  LITHUANIE  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  LVA  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  NLD  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  NORVEGE  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  POL  
File Role Description
  Plain text file err.xml Aux. Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  PRT  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  ROU  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  RUSSIE  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  SLOVENIE  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  SUEDE  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  locales  /  SVK  
File Role Description
  Plain text file err.xml Data Localized module
  Plain text file mx.xml Data Localized module

  Files folder image Files  /  templates  
File Role Description
  Plain text file template.xls Data Translation upload file template AFTER saving it as HTML

  Files folder image Files  /  tmp  
File Role Description
  Plain text file template_test.html Data Uploaded file after parsing

  Files folder image Files  /  websites  
File Role Description
Files folder imagewww.myweb.com (1 directory)

  Files folder image Files  /  websites  /  www.myweb.com  
File Role Description
Files folder imagelocales (27 directories)

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  
File Role Description
Files folder imageBEL (2 files)
Files folder imageBGR (2 files)
Files folder imageCHE (2 files)
Files folder imageCZE (2 files)
Files folder imagedefault (2 files)
Files folder imageDNK (2 files)
Files folder imageENG (2 files)
Files folder imageESP (2 files)
Files folder imageEST (2 files)
Files folder imageFIN (2 files)
Files folder imageFRA (2 files)
Files folder imageGER (2 files)
Files folder imageGRC (2 files)
Files folder imageHRV (2 files)
Files folder imageHUN (2 files)
Files folder imageITA (2 files)
Files folder imageLITHUANIE (2 files)
Files folder imageLVA (2 files)
Files folder imageNLD (2 files)
Files folder imageNORVEGE (2 files)
Files folder imagePOL (2 files)
Files folder imagePRT (2 files)
Files folder imageROU (2 files)
Files folder imageRUSSIE (2 files)
Files folder imageSLOVENIE (2 files)
Files folder imageSUEDE (2 files)
Files folder imageSVK (2 files)

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  BEL  
File Role Description
  Plain text file err.xml Data websites/www.myweb.com/locales/BEL/err.xml
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  BGR  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  CHE  
File Role Description
  Plain text file err.xml Data LOC
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  CZE  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  default  
File Role Description
  Plain text file err.xml Data Default module definition
  Plain text file mx.xml Data Default module definition

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  DNK  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  ENG  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  ESP  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  EST  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  FIN  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  FRA  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  GER  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  GRC  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  HRV  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  HUN  
File Role Description
  Plain text file err.xml Data loc
  Plain text file mx.xml Data loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  ITA  
File Role Description
  Plain text file err.xml Data loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  LITHUANIE  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  LVA  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  NLD  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  NORVEGE  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  POL  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  PRT  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  ROU  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  RUSSIE  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  SLOVENIE  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  SUEDE  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

  Files folder image Files  /  websites  /  www.myweb.com  /  locales  /  SVK  
File Role Description
  Plain text file err.xml Data Loc
  Plain text file mx.xml Data Loc

 Version Control Unique User Downloads Download Rankings  
 0%Total:790All time:3,984
 This week:5This week:325Up