Closed marcoahp closed 2 years ago
Hello,
Take a look at the sample project (AdvancedDataGridViewSample), you can use the SetTranslations Method, if you have a file (suppose lang.json) you can use like this:
if (_testtranslationsFromFile)
{
AdvancedDataGridView.SetTranslations(AdvancedDataGridView.LoadTranslationsFromFile("lang.json"));
AdvancedDataGridViewSearchToolBar.SetTranslations(AdvancedDataGridViewSearchToolBar.LoadTranslationsFromFile("lang.json"));
}
If you want to send me a "lang_es-ES.json" file I will add to the sample project, so that other people can use that.
Hi,
I’ve done it and it works fine. I send you the language file.
It would be great if it change language with the system language without settranslations command.
Best regards,
Marco
De: Davide Gironi @.> Enviado el: miércoles, 5 de octubre de 2022 11:44 Para: davidegironi/advanceddatagridview @.> CC: marcoahp @.>; Author @.> Asunto: Re: [davidegironi/advanceddatagridview] Change languaje to Spanish (Issue #97)
Hello,
Take a look at the sample project (AdvancedDataGridViewSample), you can use the SetTranslations Method, if you have a file (suppose lang.json) you can use like this:
if (_testtranslationsFromFile) { AdvancedDataGridView.SetTranslations(AdvancedDataGridView.LoadTranslationsFromFile("lang.json")); AdvancedDataGridViewSearchToolBar.SetTranslations(AdvancedDataGridViewSearchToolBar.LoadTranslationsFromFile("lang.json")); }
If you want to send me a "lang_es-ES.json" file I will add to the sample project, so that other people can use that.
— Reply to this email directly, view it on GitHub https://github.com/davidegironi/advanceddatagridview/issues/97#issuecomment-1268199863 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AL3J4T5F5DHPV6QBANL3Y6TWBVEVFANCNFSM6AAAAAAQ5MQVOY . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AL3J4T5QAJ6QFN3MYTNQILTWBVEVFA5CNFSM6AAAAAAQ5MQVO2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSLS4Y3O.gif Message ID: @. @.> >
Hello,
You can attache here in a post the language file, I will add the the next commit. I prefer to leave outside the change language logic. This way one can set a language for the desktop project is building independently from the system language. You can check this stackoverflow here to detect the system language and select the language file according to it: https://stackoverflow.com/questions/5710127/get-operating-system-language-in-c-sharp
How can I change language to Spanish es-ES? You can apply the same as es-AR which somebody have sent to es-ES