Permalink
Browse files

Replace sv-SE locale with sv.

  • Loading branch information...
rlr committed Sep 21, 2012
1 parent 39841f5 commit 227efbbd7306004096f83e4419384028dfb52b48
Showing with 15 additions and 3 deletions.
  1. +1 −1 apps/sumo/tests/test_webtrends.py
  2. +1 −1 lib/languages.json
  3. +11 −0 migrations/172-sv-migration.py
  4. +2 −1 settings.py

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -414,7 +414,7 @@
"english": "Bengali (Bangladesh)",
"native": "\u09ac\u09be\u0982\u09b2\u09be (\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)"
},
- "sv-SE": {
+ "sv": {
"iso639_1": "sv",
"english": "Swedish",
"native": "Svenska"
@@ -0,0 +1,11 @@
+from gallery.models import Image, Video
+from users.models import Profile
+from wiki.models import Document
+
+
+def run():
+ """Move everything from 'sv-SE' to 'sv' locale."""
+ Document.objects.filter(locale='sv-SE').update(locale='sv')
+ Image.objects.filter(locale='sv-SE').update(locale='sv')
+ Video.objects.filter(locale='sv-SE').update(locale='sv')
+ Profile.objects.filter(locale='sv-SE').update(locale='sv')
View
@@ -148,7 +148,7 @@
'sq',
'sr-CYRL',
'sr-LATN',
- 'sv-SE',
+ 'sv',
'ta-LK',
'ta',
'te',
@@ -177,6 +177,7 @@
'nn-NO': 'no',
'oc': 'fr',
'sr': 'sr-CYRL', # Override the tendency to go sr->sr-LATN.
+ 'sv-SE': 'sv',
}
TEXT_DOMAIN = 'messages'

0 comments on commit 227efbb

Please sign in to comment.