ParK Posted July 24, 2006 Share Posted July 24, 2006 i wrote simple e-mail php script and want to improve it and myself..i decided to add 'lang' property ...i added a line :[in teller.php][code] // translation function function lang($key) { global $lang;[/code]my lang file:[code]$dil=array{ #yazılar 'İsim'=>''; 'E-postan'=>''; 'Kanka e-posta'=>''; 'Blogumu Tavsiye Edin!'=>''; #Butonlar 'Gönder'=>''; 'Temizle'=>''; ); ?>[/code]and im getting errors i know script files have not known my lang file yet , how can i do it ?thank you :)also: a look:[in teller.php][code]<input type="submit" name="Submit" value=" <?php echo dil or lang('Gönder/or Send');?>" /> [/code] Link to comment https://forums.phpfreaks.com/topic/15461-connecition-between-a-script-a-lang-file/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.