8
I'm trying to make the next version more international friendly.
Perhaps someone can explain to me a simple way to use the defines in languages/xxx/template.php in templates directly.
If I have
define("_AM_BOOKSTORE_LANG_AUTHOR", "Authors");
I'd like to put something like the following in the template code:
<{$_AM_BOOKSTORE_LANG_AUTHOR}>
But it doesn't work.
I can just make a list of all the entries in the defines, like this:
$intl = array
(
"error" =>_AM_BOOKSTORE_LANG_ERROR,
"author" =>_AM_BOOKSTORE_LANG_AUTHOR,
"sales_rank" =>_AM_BOOKSTORE_LANG_SALES_RANK,
"publisher" =>_AM_BOOKSTORE_LANG_PUBLISHER,
"published" =>_AM_BOOKSTORE_LANG_PUBLISHED,
"our_price" =>_AM_BOOKSTORE_LANG_OUR_PRICE,
"more_info" =>_AM_BOOKSTORE_LANG_MORE_INFO,
"notice" =>_AM_BOOKSTORE_LANG_PLEASE_NOTE,
);
And pass it into the template. It just seems inefficient to have to define the extra list.
Any suggestions?
Tom