Ignore:
Timestamp:
Jan 8, 2011, 10:28:11 PM (11 years ago)
Author:
sauer
Message:

Wizard:

  • added I18N capability for permanent WizardControl elements (buttons) according to latest changes
  • added some German translations to config files to demonstrate the I18N capability of the wizard for configurable elements
  • changed language definition format from ISO 639-1 (like "de") to <languagecode2>-<country/regioncode2> (i.e. <ISO 639-1>-<ISO 3166> like "de-DE")
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/Wizard/WizardControl.xaml.cs

    r2297 r2302  
    2424    /// Interaction logic for WizardControl.xaml
    2525    /// </summary>
     26    [Cryptool.PluginBase.Attributes.Localization("Wizard.Properties.Resources")]
    2627    public partial class WizardControl : UserControl
    2728    {
    2829
    2930        private const string configXMLPath = "Wizard.Config.wizard.config.start.xml";
    30         private const string defaultLang = "en";
     31        private const string defaultLang = "en-US";
    3132        private XElement wizardConfigXML;
    3233
     
    111112            nextButton.IsEnabled = false;
    112113
    113             string currentLang = System.Globalization.CultureInfo.CurrentCulture.TwoLetterISOLanguageName;
    114 
    115114            //set headline
    116115            XElement headline = FindElementInElement(element, "headline");
     
    186185        private XElement FindElementInElement(XElement element, string xname)
    187186        {
    188             string currentLang = System.Globalization.CultureInfo.CurrentCulture.TwoLetterISOLanguageName;
     187            string currentLang = System.Globalization.CultureInfo.CurrentCulture.Name;
    189188            XElement foundElement = null;
    190189
Note: See TracChangeset for help on using the changeset viewer.