1 sammymaudlin Jan 30, 2007 00:22
3 sammymaudlin Jan 30, 2007 02:06
Man I thought for sure that would do it!... but... it didn't.
4 john Jan 30, 2007 02:37
Man I thought for sure that would do it!... but... it didn't.
What version of b2 are you using?
5 sammymaudlin Jan 30, 2007 02:41
1.9.1 Anne.
6 afwas Jan 30, 2007 09:04
You can make a translation with only this line 'translated'. Go through http://manual.b2evolution.net/Localization these steps. If I'm correct you'll end up with this strings:
#: ..\..\..\inc\MODEL\items\_item.class.php:858
msgid "Comments are closed for this post."
msgstr "Registration required for commenting."
Now create a locale map like en_UK or en_US or your flavor, put the po file in there and it will translate the string whenever it occurs.
Please read the manual, I'm doing this from memory, which I know is not always 100% accurate :oops:
Good luck.
7 yabba Jan 30, 2007 10:36
_feedback.php, find this bit of code :-
// Comment form:
if( $disp_comment_form && $Item->can_comment() )
{ // We want to display the comments form and the item can be commented on:
And change it to :-
// Comment form:
if( $disp_comment_form && !$Item->can_comment( NULL ) )
{ // We want to display the comments form and the item cannot be commented on:
echo '<p>Sorry, you need to be a registered member to comment</p>';
}
elseif( $disp_comment_form )
{ // We want to display the comments form and the item can be commented on:
¥
I found this in the pot (language) file, line 4376, located in the locales dir. I'm not sure, but I think changing this line does the trick for you. If not: now you know where to find it.
Good luck
PS. this is for version 1.9.2