Brian Schroer
Don't Call Me Mort!
Site Sections
Home
Contact
Syndication
Login
Posts
114
Comments
126
Trackbacks
10
localization
There are 4 entries for the tag
localization
Extending MvcContrib grid with custom DataAnnotationsModelMetadataProvider
Technorati Tags: .NET,ASP.NET,ASP.NET MVC,MvcContrib,localization In a prior post, I blogged about creating a custom class inheriting from System.Web.Mvc.DataAnnotati... to provide localized display names for my models. I was disappointed to find that the MvcContrib grid doesn't use the metadata provider for column names - it just splits "Pascal-case" property names into words (e.g. "FromDate" to "From Date") if a name hasn't been explicitly assigned. public string DisplayName ......
Share This Post:
Short Url:
http://wblo.gs/acs
Posted On
Tuesday, July 6, 2010 9:44 PM
|
Comments (5)
ASP.NET MVC localization DisplayNameAttribute alternatives: a better way
Technorati Tags: ASP.NET,ASP.NET MVC,localization In my last post, I talked bout creating a custom class inheriting from System.ComponentModel.Displ... to retrieve display names from resource files: [LocalizedDisplayName("Reme... public bool RememberMe { get; set; } That’s a lot of work to put an attribute on all of my model properties though. It would be nice if I could intercept the ASP.NET MVC code that analyzes the model metadata to retrieve display names to make it automatically ......
Share This Post:
Short Url:
http://wblo.gs/aWZ
Posted On
Monday, June 14, 2010 6:04 PM
|
Comments (6)
ASP.NET MVC localization DisplayNameAttribute alternatives: a good way
Technorati Tags: ASP.NET,ASP.NET MVC,localization The ASP.NET MVC HTML helper methods like .LabelFor and .EditorFor use model metadata to autogenerate labels for model properties. By default it uses the property name for the label text, but if that’s not appropriate, you can use a DisplayName attribute to specify the desired label text: [DisplayName("Remember me?")] public bool RememberMe { get; set; } I’m working on a multi-language web site, so the labels need to be localized. I tried pointing ......
Share This Post:
Short Url:
http://wblo.gs/aWY
Posted On
Monday, June 14, 2010 5:26 PM
|
Comments (1)
ASP.NET Localization: Enabling resource expressions with an external resource assembly
Technorati Tags: .NET,ASP.NET,localization I have several related projects that need the same localized text, so my global resources files are in a shared assembly that’s referenced by each of those projects. It took an embarrassingly long time to figure out how to have my .resx files generate “public” properties instead of “internal” so I could have a shared resources assembly (apparently it was pretty tricky pre-VS2008, and my “googling” bogged me down some out-of-date instructions). It’s easy ......
Share This Post:
Short Url:
http://wblo.gs/aTw
Posted On
Saturday, June 5, 2010 5:15 PM
|
Comments (3)
Archives
August 2012 (1)
July 2012 (2)
June 2012 (1)
April 2011 (1)
February 2011 (1)
January 2011 (1)
December 2010 (2)
November 2010 (6)
October 2010 (4)
September 2010 (3)
August 2010 (6)
July 2010 (17)
June 2010 (20)
May 2010 (2)
January 2010 (1)
December 2009 (3)
October 2009 (5)
September 2009 (8)
June 2008 (3)
May 2008 (3)
March 2008 (1)
December 2007 (1)
November 2007 (1)
August 2007 (1)
July 2007 (3)
March 2007 (1)
October 2006 (4)
September 2006 (1)
June 2006 (1)
April 2006 (1)
March 2006 (1)
February 2006 (8)
Post Categories
.NET
freetools
PowerShell
Tech·Ed
JavaScript
Sandcastle
jQuery
ASP.NET
ASP.NET MVC
community
MvcContrib
localization
Unity IOC
St. Louis
CSS
T4MVC
WatiN
testing
Windows Phone 7
Sliverlight
Virtual Brown Bag
Visual Studio
Links
My del.icio.us .NET links
My del.icio.us C# links
Twitter
Twitter
BrianSchroer
So it's "floppy bat" day at Busch Stadium, eh?
#stlcards
about 7 days ago
BrianSchroer
MN Rep. Pastor Tim Faust on marriage equality: "... the right to impose our religious beliefs on somebody else?"
http://t.co/SECqAoBmt7
about 8 days ago
BrianSchroer
Mad Men will end with someone throwing Don Draper off the roof of a building for inventing the word "sale-a-bration".
about 11 days ago
BrianSchroer
The woman introducing the
#resharper
webcast said "refraktoring". Must be a Battlestar Galactica fan
about 11 days ago
BrianSchroer
Invited to a post-project "Lesson's Learned" meeting. Lesson 1: Don't use apostrophes for plurals.
about 11 days ago
BrianSchroer
Happy Sink o' de Mayo
http://t.co/tnaJNo3yu4
about 14 days ago
BrianSchroer
I haven't seen the guys in the striped shirts murder the Blues like this since "Jailhouse Rock".
#stlblues
about 15 days ago
BrianSchroer
Why is it called "Mid Rivers Mall"? Mid-river would be a terrible place to build a mall.
about 15 days ago
BrianSchroer
@mulbud
Thanks, Mul. Always good to see you.
about 15 days ago
BrianSchroer
if (presenter.ShowOfHandsRequests.Count() <= 3) { me.RaiseHand(); } else { me.SayScrewIt(); }
#KCDC2013
about 15 days ago
Tag Cloud
.net
ASP.NET
ASP.NET MVC
C#
conferences
CSS
diabetes
freetools
INotifyPropertyChanged
JavaScript
jQuery
Kansas City
localization
MvcContrib
MVVM
Sandcastle
Scott Hanselman
Silverlight
testing
Windows Phone 7
Copyright © 2005 Brian Schroer
This work is licensed under a
Creative Commons License