Portal Home > Knowledgebase > Articles Database > i need tutorial to build language system like vbulletin
i need tutorial to build language system like vbulletin
Posted by 3okl, 01-12-2010, 12:03 AM |
Hello
i need tutorial to build language system like vbulletin
or anything like it.
|
Posted by M Bacon, 01-12-2010, 02:26 AM |
PHP and MYSQL is what VBulletin uses. You can learn more at http://php.net
|
Posted by mattle, 01-12-2010, 09:52 AM |
I'm not sure what you mena by a "language system", but if you're referring to localization, there's a good tutorial here: http://onlamp.com/pub/a/php/2002/11/28/php_i18n.html
|
Posted by 3okl, 01-12-2010, 02:23 PM |
i mean i want move all phrases from language file to database.
and get all i want like vBulletin
$vbphrase["test"];
will get this "test" value from database and print to screen.
Thanks
|
Posted by mattle, 01-12-2010, 02:50 PM |
I doubt you actually want to do a database access for every phrase on your web site. That's gonna add a lot of overhead.
The code that you've posted is accessing an associative array element...which is the same way recommended in the tutorial link I gave you.
|
Posted by 3okl, 01-13-2010, 01:12 AM |
Thank you mattle
i found good way to do what i want with your help.
Thank you
|
Posted by pwalters09, 01-13-2010, 01:45 AM |
Use something like this in PHP
Then just include that file in every PHP page
For example:
Then to output the language use:
And so on...
|
Posted by 3okl, 01-13-2010, 02:01 AM |
i'm already have a language file.
but i want to build my phrases in my database.
i'm already find the way and succeed to do it in my script.
but i'm searching to know more.
Thank you pwalters09.
- - - - - - - - - - - - - - - - - -
|
Add to Favourites Print this Article
Also Read
Server down? (Views: 591)