gawindx / WinNUT-Client

This is a NUT windows client for monitoring your ups hooked up to your favorite linux server.
GNU General Public License v3.0
395 stars 70 forks source link

Problems with the character field length in the de-DE version #74

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi there,

everything works fine until I disconnect the 230V plug from the UPS:

Errormessage:

WINnut then cannot connect to the Synology UPS server because a text field value is too large (longer than 64 characters). Can I force English to test this? Do you need any other information?

Microsoft® .NET Framework Version:

thanks :)

gawindx commented 3 years ago

which version of WinNUT do you have? If necessary, you can find the exact version in the "about" menu.

ghost commented 3 years ago

2021-03-05 08_31_34-About

gawindx commented 3 years ago

ok, this is the last version. Could you provide me with the debug logs (you have to activate them beforehand in the options and set them to debug level) This will give me more information on the problematic character chain.

as for forcing it in another language: in the installation directory of WinNUT, you will find a directory containing the localized dlls. I think removing the dll for german (or renaming it) should force WinNUT to switch to the neutral language, ie English.

By the way, if you find translations that are imprecise or that could be improved, do not hesitate to put it back up because the translation was done with google translate and I do not speak German at all.

ghost commented 3 years ago

Ok done, if I rename or delete the de-DE language folder (or the file it contains), a new folder/file is simply created again when I start the program.

WinNUT-client-2021-03-05.log

gawindx commented 3 years ago

Try to copy dll from another directory and replace german dll

ghost commented 3 years ago

The WinNUT-client.resources.dll exist only in DE, FR, RU and CN folders.

gawindx commented 3 years ago

yes, but if you replace DE translation with another, WinNUT will not find the good translation in the correct directory and it normally fallback to neutral language.

gawindx commented 3 years ago

Replace only the dll file, don't modify the directory itself.

ghost commented 3 years ago

a bit crazy - but it works without error message

ghost commented 3 years ago

Error narrowed down. Do you still want to fix this? sometime?

gawindx commented 3 years ago

It will be resolved, no worries about it.

On the other hand it will be for v2.1, it will be necessary to wait a little the time that it is sufficiently mature to be published (it will not take weeks either) and it will be on the dev branch (therefore in beta) in a first step because I bring very big changes on the code in anticipation of future evolutions.

If you don't have too many problems with the English version at the moment, I'll leave the issue open and let you know as soon as the version is published. There may be a few bugs (I hope not to miss too many) but it should be functional for normal use.

ghost commented 3 years ago

Je suis heureux de lire cela ! Merci pour votre engagement.

traduit avec www.deepl.com/translator :)

gawindx commented 3 years ago

The first beta version of 2.1 has just been released. It is available here

I think the problem you are having should be resolved. This version is normally perfectly functional.

gbakeman commented 2 years ago

To everyone following this, please follow our latest issue at https://github.com/nutdotnet/WinNUT-Client/issues/5, there's a new pre-release that should fix this. Please provide your feedback there.