Hi everybody.
I've been tweaking django-forum to add the Spanish-Spain translation. I
have background experience as a KDE translator for the spanish team, so I
hope I didn't make any mistake with the .po.
After translating I realized that some strings where missing and still in
English so I've been fixing default templates so now everybody can make a
full translation to the forum.
Second:
in my humble opinion some things are missing/wrong in models.py:
I've added to Forum class "editable=False" because it could break
consistence if anyone can edit those fields at willing, so I think it's
necessary.
Also some stupid mistakes in the Meta to make translations :)
--- models_old.py 2009-08-01 00:06:38.000000000 +0200
+++ models.py 2009-07-30 21:01:45.000000000 +0200
@@ -27,8 +27,8 @@
slug = models.SlugField(_("Slug"))
parent = models.ForeignKey('self', blank=True, null=True,
related_name='child')
description = models.TextField(_("Description"))
- threads = models.IntegerField(_("Threads"), default=0)
- posts = models.IntegerField(_("Posts"), default=0)
+ threads = models.IntegerField(_("Threads"), default=0, editable=False)
+ posts = models.IntegerField(_("Posts"), default=0, editable=False)
objects = ForumManager()
@@ -243,6 +243,8 @@
class Meta:
ordering = ('-time',)
+ verbose_name = _('post')
+ verbose_name_plural = _('posts')
def get_absolute_url(self):
return '%s?page=last#post%s' % (self.thread.get_absolute_url(),
self.id)
What I attach is:
1) es_ES.zip: Spanish translation for "old" templates.
2) new_templates+es_ES.zip: fixed templates plus updated Spanish
translation for those templates.
3) models.patch: to apply it download to forum/ and run $ patch models.py
models.patch
Bye!
Rafa Muñoz Cárdenas.
|
new_templates+es_ES.zip
27.2 KB
Download
|
Owner: rwpoulton