for any text, you want to have multi-lingual:first we have to make the language tag in the language-files
so we have to open
lang/
<yourlang>/
main.phpand at the end just before
?> add this line:
$lang['copyright'] = "Copyright violators will get kicked in the b***s (if no b***s available, *ss will be used for kicking)";
now, when the lang-variable does exist, we can register it into the templates as a tag...
so open
./includes/
page_header.php and find:
$site_template->register_vars(array(
"media_url" => MEDIA_PATH,
"thumb_url" => THUMB_PATH,
with a lot of more variables there... and into that array add
"lang_copyrigt" => $lang['copyright'],
for your copyright notice...
In this array:
"lang_copyright" will be your tag-text in the template files
and
$lang['copyright'] is the reference to the language-variable...
then you can use
{lang_copyright} - look at the page_header.php code above, where we just registered it as
"lang_copyright"...
Notice: this is just an example, so if you want to:
- kick no b***s for copyright violation, but tell an absolute different story, replace copyright with different_story or anything you consider appropriate
- use the language-tag only on the home-page, use it in index.php or only on a category page, use it in categories.php etc.
If you use this - register the tag under
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
because
$site_template->register_vars(array(
is more than one time in the code there for different situations...
[li]add another language tag, create the language variable in the language/
<yourlanguage>/main.php and register it in the .php file of your needs...[/li]
[li]if you create a new
lang['yourlanguagevariable'] in the lang/<yourlang>/main.php files, check if "yourlanguagevariable" is not there already - otherwise it won't work as you expect
[/li]
[/list]
I hope that it is right what I wrote
It at least works on my 1.7 gallery...