Skip to content

Commit 780b718

Browse files
committed
upgrade script for internationalization
1 parent 0a4118c commit 780b718

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade for internationalization
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
--- /srv/bbx/baobaxia/app/django-bbx/bbx/settings.py 2014-12-17 19:08:33.144358938 -0200
2+
+++ /srv/bbx/baobaxia/app/django-bbx/bbx/settings.py 2012-12-17 19:08:24.500359282 -0200
3+
@@ -20,6 +20,14 @@
4+
MOCAMBOLA_DIR = "mocambolas" # Nome da pasta onde estao os usuarios em .json
5+
DEFAULT_MUCUA = "dandara"
6+
DEFAULT_REPOSITORY = "mocambos"
7+
+LOCALE_PATHS = (os.path.join(PROJECT_ROOT, 'locale'),)
8+
+ugettext = lambda s: s
9+
+LANGUAGES = [
10+
+ ('en_US', ugettext('English')),
11+
+ ('es_ES', ugettext('Spanish')),
12+
+ ('pt_BR', ugettext('Brazilian Portuguese')),
13+
+]
14+
+USE_I18N = True
15+
16+
POLICIES_DIR = os.path.join(PROJECT_ROOT, "policy")
17+
18+
@@ -133,6 +141,7 @@
19+
MIDDLEWARE_CLASSES = (
20+
'django.middleware.common.CommonMiddleware',
21+
'django.contrib.sessions.middleware.SessionMiddleware',
22+
+ 'django.middleware.locale.LocaleMiddleware',
23+
'django.middleware.csrf.CsrfViewMiddleware',
24+
'django.contrib.auth.middleware.AuthenticationMiddleware',
25+
'django.contrib.messages.middleware.MessageMiddleware',
26+
@@ -172,6 +181,7 @@
27+
'tag',
28+
'repository',
29+
'mocambola',
30+
+ 'lang',
31+
'south',
32+
'sorl.thumbnail',
33+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
patch -p0 internationalization.patch
3+
. /srv/bbx/envs/bbx/bin/activate
4+
python /srv/bbx/baobaxia/app/django-bbx/manage.py update_templates

0 commit comments

Comments
 (0)