Skip to content

Commit

Permalink
Replace sv-SE locale with sv.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlr committed Sep 21, 2012
1 parent 39841f5 commit 227efbb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/sumo/tests/test_webtrends.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/languages.json
Expand Up @@ -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"
Expand Down
11 changes: 11 additions & 0 deletions migrations/172-sv-migration.py
@@ -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')
3 changes: 2 additions & 1 deletion settings.py
Expand Up @@ -148,7 +148,7 @@
'sq',
'sr-CYRL',
'sr-LATN',
'sv-SE',
'sv',
'ta-LK',
'ta',
'te',
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 227efbb

Please sign in to comment.