Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Shamim Hasan

    (@shamim51)

    pot file is updated. Please take a look.

    Thread Starter AleksDerFar

    (@aleksderfar)

    Works perfect now thanks.

    Thread Starter AleksDerFar

    (@aleksderfar)

    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.

    Thread Starter AleksDerFar

    (@aleksderfar)

    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.

    Plugin Author Shamim Hasan

    (@shamim51)

    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

    Plugin Author Shamim Hasan

    (@shamim51)

    Plugin Author Shamim Hasan

    (@shamim51)

    Some functions related to translation and pot file updated.You can again download from wordpress. This will fix those issues.

    Thread Starter AleksDerFar

    (@aleksderfar)

    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?

    Plugin Author Shamim Hasan

    (@shamim51)

    I had no idea about this.
    I have updated plugin files and pot file accordingly.
    Please download again from wordpress.

    Thanks

    Thread Starter AleksDerFar

    (@aleksderfar)

    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.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Translation problem’ is closed to new replies.