vertcoin-project / one-click-miner-vnext

One Click Miner for Vertcoin
https://vertcoin.org/
MIT License
185 stars 138 forks source link

Added language setting to allow users to change locale #544

Open QuantFox1 opened 1 year ago

QuantFox1 commented 1 year ago

Added feature as per issue #433

KforG commented 1 year ago

Nice work. Look into displaying the language name instead of the language code. Additionally how the language choice can be saved in settings.db. It would be done similarly to how the selected pool is saved I would imagine.

KforG commented 1 year ago

Does this compile for you? I get a mismatched types error:

backend\settings.go:198:20: undefined: langs.Getlangs backend\settings.go:213:17: invalid operation: m.GetLang() != lang (mismatched types int and string) backend\settings.go:214:19: cannot use lang (type string) as type int in argument to m.setIntSetting