Issue 68: Spanish translation, fixing templates and a request
Status:  Fixed
Owner:
Closed:  Aug 2009
Reported by byme...@gmail.com, Aug 1, 2009
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.
es_ES.zip
3.1 KB   Download
new_templates+es_ES.zip
27.2 KB   Download
models.patch
870 bytes   View   Download
Aug 4, 2009
Project Member #1 rwpoul...@gmail.com
Added to SVN r48. Thank you!
Status: Fixed
Owner: rwpoulton
Aug 6, 2009
#2 byme...@gmail.com
Mea culpa, I didn't check the new thread template. Now without errors.
newthread.patch
1.2 KB   View   Download