WinDynamicDesktop icon indicating copy to clipboard operation
WinDynamicDesktop copied to clipboard

Automatic translation improvement

Open MD-DeCode opened this issue 7 years ago • 10 comments

I suggest: on first start the program , take ~~from the Envoirment~~ the OS language ~~(OSVersion)~~, and substitute the value in the .conf file using the File.WriteAllText method (e.g. if (OSLanguage == "RU_ru") File.WriteAllText(conf settings)

(Very bad translate from google. )

MD-DeCode avatar Apr 25 '19 11:04 MD-DeCode

UPD: Get OS language:

  • var culture = System.Globalization.CultureInfo.CurrentCulture;
    • if (culture.ToString() == "ru-RU")
      • File.WriteAllText("PATH TO CONF FILE","text to be inside the file")

MD-DeCode avatar Apr 25 '19 11:04 MD-DeCode

It should automatically determine the best translation based on your system locale as can be seen in this line here: https://github.com/t1m0thyj/WinDynamicDesktop/blob/master/src/Localization.cs#L47

Did the app fail to automatically translate into Russian for you after upgrading to 3.2.0?

t1m0thyj avatar Apr 25 '19 11:04 t1m0thyj

Nope. All correct

MD-DeCode avatar Apr 25 '19 11:04 MD-DeCode

To be clear you mean that it did not work?

t1m0thyj avatar Apr 25 '19 11:04 t1m0thyj

I'm confused. All in russian. All working. no bugs

MD-DeCode avatar Apr 25 '19 11:04 MD-DeCode

When you upgraded from version 3.1.0 to 3.2.0, did it automatically detect that Russian was your system language? It should but I'm assuming that didn't work, hence the reason why you created this issue.

t1m0thyj avatar Apr 25 '19 11:04 t1m0thyj

I thought it wasn't implemented yet.

MD-DeCode avatar Apr 25 '19 11:04 MD-DeCode

Did you need to manually open the language dialog to select Russian?

t1m0thyj avatar Apr 25 '19 11:04 t1m0thyj

No. It translated automatically

MD-DeCode avatar Apr 25 '19 11:04 MD-DeCode

I opened this issue, thinking that this is not yet implemented, but I was mistaken

MD-DeCode avatar Apr 25 '19 11:04 MD-DeCode