mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-16 09:10:35 +03:00
Merge pull request #694 from EDCD/enhancement/locale-logging-and-in-issue
Log locale settings at start & ask in bug template.
This commit is contained in:
commit
1c62cfaf4a
1
.github/ISSUE_TEMPLATE/bug_report.md
vendored
1
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -10,6 +10,7 @@ assignees: ''
|
||||
**Please complete the following information:**
|
||||
- Version [e.g. 4.0.6 - See 'Help > About E:D Market Connector']
|
||||
- OS: [e.g. Windows 10]
|
||||
- OS Locale: [e.g. English, French, Serbian...]
|
||||
- If applicable: Browser [e.g. chrome, safari]
|
||||
- Please attach the file `%TEMP%\EDMarketConnector.log` from *immediately* after the bug occurs (re-running the application overwrites this file). Use the Icon that looks like `_`, `|` and `^` all in one character towards the right of the toolbar above.
|
||||
|
||||
|
@ -6,6 +6,7 @@ from builtins import object
|
||||
import sys
|
||||
from sys import platform
|
||||
import json
|
||||
import locale
|
||||
from os import chdir, environ
|
||||
from os.path import dirname, isdir, join
|
||||
import re
|
||||
@ -1037,7 +1038,12 @@ if __name__ == "__main__":
|
||||
argv[0]: {sys.argv[0]}
|
||||
exec_prefix: {sys.exec_prefix}
|
||||
executable: {sys.executable}
|
||||
sys.path: {sys.path}'''
|
||||
sys.path: {sys.path}
|
||||
Locale LC_COLLATE: {locale.getlocale(locale.LC_COLLATE)}
|
||||
Locale LC_CTYPE: {locale.getlocale(locale.LC_CTYPE)}
|
||||
Locale LC_MONETARY: {locale.getlocale(locale.LC_MONETARY)}
|
||||
Locale LC_NUMERIC: {locale.getlocale(locale.LC_NUMERIC)}
|
||||
Locale LC_TIME: {locale.getlocale(locale.LC_TIME)}'''
|
||||
)
|
||||
|
||||
# TODO: unittests in place of these
|
||||
|
Loading…
x
Reference in New Issue
Block a user