How to set up display names for my record's members?

Topics: Customizing Orchard, Localization
Mar 18, 2013 at 8:52 PM
I have created a custom type in code.
            SchemaBuilder.CreateTable("RequestPartRecord", table => table
                .Column("BorrowerName", DbType.String)
                .Column("PhoneNumber", DbType.String)
                .Column("LoanNumber", DbType.String)

When I use it in custom forms it shows like "BorrowerName"
@T("BorrowerName"): <b>$@Model.BorrowerName</b><br />
I'd like to have something "Borrower" or "Client Name".
How do I alter my record type via the migration file?
How do I support three languages for display names?
Mar 18, 2013 at 9:36 PM
You can put any text you like in the call to T, e.g.
@T("Borrower or Client Name"): <b>$@Model.BorrowerName</b><br />
T is a method that will leverage PO files to look for a translation of the current culture for the specified text string.
To support three languages, create 3 PO files, one for each culture.