django-rosetta/rosetta
Pedro Fernández Cuenca b7657c1fca The reference language didn't work in widows
Inside the home view when the setting ENABLE_REFLANG is enabled and the reference language is different from the default rosseta didn't change it. This only happend in Windows due to the pattern '/locale/[a-z]{2}/' and the replacement string '/locale/%s/' % ref_lang. Windows file paths do not use '/' and therefore the re.sub never returned the path of the file we tried to generate.
Poposed solution: We create two new variables pattern and replacement that depend on the OS. These two new variables are used in re.sub.
2017-08-09 14:57:34 +02:00
..
conf rename settings variable 2016-12-13 10:54:54 +02:00
locale adds an explicit test to detect zh_Hans (for #161) 2016-03-08 09:50:22 +01:00
static/admin/img renamed the search icon to avoid clashing with django's own 2016-03-08 09:57:07 +01:00
templates/rosetta Template cleaunp, fixes #181 2017-03-10 11:19:20 +01:00
templatetags Update regular expressions to support PEP 3101 2015-08-13 11:37:23 +01:00
tests use AdminSite.index_template instead of overriding the default AdminSite 2016-12-13 11:26:09 +01:00
__init__.py Rosetta at admin panel 2016-12-13 10:48:14 +02:00
access.py Better handling for Custom User Models. Fixes Issue #131 2015-06-04 11:44:42 +02:00
apps.py use AdminSite.index_template instead of overriding the default AdminSite 2016-12-13 11:26:09 +01:00
models.py initial commit 2011-06-16 11:25:15 +02:00
poutil.py removed an import test that was used to support Django 1.4 2016-05-14 23:09:40 +02:00
signals.py initial commit 2011-06-16 11:25:15 +02:00
storage.py Fixup comment 2016-05-19 12:40:09 +02:00
urls.py Merge branch 'develop' into pr/60 2016-03-22 09:09:55 +01:00
views.py The reference language didn't work in widows 2017-08-09 14:57:34 +02:00