|
||||||
| PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
| Sponsored Links |
|
|
|
|||||
|
How does PHP Nuke do it? vBulletin uses "phrases" which are strings stored in a database. The phrase can be made in any language and vBulletin loads those phrases into an array and calls that variable. IE:
PHP Code:
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
|
|||||
|
Yup, that looks just like Joomla.
So, say you have an option in your CMS to choose English or French. You have 2 files in your language directory (english.php and french.php). If the user selects English your CMS includess the english.php file. If the user selects French it includes french.php. The English file contains: PHP Code:
PHP Code:
In your CMS where you would normally do this: PHP Code:
PHP Code:
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
|
|||||
|
Yes I know that, what I don't know is how to can I make this only a user option. I mean, once user selects different language, I want only THAT user to see the language he has selected, I don't want whole site to change language
![]() |
| Sponsored Links |
|
|
|
|||||
|
Then you need to go with the database version, or atleast it's simplest. I'm writing such a system myself at the moment actually, so if you want, I can share my experiences.
I'm also writing a translation website so i can let other ppl translate my app. if someone knows a language I don't know. |
|
|||||
|
Quote:
Posted via CodeCall Mobile |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dynamically update php variables based on option value | Hrimthurs | PHP Forum | 3 | 05-06-2008 06:00 PM |
| [Added] Option to hide 'Page Title' | aravot | easyContact | 1 | 12-13-2007 08:40 AM |
| URGENT!! Multiple option and argument parsing Linux | John386 | C and C++ | 1 | 11-17-2007 03:40 AM |
| Postion of "Show Header Text" config option | rolandd | ionFiles | 2 | 10-13-2007 11:29 AM |
| How do I read .mbm (Multi BitMap) files? | moondog | General Programming | 7 | 08-07-2007 08:08 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 97%