diff --git a/bin/chatter.py b/bin/chatter.py index c027854..e95f621 100644 --- a/bin/chatter.py +++ b/bin/chatter.py @@ -12,3 +12,6 @@ langfile.close() def say(keyword): return random.choice(LANG.get(keyword)) + +def month(num): + return LANG["months"].get(num) diff --git a/bin/core.py b/bin/core.py index e768474..3909e23 100644 --- a/bin/core.py +++ b/bin/core.py @@ -21,21 +21,6 @@ HEADER = "" FOOTER = "" FILES = [] -MONTHS = { - "01":"january", - "02":"february", - "03":"march", - "04":"april", - "05":"may", - "06":"june", - "07":"july", - "08":"august", - "09":"september", - "10":"october", - "11":"november", - "12":"december" - } - def load(): global HEADER global FOOTER @@ -114,7 +99,7 @@ def write_entry(filename): entry = [ "\t\t



\n", "\t\t
\n", - "\t\t\t
"+date[2]+" "+MONTHS[date[1]]+" "+date[0]+"
\n" + "\t\t\t
"+date[2]+" "+chatter.month(date[1])+" "+date[0]+"
\n" #"\t\t\t

" ]