Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] 'Board default' not shown in language dropdown
#1
The 'Board default' option is not shown in the 'Board language' dropdown in the 'Edit user' page in the AdminCP. This means that, if a user registers and leaves the language option at 'Board default', and I then edit the user in the AdminCP, the first language in the language dropdown is selected and saved (which in my case is Farsi).

Adding a 'Board default' option as the first option (like in the registration form and the UserCP) would solve this.
#2
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.
#3
Hi Ryan,
can i have changes for fix this situation on board manuely ?

thanks.
_______________________________________________

It is not disgraceful to ask, it is disgraceful no to ask.


sory for my english .
#4
(2008-09-03, 02:43 PM)roy Wrote: Hi Ryan,
can i have changes for fix this situation on board manuely ?

thanks.

As a suggestion you can edit "admin\modules\user\users.php" in line 1117:

This line is:

		"<label for=\"language\">{$lang->board_language}:</label><br />".$form->generate_select_box("language", $lang->get_languages(), $mybb->input['language'], array('id' => 'language'))

You can change it to:

		"<label for=\"language\">{$lang->board_language}:</label><br />".$form->generate_select_box("language", array_merge(array("" => $lang->use_default),$lang->get_languages()), $mybb->input['language'], array('id' => 'language'))

Wink
#5
(2008-09-08, 09:32 PM)SaeedGh Wrote:
(2008-09-03, 02:43 PM)roy Wrote: Hi Ryan,
can i have changes for fix this situation on board manuely ?

thanks.

As a suggestion you can edit "admin\modules\user\users.php" in line 1117:

This line is:

		"<label for=\"language\">{$lang->board_language}:</label><br />".$form->generate_select_box("language", $lang->get_languages(), $mybb->input['language'], array('id' => 'language'))

You can change it to:

		"<label for=\"language\">{$lang->board_language}:</label><br />".$form->generate_select_box("language", array_merge(array("" => $lang->use_default),$lang->get_languages()), $mybb->input['language'], array('id' => 'language'))

Wink

wery thanks SaeedGh Smile
_______________________________________________

It is not disgraceful to ask, it is disgraceful no to ask.


sory for my english .
#6
very nice SaeedGh Thanks
پشتیبانی رسمی فارسی مای بی بی
www.mybboard.ir
Translator (فارسی)persianToungue
www.ithost.ir
Hosting And DomainsToungue


Forum Jump:


Users browsing this thread: 1 Guest(s)