PHP Language Change: Change application language using arrays of text

Recommend this page to a friend!
  Info   Example   View files (6)   Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-01-12 (6 months ago) Not enough user ratingsTotal: 84 All time: 9,533 This week: 313
Version License PHP version Categories
language-change 1.0Freeware5Localization, PHP 5
Description Author

This is a simple class that can change application language using arrays of text.

It can check if a cookie is set to determine the current language to be used for the texts in a site. If the cookie is not set, the class redirects the current request to access a script that sets the language cookie.

When the language cookie is set the class can load a script that defines an array with texts for the application to use in the language that was set.

In Spanish:

Este script puede cambiar el idioma de algunas palabras de tu pagina en tomando como parametro el valor de una cookie. Devuelve un array con las palabras en el idioma preferido.

Picture of Dannel
  Performance   Level  
Name: Dannel <contact>
Classes: 7 packages by
Country: Cuba Cuba
Age: 27
All time rank: 334610 in Cuba Cuba
Week rank: 124 1 in Cuba Cuba
Innovation award
Innovation award
Nominee: 4x

File Role Description
src (3 files)
example.php Example Main example
language.change.php Aux. Lang script to change cookie
language.set.php Aux. Lang script to set the cookie

  Files  /  src  
File Role Description
   arrayeng.php Conf. Array include
   arrayesp.php Conf. Array include
   langclass.php Class Class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,533
This week:313
User Comments (1)
sorry but is no longer abel now.
6 months ago (Viktor)

For more information send a message to info at phpclasses dot org.