Create message table entries for plural forms and lookup them in JS.

In mo files, messages having plural forms are stored as concatenation of singular form and plural form with NUL separator and low-level PHP gettext functions return as it is. Currently, they are not handled correctly and ngettext() in JS does not look up message tables. This pull request fixes them.