|
Language support
|
|
12-13-2008, 07:33 AM
Post: #1
|
|||
|
|||
|
Language support
I'm now creating a multiple language support for THT.
How it works: -The compile.php file (this file gets always loaded) loads english.php.inc -english.php.inc contains the language array -if THT needs text, it gets the text out of the language array PHP Code: <? |
|||
|
12-13-2008, 03:25 PM
Post: #2
|
|||
|
|||
|
RE: Language support
Cool! And maybe a language class to go with it? Like:
PHP Code: <?phpKevin Mark - TheHostingTool Lead Developer |
|||
|
12-14-2008, 04:17 AM
Post: #3
|
|||
|
|||
|
RE: Language support
Ok, good idea!
|
|||
|
12-14-2008, 06:12 AM
Post: #4
|
|||
|
|||
|
RE: Language support
Alfaleader, I still go with my idea, it's the best due to new versions and basically all files being replaced. You should go in the output file and use the preg_replace function with all the HTML searching for words and then replacing them with their foreign counterparts.
Jonny H - THT Main Developer & Founder |
|||
|
12-14-2008, 09:12 AM
(This post was last modified: 12-14-2008 09:33 AM by alfaleader.)
Post: #5
|
|||
|
|||
|
RE: Language support
Doesn't that slows the server to much? But OK, I'll try to do this. And don't it gives problems?
if 'hello test test' must be replaces, but for this 'test' gets replaced to 'blabla', then will 'hello test test' become 'hello blabla blabla' and it won't get replaced. |
|||
|
12-14-2008, 02:02 PM
(This post was last modified: 12-14-2008 04:36 PM by Jonny.)
Post: #6
|
|||
|
|||
RE: Language support
(12-14-2008 06:12 AM)Jonny Wrote: Alfaleader, I still go with my idea, it's the best due to new versions and basically all files being replaced. You should go in the output file and use the preg_replace function with all the HTML searching for words and then replacing them with their foreign counterparts. Some languages have different sentence structures. So that wouldn't work. MyBB pulls of multiple language support quite nicely. It wouldn't be a bad idea to model that system. Kevin Mark - TheHostingTool Lead Developer |
|||
|
12-14-2008, 04:36 PM
Post: #7
|
|||
|
|||
|
RE: Language support
I don't think you grasp, like the language class, it does the same, searches for that sentence eg: "Page doesn't exist" then replaces it with it's counterpart. It would work for all versions, with tweaks. I won't be changing output.php soon. Minus the next version anyway.
Jonny H - THT Main Developer & Founder |
|||
|
12-14-2008, 06:23 PM
Post: #8
|
|||
|
|||
|
RE: Language support
Ah. I see. I though you meant having it done word-by-word. Sorry, Jonny.
Kevin Mark - TheHostingTool Lead Developer |
|||
|
12-15-2008, 05:23 AM
Post: #9
|
|||
|
|||
|
RE: Language support
Ok, i'll try to do this.
|
|||
|
12-15-2008, 01:41 PM
Post: #10
|
|||
|
|||
|
RE: Language support
Well, how about that be implemented near v2.0?
I'm talking too far anyway?
Jimmie Lin - Community Manager & THT.Next Developer |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)




![[Image: standard.png]](http://twitstamp.com/kmark937/standard.png)
![[Image: standard.png]](http://twitstamp.com/thehostingtool/standard.png)
