Commit Graph

18 Commits

Author SHA1 Message Date
a5773999fe
Refactor BMConfigParser as a Module variable 2022-02-15 17:12:43 +05:30
fba8c1ffb4
Fixed isort & updated exceptions 2021-09-29 17:54:48 +05:30
82c2501ab7
Updated range function import by six 2021-09-29 17:54:47 +05:30
a03e447d08
Updated code quality ignore bare except warning, replaced unicode by decode & xrange by six.moves.range functions in l10n.py 2021-09-29 17:54:47 +05:30
0c7fd5ca82
l10n: reformat and remove py3 incompatibilities,
removed as_unicode kwarg in l10n.formatTimestamp() and unused category
argument in l10n.setlocale(); edited unmaintained bitmessagecurses for pylint.
2021-08-30 21:17:34 +03:00
lakshyacis
6f35da4096
Imported packages sequencing and formatting 2020-01-30 12:14:40 +05:30
lakshyacis
1181db66e0
l10n quality fixes 2019-10-31 14:52:43 +05:30
f0b4e4ded4
Replaced logging.getLogger() in other possible places 2019-10-18 09:35:31 +03:00
6062277d60
Rename configparser.py to bmconfigparser.py
- it was causing problems with py2app because the source of python's own
  CongigParser is also configparser.py
2017-02-22 09:34:54 +01:00
ac348e4e6b
Fixes and refactoring
- fixes errors introduced in the earlier refactoring
- more variables moved to state.py
- path finding functions moved to paths.py
- remembers IPv6 network unreachable (in the future can be used to skip
  IPv6 for a while)
2017-01-11 17:00:00 +01:00
8bcfe80ad0
Refactoring of config parser and shared.py
- got rid of shared config parser and made it into a singleton
- refactored safeConfigGetBoolean as a method of the config singleton
- refactored safeConfigGet as a method of the config singleton
- moved softwareVersion from shared.py into version.py
- moved some global variables from shared.py into state.py
- moved some protocol-specific functions from shared.py into protocol.py
2017-01-11 14:27:19 +01:00
025950c05e
Fix locale init
- date/time wasn't localised correctly on startup
2016-12-13 11:54:01 +01:00
mailchuck
b7fefb3c40 Windows locale fix
Python locales (e.g. for time and date) didn't work on Windows.
2016-05-02 15:00:26 +02:00
Benoît HERVIER
388bc6ba04 #708 : Use default locale encoding
Use locale endoding else this generate error in GU : as default time format can have non ascii char on non english locale, but using ascii in locale can generate UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 :

In PyBitmessage/src/bitmessageqt/__init__.py"
    l10n.formatTimestamp())

In PyBitmessage/src/l10n.py", line 81, in formatTimestamp
    return unicode(timestring, encoding)
2014-08-28 13:39:40 +02:00
bmng-dev
33800064c7 Update l10n to ensure decoding actually works
Fix for encoding issue in #706
2014-08-16 04:23:30 +00:00
bmng-dev
0a2fb54f78 Fix l10n.formatTimestamp so it accepts strings 2014-08-08 04:38:23 +00:00
bmng-dev
0d2c94f060 Fix l10n so getTranslationLanguage always returns a string 2014-08-08 01:34:57 +00:00
bmng-dev
269506ff8f New localization module (l10n)
Resolves #691
2014-08-06 02:01:01 +00:00