slide 45
Copyright © 2005 W3C (MIT, ERCIM, Keio)
"При проверке файла $filename была обнаружена $errors ошибка."
Handling variables
Composite messages
"Файл: $filename . Количество ошибок при проверке: $errors ."
1 ошибка
2 ошибки
5 ошибок
При проверке файла myFirst.html была обнаружена 268 ошибка.
Go to previous slide Go to next slide Go to the first slide Go to the slide index Go to the PDF version
Slide 45 of 53
So now we know how to code this type of text in PHP… or do we?
Let's think back to our example of how plurality works in Russian, and we realize that we still have a problem for that language. We only have a single string and it can only be translated one way - yet the Russian requires three variants of the word ошибка , depending on the number that precedes it.