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.


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):


index.php (sample):


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

line 17:

';} ?>

line 23 to 26: