[svnbook commit] r2115 - trunk/src/es
gradha
svnbook-dev at red-bean.com
Sun Apr 2 03:34:14 CDT 2006
Author: gradha
Date: Sun Apr 2 03:34:04 2006
New Revision: 2115
Modified:
trunk/src/es/weekly_report.py
Log:
Book Spanish. Weekly script now uses month names instead of numbers.
Modified: trunk/src/es/weekly_report.py
==============================================================================
--- trunk/src/es/weekly_report.py (original)
+++ trunk/src/es/weekly_report.py Sun Apr 2 03:34:04 2006
@@ -13,6 +13,7 @@
"""
import author_statistics
+import locale
import time
@@ -139,6 +140,7 @@
Reads the file TRABAJO, parses it, and generates a report.
"""
+ locale.setlocale(locale.LC_ALL, "es_ES")
file_input = file("TRABAJO", "rt")
input_lines = file_input.readlines()
file_input.close()
@@ -147,8 +149,8 @@
# Use external module to find out commit statistics.
author_statistics.obtain_information(commiters.keys())
- date = time.strftime("día %d del mes %m del %Y", time.localtime())
- print "Estado de la traducción, a %s\n" % date
+ date = time.strftime("día %d de %B del %Y", time.localtime())
+ print "Estado de la traducción, a %s.\n" % date
print "%d cambios realizados hasta la fecha en el repositorio.\n" % (
author_statistics.COMMIT_NUMBER)
More information about the svnbook-dev
mailing list