BabelKit PHP Source Code SetupLoad and test the bk_code table schema definition as well as the core data records. The proceed with the source code setup and testing. The BabelKit PHP source code is in the php directory: BabelKit.php - BabelKit class definition. bk_admin.php - Setup for bk_admin_main.inc. bk_admin_main.inc - BabelKit Translation Utility. bk_connect.inc - Database connection setup. bk_demo.php - BabelKit demo page. TEST - Run t/test.t t/test.t - Regression testing.BabelKit requires the PEAR DB library or phplib. BabelKit.php SetupCopy the BabelKit.php file into a directory on your php include_path so that your application code can require it.Database Connection SetupYou can customize the bk_connect.inc file to open a database handle to your database. If your application setup has already opened a database handle, use that handle instead of opening a new one.bk_connect.inc is used by bk_admin.php, bk_demo.php and by t/test.t. BabelKit Regression TestRun the TEST script to test the basic BabelKit class functions.BabelKit Translation Utility SetupCustomize the bk_admin.php file to your situation:
Demo Page SetupIn order for the demo page to function, you will need to load the demo data records. |