Sunday, September 05th, 2010 Welcome Guest! - Register    
Sign In
Forget your password?
Username:  
Password:   
Stay Logged in for:

Donations to date: $62.50
Support This Site Today!

Top 3 Active Posters
Ntsmarkv
SetoTK
mcstec

Latest Forum Posts
dbconfig video guide...

kasl products on sale!...

forum topic...

webhost 2.0...

download page demo's d...

edit post in forum...

portal & users...

webhost 2 language sys...

cosmetic bug : no aft...

forum subtopics...


Forums
Forums
On Sale!
Downloads
Bookmarks
Bookmarks
Contact Us
Contact Us

Sale is Over

The sale in the download's section is now over.


Posted by ~Ntsmarkv on Monday, August 31st, 2010 10:03 PM MST

    Page: 1
You are on page 1 of 1     New Topic

shylor
$ 20.00

Developer
6 posts
Reputation:1

/forum/forum_messages.php?f=1&t=788#43
Posted on 2010-04-10 05:22:50

In Webhost 2 we plan on allowing you to setup your site to run in different languages. As the script is still in the early workings it might work like this.

There will be a setting in the database to set the default language such as "en" english - "fr" french, and such.

Changing this will cause the system to load a "en"/"fr" folder. The folder will then include basic .php files with keywords.

$text['hello_world'] = "hello world"
$text['contact_us'] = "contact us"

By default we will have a few files in there. However if someone creates a page mod. They will be able to use.

$lang->load('mymod');

and it will load the php language file such as.

en/mymod.php or fr/mymod.php

note that if it can not find a language file it will default back to english. If it can not find an english version it will just return null.

Remember this is very basic still and more options should be added as we go along.



Top | Bottom

SetoTK
VIP Member

21 posts
Reputation:8

/forum/forum_messages.php?f=1&t=788#44
Posted on 2010-04-12 10:22:21

wouldn't it be better to use the language's full name eg english spanish french german etc as short codes could confuse people and maybe prefix the folder and files with lang_

 

rather than returning null how about a warning box to appear?





Don't get up on my account, i'm happy to beat you to death in your chair.
Make up your mind to act decidedly and take the consequences. No good is ever done in this world by hesitation. - Thomas Huxley
Vomiting up non sequencial jibberish since release.
LWNetwork

sciato
Top | Bottom

shylor
$ 20.00

Developer
6 posts
Reputation:1

/forum/forum_messages.php?f=1&t=788#45
Posted on 2010-04-12 13:30:51

Well right now the files are in "language/{language}/file.php".

Also the En to English would be a quick change. Mods might also suggest a default language of their own later. So if the site is in English, but the mod was only written in German you would be able to overwrite the default site language until a convert was finished.



Top | Bottom

SetoTK
VIP Member

21 posts
Reputation:8

/forum/forum_messages.php?f=1&t=788#49
Posted on 2010-04-14 08:00:47

so if we wanted language/english/{file}.php we could instead of language/en/{file}.php

sweet, if file missing maybe add something like

"language file for mod [modname] not found contact support with support code : [randnumber][modname]lf[langname]"

 

support codes are fun they show idiots quickly





Don't get up on my account, i'm happy to beat you to death in your chair.
Make up your mind to act decidedly and take the consequences. No good is ever done in this world by hesitation. - Thomas Huxley
Vomiting up non sequencial jibberish since release.
LWNetwork

sciato
Top | Bottom

Page: 1



You must be logged in to reply to this message.





 


Search Forums

Articles
PHP - Introduction..

PHP - Comments / Math..

PHP - Work With MySql..

PHP - Login/Logout Scri..

PHP - Track Traffic..

PHP - Who's Online..


Site Stats
Since July 23, 2005:
1,075,782 hits
783,207 unique visitors
Today's Info:
205 hits
73 unique visitors
More Traffic Stats

Who's Online: Active
Users: 0
Guests: 75
Truncate Online Users:

KASL Members:
Currently 2,539
Newest member: Gilues
Forum Stats:
There are 9 categories
There are 16 topics
There are 67 posts
Page Load Time
Page loaded in 0.043 secs.