Click here to Skip to main content
15,891,431 members
Articles / Programming Languages / XML

Globalization, Internationalization (I18N), and Localization using C# and .NET 2.0

Rate me:
Please Sign up or sign in to vote.
4.27/5 (15 votes)
2 Nov 2009CPOL8 min read 152.9K   5K   66  
The globalization, internationalization (I18N), and localization of Windows applications in the .NET 2.0 platform.
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.1873
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace CultureInfoDemo {
    using System;
    
    
    /// <summary>
    ///   A strongly-typed resource class, for looking up localized strings, etc.
    /// </summary>
    // This class was auto-generated by the StronglyTypedResourceBuilder
    // class via a tool like ResGen or Visual Studio.
    // To add or remove a member, edit your .ResX file then rerun ResGen
    // with the /str option, or rebuild your VS project.
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    internal class CommonResource {
        
        private static global::System.Resources.ResourceManager resourceMan;
        
        private static global::System.Globalization.CultureInfo resourceCulture;
        
        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
        internal CommonResource() {
        }
        
        /// <summary>
        ///   Returns the cached ResourceManager instance used by this class.
        /// </summary>
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
        internal static global::System.Resources.ResourceManager ResourceManager {
            get {
                if (object.ReferenceEquals(resourceMan, null)) {
                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CultureInfoDemo.CommonResource", typeof(CommonResource).Assembly);
                    resourceMan = temp;
                }
                return resourceMan;
            }
        }
        
        /// <summary>
        ///   Overrides the current thread's CurrentUICulture property for all
        ///   resource lookups using this strongly typed resource class.
        /// </summary>
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
        internal static global::System.Globalization.CultureInfo Culture {
            get {
                return resourceCulture;
            }
            set {
                resourceCulture = value;
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Application Culture English Name:  .
        /// </summary>
        internal static string ApplicationCultureEnglishName {
            get {
                return ResourceManager.GetString("ApplicationCultureEnglishName", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Application Culture Language Name:  .
        /// </summary>
        internal static string ApplicationCultureLanguageName {
            get {
                return ResourceManager.GetString("ApplicationCultureLanguageName", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Application Culture Name:  .
        /// </summary>
        internal static string ApplicationCultureName {
            get {
                return ResourceManager.GetString("ApplicationCultureName", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Application Culture Native Name:  .
        /// </summary>
        internal static string ApplicationCultureNativeName {
            get {
                return ResourceManager.GetString("ApplicationCultureNativeName", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Application Culture Neutral Name:  .
        /// </summary>
        internal static string ApplicationCultureNeutralName {
            get {
                return ResourceManager.GetString("ApplicationCultureNeutralName", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Application Culture Windows Name:  .
        /// </summary>
        internal static string ApplicationCultureWindowsName {
            get {
                return ResourceManager.GetString("ApplicationCultureWindowsName", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Sorry... You will born in future...!!!.
        /// </summary>
        internal static string BornInFuture {
            get {
                return ResourceManager.GetString("BornInFuture", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to  Day(s)-  .
        /// </summary>
        internal static string Days {
            get {
                return ResourceManager.GetString("Days", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to DOB is incorrect..
        /// </summary>
        internal static string DOBIsIncorrect {
            get {
                return ResourceManager.GetString("DOBIsIncorrect", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Formatted Date/Time:  .
        /// </summary>
        internal static string FormattedDateTime {
            get {
                return ResourceManager.GetString("FormattedDateTime", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Formatted Number:  .
        /// </summary>
        internal static string FormattedNumber {
            get {
                return ResourceManager.GetString("FormattedNumber", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Full Date Time Pattern:  .
        /// </summary>
        internal static string FullDateTimePattern {
            get {
                return ResourceManager.GetString("FullDateTimePattern", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to In {0}. {1}.
        /// </summary>
        internal static string In {
            get {
                return ResourceManager.GetString("In", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Invariant Culture Text.
        /// </summary>
        internal static string InvariantCultureText {
            get {
                return ResourceManager.GetString("InvariantCultureText", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to  Month(s)-  .
        /// </summary>
        internal static string Months {
            get {
                return ResourceManager.GetString("Months", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Being read from resource file..
        /// </summary>
        internal static string ReadFromResource {
            get {
                return ResourceManager.GetString("ReadFromResource", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Region Currency English Name:  .
        /// </summary>
        internal static string RegionCurrencyEnglishName {
            get {
                return ResourceManager.GetString("RegionCurrencyEnglishName", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Region Currency Symbol:  .
        /// </summary>
        internal static string RegionCurrencySymbol {
            get {
                return ResourceManager.GetString("RegionCurrencySymbol", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Region English Name:  .
        /// </summary>
        internal static string RegionEnglishName {
            get {
                return ResourceManager.GetString("RegionEnglishName", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Year(s)-  .
        /// </summary>
        internal static string Years {
            get {
                return ResourceManager.GetString("Years", resourceCulture);
            }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Philips
India India
Have been working with computers since the early 00's. Since then I've been building, fixing, configuring, installing, coding and designing with them. At present I mainly code windows applications in C#, WCF, WPF and SQL. I'm very interested in Design Patterns and try and use these generic principles in all new projects to create truly n-tier architectures. Also I like to code for making the User Interface very attractive...

Comments and Discussions