Commit Graph
12 Commits
Author SHA1 Message Date
Roxedus 3b7038954d isort and flake fixes 2020-06-14 15:30:56 +02:00
Even c1eeb2425b Fixes #19 and #10
Check that only valid locales can be set through commands. Use default locale if the current locale is invalid.
2020-01-20 21:57:54 +01:00
Roxedus f898dd7582 PEP8
A whole FUCK TON of PEP8 improvements
2019-07-03 19:26:48 +02:00
Ev-1 57ca137b91 switch to pyyaml's safeLoader 2019-03-22 00:06:07 +01:00
Roxedus f6f0301cf3 from_data to from_dict
https://github.com/Rapptz/discord.py/commit/73aca4d4d36e728e906fb6c6bccaaf7060c1b83d
2019-03-20 16:38:58 +01:00
Ev-1 27fa140dd5 Custom localized help formatting 2019-03-03 14:12:15 +01:00
Ev-1 ad407d63ba localizer in context, locale as yaml instead of json. 2019-02-17 12:12:05 +01:00
unknown b101faca5f Created a localizer wrapper
Added prefix as an optional argument to the format methods of localizer
Added the option to specify kvpairs for formating, all kvpairs has to
have a _ as prefix
Updated music.py to use the localizer wrapper
2019-01-28 01:37:08 +01:00
unknown b5b84c4c45 utf-8 support 2019-01-26 13:28:16 +01:00
unknown d3b05a1478 Added method for getting available localizations 2019-01-26 13:28:15 +01:00
unknown 2ced7905ea Added formating options for strings, dictionaries and embeds 2019-01-26 13:28:15 +01:00
unknown 5a299b6c59 Created a utility module dict_utils, containing a SafeDict and a
dictionary flattener

Created a localization module localizer.py that can load localization
files and return various translations of strings
2019-01-26 13:28:15 +01:00