-
Notifications
You must be signed in to change notification settings - Fork 108
Description
This is not a big issue, it's more an annoyance. I can fix it myself, but I wanted to discuss the best approach with you, since I'd like to create a pull request when I'm done.
The problem is that on search results, category pages, and tag pages (and possibly others as well), empty parenthesis is displayed whenever there are more than 1 post to be displayed, but not enough posts to fill more than one page. In other words, the pagination information "this is page X of Y" is missing, but the parenthesis is still displayed.
The reason for this is that the parenthesis enclose the pagination information in the translation string for multiple results: "Found %1$s search results for <strong>%2$s</strong> (%3$s)." The way I see it, there are three possible solutions here:
- Always display pagination information. This is by far the easiest approach, because there is no need to touch the translations. But it will result in strings like
"this is page 1 of 1"when there is only one page. - Move the parenthesis from the
"Found %1$s search results for <strong>%2$s</strong> (%3$s)."to the"this is page <strong>%1$s</strong> of <strong>%2$s</strong>"translation string. This solution will result in quite a lot of work in the current translations. - Remove the parenthesis from the translation string and put them in code instead. This solution will also result in quite a lot of work in the current translations. But IMHO this is the most correct approach. It feels like not having the parenthesis in the translated strings is a more robust solution as changes to the formatting of the string won't break the existing translations. In my mind, there should be no formatting in the translation texts at all, which means that
<strong>-elements should also be removed. But I'm not sure how that will work in practice, perhaps it will make translating into some languages very hard.
Any thoughts on this?