Hello,

I am needing to translate the message "You have x unread messages." and "You have 1 unread message."

In the translation search it comes up in broken pieces which makes it difficult to translate.
1) You have %unread.
2) 1 unread message
3) @count unread messages

Can this please be looked into in order to improve the ability to translate the message?

CommentFileSizeAuthor
#2 privatemsg.new_translation.patch999 bytesberdir

Comments

YK85’s picture

The 1) above should read:

You have <a href="@messages">%unread</a>.
berdir’s picture

Status: Active » Needs review
StatusFileSize
new999 bytes

Yes, this is bad.

Try the attached patch, you should have two separate strings now. If that works, please set to RTBC. Thanks.

YK85’s picture

Status: Needs review » Reviewed & tested by the community

I see from the patch that there should now be two strings for translation:
You have <a href="@messages">@count unread messages</a>
You have <a href="@messages">1 unread message</a>.

After applying the patch I was not able to find the string for translation at first. I had to send a test message, then login as the test user to see "You have 3 unread messages" show upon login. Then I went back as admin and search and found the string above - nice! Is this just the way drupal works?

Thanks!

berdir’s picture

Yes, that's how it works.

berdir’s picture

Category: support » bug
Status: Reviewed & tested by the community » Fixed

Thanks for reporting, reviewing, and testing! Committed to all branches.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

This message is automatically generated. If you feel it could be improved, feel free to comment on http://drupal.org/node/467548

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.