# File lib/gettext.rb, line 358 def npgettext(msgctxt, arg1, arg2 = nil, arg3 = nil) if arg1.kind_of?(Array) msgid = arg1[0] msgid_ctxt = "#{msgctxt}\004#{msgid}" msgid_plural = arg1[1] opt1 = arg2 opt2 = arg3 else msgid = arg1 msgid_ctxt = "#{msgctxt}\004#{msgid}" msgid_plural = arg2 opt1 = arg3 opt2 = nil end ret = nsgettext(msgid_ctxt, msgid_plural, opt1, opt2) if ret == msgid_ctxt ret = msgid end ret end