0004876: pagination is wrong when on a RTL language (fixes #1537)