Jump to content

Archived

This topic is now archived and is closed to further replies.

ParK

connecition between a script a lang file ?

Recommended Posts

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]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.