Displaying 1 result from an estimated 1 matches for "pending_friends_for_us".
Did you mean:
pending_friends_for_user
2009 Feb 06
0
gettext .po msgid_plural failed
Hi All,
I am using gettext and .po files for my translation, however, I found it
very difficult to apply plural form translation, is there anything goes
wrong?
in controller:
<%=h _("You received %{no_friend} friend invitation") %{:no_friend =>
pending_friends_for_user.length } %><br/>
in en/myapp.po
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;\n"
"X-Poedit-Cou...