PhocaCz / PhocaDownload

Phoca Download is Joomla! CMS extension. Component which displays downloadable documents on website.
http://www.phoca.cz/phocadownload
Other
10 stars 6 forks source link

Correct word forms in "download count" #11

Closed Kostelano closed 4 years ago

Kostelano commented 5 years ago

See https://phoca.cz/forum/viewtopic.php?f=31&t=59921#p156427 (point 3). The output of the language constant depending on the value (quantity).

In English, everything is simple:

In Russian and, for example, Ukrainian, the form is more complicated:

This solution is intended for the correct substitution of the word depending on the number. Each other language (translation) will put its own word form or universal for all cases. Of course, you can just put one form of the word and not bother, but I came up with such a condition. Perhaps this will be a good solution.

After patch

English: https://ibb.co/wJCLByR Russian: without a screenshot, but the word forms are correct.

PhocaCz commented 5 years ago

Hi, thank you very much for this PR.

Jan

PhocaCz commented 4 years ago

Languages added into language file, the code itself is still under review - not sure if it should be set in core output or per customized override. :idea: