Note that there are some explanatory texts on larger screens.

plurals
  1. POShould Microsoft avoid implementing a feature in .Net just because internationalising it is too difficult?
    primarykey
    data
    text
    <p>I raised a request over at Microsoft Connect regarding the formatting of dates ("<a href="http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=327261" rel="nofollow noreferrer">DateTime Formatting should caluclate the correct suffix for the day</a>"). Basically I wanted to have a formatting string code for adding the suffix to the day number. So "1 Jan" would be formatted "1st Jan" and "2 Jan" formatted "2nd Jan" etc.</p> <p>This is quite easy to do for the English case however Microsoft have rejected the idea on the grounds that it would be too hard to internationalise.</p> <p>I was just wondering if people agree that it is reasonable for Microsoft to make life harder for English programmers writing solely for an English market, just because they can’t cater for the Non-English market?</p> <p><strong>Edit:</strong> Ok, I accept the argument that it is there framework to do what they want with. I was asking more out of an ideological sense. Also remember that there is an easy fallback for Non-English cultures which is to add nothing, which makes people no worse off than they are now.</p> <p><strong>Edit 2:</strong> For me this is more than an hours work. I need to support code that looks something like this:</p> <pre><code> DateTime minDate = new DateTime(2003, 12, 10); string errorMessage = ValidationMessageResource.DateTooEarly; Console.WriteLine(String.Format(errorMessage, minDate)); </code></pre> <p>I have no control over the resource file's contents and the resource string is often something like this "The date should not be before {0:D}". To do this I would need to implement my own IFormatProvider class which would have to support all the different formatting strings Microsoft's formatter accepts. Microsoft doesn’t seem to have given an easy way to extend their formatter through inheritance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload