Re: define a constant text
You need to make a define in a language file. Steps to do that :
1. Make a new file in includes/languages/english/extra-definitions and call it something like my_definitions.php . The file should look something like :
Code:
<?php
define('MY_NEW_DEFINE', 'Text to appear on page in English');
2. Make a new file in includes/languages/dutch/extra-definitions and call it the same thing . The file should look something like :
Code:
<?php
define('MY_NEW_DEFINE', 'Text to appear on page in Dutch');
So far you have defined a constant called 'MY_NEW_DEFINE' that will be one thing in english and will be another thing in dutch.
3. Now you need to used that in one of the templates. If you are trying to put it on the product_info page you will probably want to edit includes/templates/YOURTEMPLATE/templates/tpl_product_info_display.php. Depends a bit where you actually want to out the text. In that file you need to add the following code:
Code:
<?php
echo MY_NEW_DEFINE;
?>
That's it .
Actually there are a few subtleties ( like making override versions of the first two files ) but the above should work.
Re: define a constant text
or just copy english folder in the admin panel and reupload it as Dutch and from there when you add products you can add dutch text and english txt
Re: define a constant text
Well, I think he was asking how to put some text that wasn't already defined in the language files.
But if it is just an existing language define then what you say is true. Or of course you could just use one of the existing language packs......
Re: define a constant text
yes, but the question was how to add a define that wasn't already included in the existing defines.
Re: define a constant text
That was a spammer regurgitating an existing post...