[damned-lies] Add new field in languages for plural-forms
- From: Claude Paroz <claudep src gnome org>
- To: svn-commits-list gnome org
- Subject: [damned-lies] Add new field in languages for plural-forms
- Date: Tue, 26 May 2009 03:43:47 -0400 (EDT)
commit 60f83af71b6e868c4048ac59af38fb8ce2e698ba
Author: Claude Paroz <claude 2xlibre net>
Date: Sun May 24 00:05:44 2009 +0200
Add new field in languages for plural-forms
---
docs/notes-upgrade.txt | 3 +++
languages/models.py | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/docs/notes-upgrade.txt b/docs/notes-upgrade.txt
index bad30f5..0009566 100644
--- a/docs/notes-upgrade.txt
+++ b/docs/notes-upgrade.txt
@@ -86,3 +86,6 @@ ALTER INDEX archived_statistics_pkey RENAME TO statistics_archived_pkey;
ALTER SEQUENCE action_backup_id_seq RENAME TO action_archived_id_seq;
ALTER SEQUENCE archived_information_id_seq RENAME TO information_archived_id_seq;
ALTER SEQUENCE archived_statistics_id_seq RENAME TO statistics_archived_id_seq;
+
+## Add language plural forms
+ALTER TABLE language ADD plurals VARCHAR(200);
diff --git a/languages/models.py b/languages/models.py
index 02438b4..9f80276 100644
--- a/languages/models.py
+++ b/languages/models.py
@@ -6,6 +6,7 @@ class Language(models.Model):
name = models.CharField(max_length=50, unique=True)
locale = models.CharField(max_length=15, unique=True)
team = models.ForeignKey(Team, null=True, blank=True, default=None)
+ plurals = models.CharField(max_length=200, blank=True)
class Meta:
db_table = 'language'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]