danielcrenna/i18n — pull request #13 by allegromanontroppo (2011-12-21 13:38:58+00:00)
Title: Have added __ alias for when a returned MvcHtmlString is unwelcome.

asp.net MVC Helpers expect a regular string as an input parameter which would mean @Html.LabelFor(m => m.Name, _("First Name")) or ModelState.AddModelError("", _("The user name or password provided is incorrect.")); would not compile.

ModelState.AddModelError("", _("The user name or password provided is incorrect.").ToString()); will work but this is ungainly.

A double underscore gettext alias returning a normal string is far more elegant.

-k__ has been added to the xgettext.exe invocation is order to harvest these string for the pot file as well.