Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I found the language not effect #188

Closed
sdwdjzhy opened this issue Mar 10, 2023 · 2 comments
Closed

I found the language not effect #188

sdwdjzhy opened this issue Mar 10, 2023 · 2 comments

Comments

@sdwdjzhy
Copy link

Describe the bug

Test Projects

I found that when using the old project template, the language class library cannot be loaded。

The test projects has two project .they are NET 472,
the [TestHandyControls] not working properly
the [TestHandyControlsSDKTemplate] working ok

Steps to reproduce the bug

Create project with "WPF Application (.Net framework)" not "WPF Application".

I test .Net framework 4.7.2.

    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {

        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            ConfigHelper.Instance.SetLang("zh-CN");
        }
    }

 // in MainWindow
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            HandyControl.Controls.MessageBox.Show("adsfasdf");
        }

Expected behavior

i hope to the button's content is "确定" not "Confirm".

Screenshots

image

NuGet package version

HandyControls (Custom version) 3.4.0

IDE

Visual Studio 2022

Framework type

.Net Framework 4.7.2

Windows version

May 2021 Update (19043)

Additional context

No response

@ghost1372
Copy link
Owner

You should install language pack
https://www.nuget.org/packages/HandyControls.Lang.zh-cn

@sdwdjzhy
Copy link
Author

image

it is.

I use the latest version of HandyControls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants