From: Matthew M. <ma...@tu...> - 2002-10-21 12:13:37
|
Suggested procedure question. Say you are making a template for something. Inside the template you may want to include some text. The problem is that you also want that text translated. How should it be handled? o The module itself has a text area for you to add data to a template, it is stored in the database, translated, then sent to the template tag. o INCLUDE a php file that allows extra template tags with your module. This file allows the admin to add extra data. For example: <?php // The admin knows the template array is named 'myTemp' $myTemp["text1"] = $_SESSION["translate"]->it("Welcome to my website"); $myTemp["text2"] = $_SESSION["translate"]->it("Blah Blah"); ?> Then in the template file {TEXT1} {REG_TAG} {TEXT2} o Create a tag for the template function that translates text. Should we plan for this? Matthew McNaney Internet Systems Architect Electronic Student Services Email: ma...@tu... URL: http://phpwebsite.appstate.edu Phone: 828-262-6493 ICQ: 141057403 |