Problem with plural forms



Hello,

I have a problem with plural forms and placeholders. I don't quite know
what to do because every time I run msgfmt, it outputs an error. Bellow
are the strings which are relevant:

msgid "If you don't save, changes from the last hour will be permanently
lost."
msgid_plural "If you don't save, changes from the last %d hours will be
permanently lost."
msgstr[0] "V kolikor ne shranite, bodo spremembe zadnje ure trajno
izgubljene."  # <----- according to msgfmt, error occurs in this line 
msgstr[1] "V kolikor ne shranite, bodo spremembe zadnjih %d ur trajno
izgubljene."
msgstr[2] "V kolikor ne shranite, bodo spremembe zadnjih %d ur trajno
izgubljene."
msgstr[3] "V kolikor ne shranite, bodo spremembe zadnjih %d ur trajno
izgubljene."

As you can see, in original message %d is only present in plural but not
in singular form. The same situation in translated message. The first
line (singular form) doesn't contain %d, every other line does contain
it. It should be OK, but it isn't. I might solve the problem by putting
%d in the first line but I don't know if that is alright. Any
suggestion?

Thanks,
Matic Zgur



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]