Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ Languages and alternative language support ⇒ i18n - l10n (languages) :: Archives ⇒ The module a forum :: Archived


The module a forum :: Archived
Want a language pack or convertor? Have feedback on either of these? Are you a developer of one of these? Here is the place to post. Read the announcements here first!
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  i18n - l10n (languages)

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

Offline Offline
Joined: Apr 22, 2004
Posts: 43
Location: Russia
PostPosted: 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
View user's profile Visit poster's website ICQ Number
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: 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 Razz

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
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
Nikolaich
Newbie
Newbie

Offline Offline
Joined: Apr 22, 2004
Posts: 43
Location: Russia
PostPosted: 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
View user's profile Visit poster's website ICQ Number
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: 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 Razz

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
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
Nikolaich
Newbie
Newbie

Offline Offline
Joined: Apr 22, 2004
Posts: 43
Location: Russia
PostPosted: 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
View user's profile Visit poster's website ICQ Number
wi777
Newbie
Newbie

Offline Offline
Joined: Apr 20, 2004
Posts: 44
Location: Taiwan
PostPosted: 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
View user's profile Visit poster's website Yahoo Messenger
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: 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 Very Happy

_________________
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 Razz

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
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
wi777
Newbie
Newbie

Offline Offline
Joined: Apr 20, 2004
Posts: 44
Location: Taiwan
PostPosted: 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 Very Happy

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
View user's profile Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  i18n - l10n (languages)
Page 1 of 1
All times are GMT

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

閱讀詳細內容...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy