| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
404.tpl question | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
404.tpl question
I finally successfully created a new skin. I am playing with the 404 template file.
I see that X-cart has some code "{ t ( # Page not found # ) }" that renders as Page not found. However, you you just place the text Page not found without the brackets, t and hashes, it works too. You can also put text in between p tags without anything fancy too. So what is the purpose of all the extra stuff? Thank you for answering my endless questions.
__________________
Newb X-Cart 5 user trying out X-cart ver 5.1.3 free, local system is running Linux, web host server is running Debian, mySQL 5.5.32, Perl 5.8.8, PHP 5.3, shared hosting. |
|||||||
#2
|
|||||||||
|
|||||||||
Re: 404.tpl question
Hi Andrew!
Thank you for your question! The structure of {t(#Page not found#)} means that we are passing string "Page not found" to method t() as an argument. t() method is responsible for translation. So, if you want to allow merchant to translate the 'Page not found' phrase you should use this construction. If you want 'Page not found' phrase to be displayed this way in every language, then you should put it simply like Page not found.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
#3
|
|||||||
|
|||||||
Re: 404.tpl question
Cool! Thank you.
__________________
Newb X-Cart 5 user trying out X-cart ver 5.1.3 free, local system is running Linux, web host server is running Debian, mySQL 5.5.32, Perl 5.8.8, PHP 5.3, shared hosting. |
|||||||
|
|||
X-Cart forums © 2001-2020
|