google-code-export / django-forum

Automatically exported from code.google.com/p/django-forum
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Spanish translation, fixing templates and a request #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by byme...@gmail.com on 1 Aug 2009 at 11:35

Attachments:

GoogleCodeExporter commented 9 years ago
Added to SVN r48. Thank you!

Original comment by rwpoul...@gmail.com on 4 Aug 2009 at 12:55

GoogleCodeExporter commented 9 years ago
Mea culpa, I didn't check the new thread template. Now without errors.

Original comment by byme...@gmail.com on 6 Aug 2009 at 10:42

Attachments: