henrypp / simplewall

Simple tool to configure Windows Filtering Platform (WFP) which can configure network activity on your computer.
GNU General Public License v3.0
6.29k stars 487 forks source link

Language menu - localization #948

Open rddim opened 3 years ago

rddim commented 3 years ago

@henrypp What do you think if we have language menu localized too? Something like the right screen.

Current Localized
simplewall-langs-current simplewall-langs-native
henrypp commented 3 years ago

Looks good, how can i do this without changing current locale structure?

rddim commented 3 years ago

I think you should need to edit the build_locale.py

I did some tests and: If you rename (for example) Russian.ini to Русский.ini the build_locale.py will read the filename and will change the [Russian] to [Русский] in the 4th line of the Russian.ini and the generated simplewall.lng file will display the lang name as the screen above.

My suggestion is to:

  1. Keep the existing language filenames
  2. Every *.ini lang file needs to update [<locale name here>] with native language name (by the authors, for safer)
  3. Learn the build_locale.py to read the [<locale name here>] string of every *.ini file. Not to write the filename here