Localized months names

This commit is contained in:
Phyks 2013-07-28 12:37:41 +02:00
parent 30f0353e50
commit 0102b7f66c
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,7 @@
# TODO : Test the whole thing
# TODO : What happens when I run it as a hook ?
# TODO : What happens when I commit with -a option ?
# TODO : Use date in article instead of os date
import sys
import getopt
@ -12,6 +13,7 @@ import os
import datetime
import subprocess
import re
import locale
from time import gmtime, strftime, mktime
@ -91,6 +93,9 @@ def replace_tags(article, search_list, replace_list):
return return_string
# Set locale
locale.set_locale(locale.LC_ALL, '')
try:
opts, args = getopt.gnu_getopt(sys.argv, "hf", ["help", "force-regen"])
except getopt.GetoptError: