RE: [PHP] language files
| From: | Ryan A | Date: | Thu, 07 Apr 2005 13:34:55 +0000 |
| Subject: | RE: [PHP] language files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-212542@lists.php.net to get a copy of this message | ||
Hej Kim,
> Hi there
> > have you ever double entered the same words?
> Well, if You do that, the later is the overwriting the previous ;)
Exactly what I want to avoid.
That was a pretty good example of using language files...and I really liked
the text in that file...funny ;-)
I understand the thing about why _not_ to use a database or sessions (i
thought of that before, too many calls or resource intensive) but isnt your
method of searching a text document all the time a bit more of a problem
than Mikes method of having a seperate language file like lang.en.inc.php
where you would have arrays like so:
$lang_en['party_starting_tomorrow'] = "The party starts tomorrow!";
$lang_en['old_party_was_success'] = "The old party was a fantastic
success!";
Cheers,
Ryan
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.4 - Release Date: 4/6/2005