Plugin Developer Discussion

Discussion for FogBugz Plugin developers

How to detect Pig-Latin from Plugins?

System.Globalization.CultureInfo.CurrentUICulture returns what seems to be en-US for piglatin. How does one detect piglatin from a plugin?
Stefan Rusek Send private email
Sunday, May 17, 2009
Unfortunately, Microsoft doesn't have pig-latin as a pre-defined culture, so we just use en-US.  Maybe some day we'll get around to defining it ourselves.
David Fullerton Send private email
Monday, May 18, 2009
CLocalizer also returns english instead of pig-latin. Even something as simple as the following would solve the problem. The Name property maps to the IetfLanguageTag used in the CLocalizer.

class PigLatinCultureInfo : CultureInfo
    public PigLatinCultureInfo() : base("en-us") {}
    public override string Name { get { return "pig-latin"; }
    public override string DisplayName { get { return "Pig Latin"; }
    public override string EnglishName { get { return "Pig Latin"; }
    public override string NativeName{ get { return "Igpay Atinlay"; }
Stefan Rusek Send private email
Thursday, May 21, 2009

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
Powered by FogBugz