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

[Question / Bug] Cannot localize toolkit controls #851

Closed
waleedmakarem opened this issue Oct 24, 2022 · 8 comments
Closed

[Question / Bug] Cannot localize toolkit controls #851

waleedmakarem opened this issue Oct 24, 2022 · 8 comments
Labels
awaiting feedback A fix for this issue has been implemented, waiting for feedback on the fix. bug Something isn't working question Further information is requested

Comments

@waleedmakarem
Copy link

Dear sir,

for Component factory krypton controls, does it support localization ? I tried to localize form with normal winform controls, it works pretty good. when I add component factory toolkit controls, localization does not work.
Please advise.

Thanks,
Waleed

@waleedmakarem waleedmakarem added the bug Something isn't working label Oct 24, 2022
@Smurf-IV Smurf-IV transferred this issue from Krypton-Suite/Standard-Toolkit-Demos Dec 4, 2022
@Smurf-IV Smurf-IV changed the title cannot localize toolkit controls [Question / Bug] Cannot localize toolkit controls Dec 4, 2022
@Smurf-IV Smurf-IV added the question Further information is requested label Dec 4, 2022
@Smurf-IV
Copy link
Member

Smurf-IV commented Dec 4, 2022

@waleedmakarem Do you Mean "Component factory krypton" (Which is another repo which uses an older set of these) or this "Krypton-Toolkit"?

@Smurf-IV Smurf-IV added the awaiting feedback A fix for this issue has been implemented, waiting for feedback on the fix. label Dec 4, 2022
@waleedmakarem
Copy link
Author

waleedmakarem commented Dec 4, 2022

Dear @Smurf-IV,
Actually I have tested into original (old) control . I assume it is the same case into this repo.
Kindly advise if this repo can support localization or not. if So, does it support .Net Framework 4.0 ?
Thanks for support

@PWagner1
Copy link
Contributor

PWagner1 commented Dec 4, 2022

Hi @waleedmakarem

Are you using the KryptonManager Strings property to localise your app, or are you doing it another way?

@waleedmakarem
Copy link
Author

I am using default .net localization process . ie set form to localizable . then having Forms design for each language. changing language will change the winform design/language settings.
Do you want me to send sample project (simple one) ?

@PWagner1
Copy link
Contributor

PWagner1 commented Dec 5, 2022

@waleedmakarem

Yes please

@waleedmakarem
Copy link
Author

Dear Wagnerp,
Thanks so much for support . During creating the demo , I found the point I was missing.
Thanks for support , much appreciated.

@Smurf-IV Smurf-IV closed this as completed Dec 6, 2022
@PWagner1
Copy link
Contributor

PWagner1 commented Dec 6, 2022

Hi @waleedmakarem

Good to know that it's sorted out. Could you tell me what you did please, so that I can put it into the docs to help others out?

@waleedmakarem
Copy link
Author

It was stupid mistake. I was trying to set local for each control in form, but this did not work . I used below code during form load. the only issue is that application must restart int order to apply language change.

    System.Threading.Thread.CurrentThread.CurrentUICulture = New System.Globalization.CultureInfo("en-US")
    InitializeComponent()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting feedback A fix for this issue has been implemented, waiting for feedback on the fix. bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants