1
I want to find out the right way to develop module language pak. Here is what I did so far. I created language files for my module.
language/english/main.php,
language/english/modinfo.php,
language/english/cates.php,
language/english/profile.php,
language/english/search.php,
and I defined the language related constants as below.
define('_US_REQUIREVIP','You have to be VIP to perform the operation');
and in language/english/main.php I also have the following includes
include_once 'cates.php';
include_once 'search.php';
include_once 'profile.php';
This English pak works fine. However, after I translated the constants into Simplified Chinese. The constants are changed into Chinese. However, the UI style is broken. So I wondering what is the right way of moving the language constants into language files, and modifying the corresponding code to point to these language files. Thank you.