Two simple PHP files for localization that do basically the same, but one doesn't work?

请求翻译

The multilingual content echoed with PHP (e.g. line 17) are not displayed at all.

localizatoin.php:

This one works:


This one:

 

displays the following error:

Notice: Undefined variable: lang_file in D:\wamp\www\test2\localization0.1\index.php on line 17
(and so on)

languages/lang.en.php (sample):

 "Hello!...",
(continues)

index.php (sample):

    



    
    
    
    
    
    Alex Chen - Web design and Translation / 网页设计和翻译
    
    
    
    ';} ?>
(continues)

line 17:

';} ?>

line 23 to 26:

1个回答