I had it setup with saying Message and Messages with IF statements at first and David63 shot it down.
He said I would have to set it up with the
Plural Rules in the listener.php before it would pass.
I don't understand all that stuff. Look at "Private messages [0]" in your header. phpBB dose not use Plural Rules there.
I would like for this to use Messages and Message depending on having 1 or more messages.
I think I'm going to change the event/overall_header_page_body_before.html template back to this..
Code: Select all
<!-- IF S_DISPLAY_PM and (S_USER_NEW_PRIVMSG or S_USER_UNREAD_PRIVMSG) -->
<div class="pm-notify">
<div class="inner">
<span class="pm-read"><a href="{U_PRIVATEMSGS}">{L_PM_READ} <!-- IF S_USER_UNREAD_PRIVMSG > 1 -->{L_MESSAGES}<!-- ELSE -->{L_MESSAGE}<!-- ENDIF --></a></span>
<span class="pm-clapping">{CURRENT_USERNAME_SIMPLE}</span>
<span class="pm-message">{L_PM_YOU_HAVE}
<!-- IF S_USER_UNREAD_PRIVMSG > S_USER_NEW_PRIVMSG and S_USER_NEW_PRIVMSG != 0 -->
[<span class="pm-new">{S_USER_NEW_PRIVMSG}</span>] {L_PM_NEW} <!-- IF S_USER_NEW_PRIVMSG > 1 -->{L_MESSAGES}<!-- ELSE -->{L_MESSAGE}<!-- ENDIF --> <span class="pm-mail"></span> [<span class="pm-unread">{S_USER_UNREAD_PRIVMSG}</span>] {L_PM_UNREAD} <!-- IF S_USER_UNREAD_PRIVMSG > 1 -->{L_MESSAGES}<!-- ELSE -->{L_MESSAGE}<!-- ENDIF -->
<!-- ELSE -->
<span class="pm-mail"></span>
<!-- IF S_USER_NEW_PRIVMSG --> [<span class="pm-new">{S_USER_NEW_PRIVMSG}</span>] {L_PM_NEW} <!-- IF S_USER_NEW_PRIVMSG > 1 -->{L_MESSAGES}<!-- ELSE -->{L_MESSAGE}<!-- ENDIF -->
<!-- ELSE --> [<span class="pm-unread">{S_USER_UNREAD_PRIVMSG}</span>] {L_PM_UNREAD} <!-- IF S_USER_UNREAD_PRIVMSG > 1 -->{L_MESSAGES}<!-- ELSE -->{L_MESSAGE}<!-- ENDIF -->
<!-- ENDIF --></span>
<!-- ENDIF -->
</div>
</div>
<!-- ENDIF -->
It just want be validated until I can figure out how to incorporate that Plural Rules stuff. I wish there was an extension example.