Hi there guys,
I'm creating a language system for my script, and I was wondering:
When I look at large scripts like PHP-Nuke, or phpBB, I see that they're calling a file with 100's, if not thousands of lang constants in it, to load a page that may only use 20 of the definitions.
Does the script only load the definitions it needs? Is there any ill impact at all when loading a page that large just to use a couple of them?
I'm considering using separate lang files(like I've seen in Zen-Cart) so the lang file being loaded is smaller. My script is pretty tiny to begin with, but I'm trying to do these things to learn how to code smart. If there's absolutely no use in doing it, then I guess it's not so smart 🙂
thanks,
json