Login   Register  
PHP Classes
elePHPant
Icontem

File: Localization.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2002-05-05 17:27
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;
		}
	}
?>