pot file is updated. Please take a look.
Works perfect now thanks.
bug report?
in
You have (x) new message y (x) new announcement
“new message” and “new announcement” translation doens’t work properly and I had to change it from fep-announcemet-class.php directly.
Completing the previous post.
When I translate top notification bar “%d new message%s” or ” %d new announcement%s” to “%d nuevo%s mensaje%s” or “%d nuevo%s anuncio%s” I get a php error. Only when I disable the first %s the problem is solved.
On the other hand I’m unnable to translate “You have (x) new message and (x) new announcement” from Front End PM page using translate files only editing php files directly.
be careful when translate those, some are %s and some are $s . take a close look
maybe those will be %d nuevo mensaje%s and %d nuevo anuncio%s
try these and let me know
i am nor familiar with your language
Some functions related to translation and pot file updated.You can again download from wordpress. This will fix those issues.
It works better now thanks. I found a problem with plural form on Announcement box.
On the other hand spanish plurals are a little different from English. For example:
English plural: “new messages“
Spanish plural: “news messages“
There is a way to get a plural for “new” too?
I had no idea about this.
I have updated plugin files and pot file accordingly.
Please download again from wordpress.
Thanks
Perfect! I can now translate properly into spanish thanks.
To get plural form on 0 messages/announcements change ( $x > 1 ) to ( $x <> 1 )
Right here in functions.php
$sm = ( $numNew > 1 ) ? __('new messages', 'fep'): __('new message', 'fep');
And here in fep-announcement-class.php
$sa = ( $numNew > 1 ) ? __('new announcements', 'fep'): __('new announcement', 'fep');
For the next update would be great get “No new messages or new announcements” to avoid those red numbers.