PHP Classes

File: Localization.php

Recommend this page to a friend!
  Classes of Bhavin Choksi  >  Internationalization  >  Localization.php  >  Download  
File: Localization.php
Role: ???
Content type: text/plain
Description: Main Class for Implementing Localization
Class: Internationalization
Handy way of implementing Localization.
Author: By
Last change:
Date: 20 years ago
Size: 298 bytes
 

Contents

Class file image Download
<?
class Localization
	{
	var $country;
	var $language;
	
	function Localization($language,$country)
		{
		$this->country=$country;
		$this->language=$language;
		}
	 
	function Translate($str)
		{
		include ($this->language)."_".($this->country).".inc";
		return $$str;
		}
	}
?>
For more information send a message to info at phpclasses dot org.