PHP Classes
elePHPant
Icontem

PHP Language Change: Change application language using arrays of text

Recommend this page to a friend!
  Info   View files Example   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-01-12 (9 days ago) RSS 2.0 feedNot enough user ratingsTotal: 66 This week: 11All time: 9,567 This week: 21Up
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.

  Performance   Level  
Name: Dannel <contact>
Classes: 3 packages by
Country: Cuba Cuba
Innovation award
Innovation award
Nominee: 1x

 

  Files folder image Files  
File Role Description
Files folder imagesrc (3 files)
Accessible without login Plain text file example.php Example Main example
Accessible without login Plain text file language.change.php Aux. Lang script to change cookie
Accessible without login Plain text file language.set.php Aux. Lang script to set the cookie

  Files folder image Files  /  src  
File Role Description
  Accessible without login Plain text file arrayeng.php Conf. Array include
  Accessible without login Plain text file arrayesp.php Conf. Array include
  Plain text file langclass.php Class Class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:66
This week:11
All time:9,567
This week:21Up
User Comments (1)
sorry but is no longer abel now.
8 days ago (Viktor)
35%StarStar