When no notes have been added yet to the page:
1) instead of "0 notes" it displays "@count[2] notes";
2) text is not translated, e.g. instead of "0 Notizen" it displays "@count[2] notes".

As soon as 1 or more notes are added, the problem disappears on the relevant page.

The same error occurs on both 6.x-1.x-dev and 6.x-1.1.

CommentFileSizeAuthor
0 votes count error.jpg4.42 KBreinis.berzins

Comments

reinis.berzins’s picture

I found out that this error happens only in non-English languages interface, therefore I made a temporary solution in the translation files, e.g. ru.po, de.po, fr.po:

Just below these 3 already existing lines...

#: js/sticky_notes.js:0; sites/all/modules/sticky_notes/js/sticky_notes.js
msgid "@count notes"
msgstr "@count редакционные комментарии"

...I added 3 new lines...

#: js/sticky_notes.js:0; sites/all/modules/sticky_notes/js/sticky_notes.js
msgid "@count[2] notes"
msgstr "0 редакционные комментарии"

...and imported in the Drupal installation.

And now the problem is gone. Although this isn't a normal translation process (as @count[2] notes is not offered for translation), but a workaround.