today i finally figured out what the "T method" is :)
it's a part of Orchard CMS and is used for localization (translating strings to other languages/locales):
example:
<br/>
@T("Price"): <b>$@Model.Price</b><br />
@Model.Sku<br/>
from the orchard article "Building the Templates":
This is very plain rendering of the shape. Notice the use of the T method call to wrap the "Price" string literal. This enables localization of that text.
from the orchard article "Localizing the Orchard Application and Orchard Modules":
All strings in the Orchard application are output through a single T() method that can look up a translated string based on the default site culture.
from the orchard article "How Orchard Works":
Localization of the application and its modules is done by wrapping string resources in a call to the T method: <%: T("This string can be localized") %>
IT, computer and programming tutorials and tips that i couldnt find anywhere else using google, from my daily work as a Senior Developer of solutions using Java and Linux.
20140606
20140604
orchard asp.net c# mvc - how to include jquery-ui.min.css file
in your view file, e.g. myView.cshtml:
@{
Style.Include("jquery-ui.min.css").AtHead();
}
thanks to Adding jquery ui themes Question for help.
UPDATE 20140610
orchard has a jQuery module already, so all i actually had to do was this:
thanks to Nicholas Mayne
@{
Style.Include("jquery-ui.min.css")
}
put the jquery-ui.min.css file in your MyModule/Styles/ folder:
MyModule/Styles/jquery-ui.min.css
the rendered HTML will look like this:
<link href="/Modules/MyModule/Styles/jquery-ui.min.css" rel="stylesheet" type="text/css" />
thanks to Adding jquery ui themes Question for help.
UPDATE 20140610
orchard has a jQuery module already, so all i actually had to do was this:
@{
Style.Require("jQueryUI").AtHead();
Script.Require("jQueryUI").AtHead();
}
thanks to Nicholas Mayne
Subscribe to:
Posts (Atom)