Module: Last Forum Post
Posted by Maurice Makaay
|
Re: Module: Last Forum Post May 08, 2008 03:19AM |
Registered: 24 years ago Posts: 156 |
|
Re: Module: Last Forum Post May 08, 2008 03:20AM |
Admin Registered: 23 years ago Posts: 9,240 |
|
Re: Module: Last Forum Post May 08, 2008 04:06AM |
Registered: 24 years ago Posts: 156 |
This is exactly what I understood, Thomas.
To give this thread a sensible turnaround:
I wonder if there is any fallback mechanism if a requested phrase isn't available in $PHORUM['DATA']['LANG'].
It should be easy to implement it where loading $PHORUM['DATA']['DEFAULTLANG'] into $PHORUM['DATA']['LANG'] first, then load the /lang/ specific file, rather than running through the whole $PHORUM['DATA'] to see if a $PHORUM['DATA']['LANG'] phrase is empty.
Regards, Ulf Dunkel
To give this thread a sensible turnaround:
I wonder if there is any fallback mechanism if a requested phrase isn't available in $PHORUM['DATA']['LANG'].
It should be easy to implement it where loading $PHORUM['DATA']['DEFAULTLANG'] into $PHORUM['DATA']['LANG'] first, then load the /lang/ specific file, rather than running through the whole $PHORUM['DATA'] to see if a $PHORUM['DATA']['LANG'] phrase is empty.
Regards, Ulf Dunkel
|
Re: Module: Last Forum Post May 08, 2008 04:11AM |
Admin Registered: 23 years ago Posts: 9,240 |
|
Re: Module: Last Forum Post May 08, 2008 04:17AM |
Admin Registered: 21 years ago Posts: 8,532 |
To check if a language file is complete, go to the admin interface -> Language Tools. There you can generate a language file for the active Phorum version, which will get extra keys put in there if they are missing. Still a bit experimental and freaky code, but it is what I use for checking my Dutch files too.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: Last Forum Post May 08, 2008 04:32AM |
Registered: 24 years ago Posts: 156 |
Hi Maurice.
I'm afraid my "Manuage Language Files" doesn't work right. I choose an existing language, e.g. "Dansk - Danish", click on "Generate updated language file" and the page redraws. No file has been written or updated.
When I check the source code of the redrawn admin web page, I see that the page output stops somewhere ...
I will dig the code and come back soon.
Regards, Ulf Dunkel
I'm afraid my "Manuage Language Files" doesn't work right. I choose an existing language, e.g. "Dansk - Danish", click on "Generate updated language file" and the page redraws. No file has been written or updated.
When I check the source code of the redrawn admin web page, I see that the page output stops somewhere ...
I will dig the code and come back soon.
Regards, Ulf Dunkel
|
Re: Module: Last Forum Post May 08, 2008 05:11AM |
Registered: 24 years ago Posts: 156 |
|
Re: Module: Last Forum Post May 08, 2008 05:16AM |
Admin Registered: 21 years ago Posts: 8,532 |
Why did you rename a core file? I don't know why we should put such thing in any documentation frankly. It's the default fallback language file and Phorum cannot guess for it if you rename it. You should not rename it in the same way as you should not rename list.php to list_something.php.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: Last Forum Post May 08, 2008 05:20AM |
Registered: 24 years ago Posts: 156 |
|
Re: Module: Last Forum Post May 08, 2008 11:53AM |
Registered: 18 years ago Posts: 136 |
Sorry, only registered users may post in this forum.

