Why does BadgeOfHonor.cshtml use @T?

Topics: Customizing Orchard, General
May 13, 2011 at 3:15 PM

Why does the TheThemeMachine theme do this in the BadgeOfHonor.cshtml file:

@T("Powered by <a href=\"{0}\" target=\"_blank\">Orchard</a>", http://www.orchardproject.net)

Why not just use straight html like this:

Powered by <a href="http://www.orchardproject.net" target="_blank">Orchard</a>

May 13, 2011 at 4:11 PM

T is the Localizer. You'll see it used pretty much everywhere in Orchard.

May 13, 2011 at 10:18 PM
But the result is the same whether it is Local or not Local so is it just a convention and just not useful in this particular case?
Regards

Coordinator
May 13, 2011 at 11:10 PM

No it's not. In French, that would be "Construit avec <a href=\"{0}\" target=\"_blank\">Orchard</a>".