Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1071471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:43:08+00:00 2026-05-16T20:43:08+00:00

My application has to support multiple languages and should be able to switch the

  • 0

My application has to support multiple languages and should be able to switch the language on run time. For that purpose I am using LocalizationExtension from codeplex (http://wpflocalizeextension.codeplex.com/) I am using Ribbon Contorl in my application. I am creating ribbonCommands as window resource and Binding the LableTitle and other properties withLocalizationExtension class.

    <MvvmCore:RibbonCommandExtended x:Key="SwitchLanguageCommand" 
                            CanExecute="RibbonCommandExtended_CanExecute"
                            Executed="RibbonCommandExtended_Executed"
                            LabelTitle="{lex:LocText Key=SwitchLanguage,Dict=LanRes}"
                            ToolTipTitle="{lex:LocText Key=SwitchLanguage,Dict=LanRes}"
                            LargeImageSource="{lex:LocImage Key=ChangeLanguage,Dict=LanRes}"/>

Then assigning it to button Command property as static resource.

<rb:RibbonButton x:Name="EnglishButton" Command="{StaticResource SwitchToEnglishCommand}" Click="EnglishButton_Click">

Here is my RibbonCommandExtended class.

 public class RibbonCommandExtended : RibbonCommand
    {
        private ICommand m_command;
        public ICommand Command
        {
            get { return m_command; }
            set
            {
                m_command = value;
                if (m_command != null)
                {
                    this.CanExecute += UsCanExecute;
                    this.Executed += UsExecuted;
                }
                else
                {
                    this.CanExecute -= UsCanExecute;
                    this.Executed -= UsExecuted;
                }
            }
        }

        private void UsExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            Command.Execute(e.Parameter);
        }

        private void UsCanExecute(object sender, CanExecuteRoutedEventArgs e)
        {
            e.CanExecute = Command.CanExecute(e.Parameter);
        }
    }

When my program starts, then the ribbon control picks the right language strings and images. But when I change the language on runtime then I could’t see any change in ribbon control localized text and image. Because the RibbonCommand’s LabelTitle, LargeImageSource and all other properties are not Dependency properties.

Have someone solved the issue already? Or is there any other way rather then LocalizationExtension to make my application localized so that it fulfills my requirements?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:43:08+00:00Added an answer on May 16, 2026 at 8:43 pm

    It is easy to use the LocalizationExtension to localize the application. But perhaps, we should back to the basic method to do the localization, separated culture resource and the change it on the run-time. Please refer to the http://msdn.microsoft.com/en-us/library/ms788718.aspx. You may need the Locbaml tool to generate the CVS that we can edit it for several culture, and then load the CSV to the resource dll file for different culture, and change it by the code:

    Thread.CurrentThread.CurrentCulture = new CultureInfo(…);
    The following project provides a guidance about WPF localization – WPF Localization Guidance Whitepaper may help you: http://wpflocalization.codeplex.com/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

An application that I support has recently begun experiencing extended periods of time required
For anyone that has developed a customer-facing Java Swing application that supports multiple languages,
I'm developing a web application that has to support lots of simultaneous requests, and
I develop client application that invokes product that has multiple versions and my customers
I have an application that needs to support a multilingual interface, five languages to
My web application has to support multiple devices. I have written common css for
I've an application published on Google Marketplace which has a support page URL in
My application has multiple SQLite tables(around 20 with different fields). This I have created
I have a CMS application that manages multiple websites, today whenever i change the
I have an application that I would like to have support SQL Server Mirroring.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.