mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-05-09 13:54:44 +00:00
Rosetta is a Django application that eases the translation process of your Django projects
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.
|
||
|---|---|---|
| .github | ||
| docs | ||
| rosetta | ||
| testproject | ||
| .gitignore | ||
| .travis.yml | ||
| CHANGES | ||
| LICENSE | ||
| MANIFEST.in | ||
| README.rst | ||
| setup.py | ||
| tox.ini | ||
======= Rosetta ======= .. image:: https://travis-ci.org/mbi/django-rosetta.png?branch=develop :target: http://travis-ci.org/mbi/django-rosetta Rosetta is a `Django <http://www.djangoproject.com/>`_ application that eases the translation process of your Django projects. Because it doesn't export any models, Rosetta doesn't create any tables in your project's database. Rosetta can be installed and uninstalled by simply adding and removing a single entry in your project's `INSTALLED_APPS` and a single line in your main ``urls.py`` file. Note: as of version 0.7.13 django-rosetta requires Django 1.8 or later. ******** Features ******** * Database independent * Reads and writes your project's `gettext` catalogs (po and mo files) * Installed and uninstalled in under a minute * Uses Django's admin interface CSS ************* Documentation ************* Please refer to the `online documentation <http://django-rosetta.readthedocs.org/>`_ to install Rosetta and get started.