| Topic Archived |
View previous topic :: View next topic |
| Author |
Message |
Nikolaich Newbie


Offline Joined: Apr 22, 2004 Posts: 43 Location: Russia
|
Posted: Thu Apr 22, 2004 8:16 pm Post subject: The module a forum |
|
How it is possible to switch a forum to Russian?
Nikolaich's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Windows XP/Apache/MySQL 4.1.12-Max/PHP 5.0.3/Dragonfly 9.2.1.
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Thu Apr 22, 2004 8:21 pm Post subject: Re: The module a forum |
|
download a phpBB language pack and put it in modules/forums/language
_________________ There are two paths, the short one and the long one.
When you choose the short path you will notice it takes longer then the long path.
So READ the FAQ and Wiki first 
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
Nikolaich Newbie


Offline Joined: Apr 22, 2004 Posts: 43 Location: Russia
|
Posted: Thu Apr 22, 2004 8:31 pm Post subject: Re: The module a forum |
|
| DJMaze wrote: |
| download a phpBB language pack and put it in modules/forums/language |
And has made.
But in the administrative panel of a forum, there is no switching language.
How it is possible to correct?
Nikolaich's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Windows XP/Apache/MySQL 4.1.12-Max/PHP 5.0.3/Dragonfly 9.2.1.
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Thu Apr 22, 2004 10:24 pm Post subject: Re: The module a forum |
|
Try this open "includes/phpBB/functions.php" around line 187
| PHP: |
function init_userprefs($userdata) { global $board_config, $theme, $images; global $template, $lang, $phpEx, $phpbb_root_path; global $nav_links;
|
into
| PHP: |
function init_userprefs($userdata) { global $board_config, $theme, $images; global $template, $lang, $phpEx, $phpbb_root_path; global $nav_links, $currentlang; $board_config['default_lang'] = $currentlang;
|
_________________ There are two paths, the short one and the long one.
When you choose the short path you will notice it takes longer then the long path.
So READ the FAQ and Wiki first 
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
Nikolaich Newbie


Offline Joined: Apr 22, 2004 Posts: 43 Location: Russia
|
Posted: Fri Apr 23, 2004 4:22 pm Post subject: Re: The module a forum |
|
Thanks huge for the help, all works.
Nikolaich's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Windows XP/Apache/MySQL 4.1.12-Max/PHP 5.0.3/Dragonfly 9.2.1.
|
|
| Back to top |
|
 |
wi777 Newbie


Offline Joined: Apr 20, 2004 Posts: 44 Location: Taiwan
|
Posted: Sat Apr 24, 2004 12:42 am Post subject: Re: The module a forum |
|
the same language change problem has sloved in phpbb Forum in Chinese
except Coppermine Photo Gallery.
wi777's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) WINXP SP2/ apache 2.0.54/ php 5.0/ mysql 4.1
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Sat Apr 24, 2004 3:41 am Post subject: Re: The module a forum |
|
it has still a small bug open "includes/phpBB/functions.php" and change
| PHP: |
if ( !empty($userdata['user_lang'])) { $board_config['default_lang'] = $userdata['user_lang']; }
|
into
| PHP: |
if ( !empty($userdata['user_lang'])) { // $board_config['default_lang'] = $userdata['user_lang']; }
|
as well. DONE
_________________ There are two paths, the short one and the long one.
When you choose the short path you will notice it takes longer then the long path.
So READ the FAQ and Wiki first 
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
wi777 Newbie


Offline Joined: Apr 20, 2004 Posts: 44 Location: Taiwan
|
Posted: Tue Apr 27, 2004 6:02 am Post subject: Re: The module a forum |
|
| DJMaze wrote: |
it has still a small bug open "includes/phpBB/functions.php" and change
| PHP: |
if ( !empty($userdata['user_lang'])) { $board_config['default_lang'] = $userdata['user_lang']; }
| into
| PHP: |
if ( !empty($userdata['user_lang'])) { // $board_config['default_lang'] = $userdata['user_lang']; }
| as well. DONE  |
It's no problem while patch the code above and clear cache of browser.
thank you
wi777's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) WINXP SP2/ apache 2.0.54/ php 5.0/ mysql 4.1
|
|
| Back to top |
|
 |
|
|