Fixes issue #691 #701

Merged
bmng-dev merged 1 commits from Issue-#691 into master 2014-08-06 23:25:40 +02:00
bmng-dev commented 2014-08-06 06:53:06 +02:00 (Migrated from github.com)

This fixes the encoding issues around datetime formatting. It introduces a new module l10n that aims to make localization a little easier. If the language and/or encoding can not be determined it defaults to en_US and ISO8859-1. The use of ISO8859-1 prevents decoding errors, but may result in foreign or wrong characters being displayed when locale formatting options are used.
At the moment it offers formatTimestamp and getTranslationLanguage functions:
formatTimestamp returns the provided timestamp (or current time if ommitted or the wrong type) as unicode (default) or raw bytestring.
getTranslationLanguage simply returns the users language. It is the result of refactoring the QtTranslator initialization for the Qt GUI.

Resolves #691

This fixes the encoding issues around datetime formatting. It introduces a new module l10n that aims to make localization a little easier. If the language and/or encoding can not be determined it defaults to en_US and ISO8859-1. The use of ISO8859-1 prevents decoding errors, but may result in foreign or wrong characters being displayed when locale formatting options are used. At the moment it offers formatTimestamp and getTranslationLanguage functions: formatTimestamp returns the provided timestamp (or current time if ommitted or the wrong type) as unicode (default) or raw bytestring. getTranslationLanguage simply returns the users language. It is the result of refactoring the QtTranslator initialization for the Qt GUI. Resolves #691
Atheros1 commented 2014-08-06 23:54:25 +02:00 (Migrated from github.com)

Thank you bmng. This is quite a complex one!

Thank you bmng. This is quite a complex one!
Atheros1 commented 2014-08-07 17:22:34 +02:00 (Migrated from github.com)

bmng, A user has reported a problem with this pull request:
https://pay.reddit.com/r/bitmessage/comments/2cttc4/new_bitmessage_version_v043/cjjf28f

bmng, A user has reported a problem with this pull request: https://pay.reddit.com/r/bitmessage/comments/2cttc4/new_bitmessage_version_v043/cjjf28f
This repo is archived. You cannot comment on pull requests.
No description provided.