- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 64 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - A simple fix to an annoying problem. [ ]
Poll :: Is this a good idea? I was thinking of suggesting it to the PHPNuke guys.
Yes
100%
[ 3 ]
No
0%
[ 0 ]
Total Votes : 3
Author
Message
MrGunnage
Sergeant
Joined: Aug 28, 2004
Posts: 78
Posted:
Tue Nov 30, 2004 5:49 am
One thing that does annoy me is that when you upgrade you have to keep moving all your custom language deffintions to the new lang-???.php file.
I have devised a simple but effective way of combating this:
Simply add this line to the end of the DEFINE section of lang-???.php:
Code:
include("language/custom.php")
And the make a new file called custom.php in the language folder and put this in it:
Code:
<?php
//Custom Definitions
//Add your custom deffinitons here instead.
?>
And now when you upgrade all you need to add to the lang-???.php file is the:
Code:
include("language/custom.php")
Line again. Very useful if you have a large number of Custom Modules and Blocks that require additions to the lang-???.php file.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum