March 2011
Beginner to intermediate
300 pages
7h 23m
English
Wait! Some of you are already a step ahead. What happens if there is only a single field deleted? The message should then read "field" instead of "fields". Ah, this is tricky. Well, there is a function that solves precisely that problem:
_n( $msg_single, $msg_plural, $number, $textdomain)
This function allows you to provide variations on messages when there are chances of singular or plural versions of the text. It solves one problem, but we discourage its use because it causes another: its translation strings do not get picked up by Poedit's radar. Remember, Poedit and the other tools used to generate language files rely on simple text parsing that grabs only the first argument from a defined translation function. In other words, ...
Read now
Unlock full access