A Django package for managing translation files
Project description
.. Mobetta documentation master file, created by
sphinx-quickstart on Thu May 18 16:05:12 2017.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
=======
Mobetta
=======
.. rubric:: Manage translations in Django projects
.. image:: https://travis-ci.org/maykinmedia/mobetta.svg?branch=master
:target: https://travis-ci.org/maykinmedia/mobetta
.. image:: https://codecov.io/gh/maykinmedia/mobetta/branch/develop/graph/badge.svg
:target: https://codecov.io/gh/maykinmedia/mobetta
.. image:: https://img.shields.io/pypi/v/mobetta.svg
:target: https://pypi-hypernode.com/pypi/mobetta
.. image:: https://lintly.com/gh/maykinmedia/mobetta/badge.svg
:target: https://lintly.com/gh/maykinmedia/mobetta/
Mobetta is a reusable app to manage translation files in Django projects.
It's inspired on `django-rosetta`_, but takes a more modern approach to problem
and adds extra features, such as:
* comments on translations
* edit history
* support for `ICU message format`_ with json catalogs
.. toctree::
:maxdepth: 2
:caption: Contents:
installation
usage
.. _quickstart:
Quickstart
==========
Install with pip::
pip install mobetta
Add it to your installed apps::
INSTALLED_APPS = [
...,
'mobetta',
...,
]
Hook up the urls in your root ``urls.py``::
urlpatterns = [
url(r'^admin/', include(admin.site.urls)), # optional
url(r'^admin/mobetta/', include('mobetta.urls', namespace='mobetta')),
...
]
Run migrate to create the necessary database tables::
python manage.py migrate
.. _usage:
Usage
=====
Mobetta discovers your translation files with a management command::
python manage.py locate_translation_files
Open localhost:8000/admin/mobetta/ to manage your translations.
Notes
=====
How Django loads your translation files
---------------------------------------
See the `django translation docs`_
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
.. _django-rosetta: https://github.com/mbi/django-rosetta
.. _django translation docs: https://docs.djangoproject.com/en/stable/topics/i18n/translation/#how-django-discovers-translations
.. _ICU message format: https://formatjs.io/guides/message-syntax/
sphinx-quickstart on Thu May 18 16:05:12 2017.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
=======
Mobetta
=======
.. rubric:: Manage translations in Django projects
.. image:: https://travis-ci.org/maykinmedia/mobetta.svg?branch=master
:target: https://travis-ci.org/maykinmedia/mobetta
.. image:: https://codecov.io/gh/maykinmedia/mobetta/branch/develop/graph/badge.svg
:target: https://codecov.io/gh/maykinmedia/mobetta
.. image:: https://img.shields.io/pypi/v/mobetta.svg
:target: https://pypi-hypernode.com/pypi/mobetta
.. image:: https://lintly.com/gh/maykinmedia/mobetta/badge.svg
:target: https://lintly.com/gh/maykinmedia/mobetta/
Mobetta is a reusable app to manage translation files in Django projects.
It's inspired on `django-rosetta`_, but takes a more modern approach to problem
and adds extra features, such as:
* comments on translations
* edit history
* support for `ICU message format`_ with json catalogs
.. toctree::
:maxdepth: 2
:caption: Contents:
installation
usage
.. _quickstart:
Quickstart
==========
Install with pip::
pip install mobetta
Add it to your installed apps::
INSTALLED_APPS = [
...,
'mobetta',
...,
]
Hook up the urls in your root ``urls.py``::
urlpatterns = [
url(r'^admin/', include(admin.site.urls)), # optional
url(r'^admin/mobetta/', include('mobetta.urls', namespace='mobetta')),
...
]
Run migrate to create the necessary database tables::
python manage.py migrate
.. _usage:
Usage
=====
Mobetta discovers your translation files with a management command::
python manage.py locate_translation_files
Open localhost:8000/admin/mobetta/ to manage your translations.
Notes
=====
How Django loads your translation files
---------------------------------------
See the `django translation docs`_
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
.. _django-rosetta: https://github.com/mbi/django-rosetta
.. _django translation docs: https://docs.djangoproject.com/en/stable/topics/i18n/translation/#how-django-discovers-translations
.. _ICU message format: https://formatjs.io/guides/message-syntax/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mobetta-0.2.9.tar.gz
(32.8 kB
view details)
Built Distribution
File details
Details for the file mobetta-0.2.9.tar.gz
.
File metadata
- Download URL: mobetta-0.2.9.tar.gz
- Upload date:
- Size: 32.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 306dbd3315b6e09778033addbfdcc7b16e568257eee57886541eab4f895d306f |
|
MD5 | 9e8d97431ca110f0d18f7ec28b4f9d6c |
|
BLAKE2b-256 | 7fee8718c734fab6e0d1cf24a8628e19b6e359f9347eeeb2457e9452186de84d |
File details
Details for the file mobetta-0.2.9-py2.py3-none-any.whl
.
File metadata
- Download URL: mobetta-0.2.9-py2.py3-none-any.whl
- Upload date:
- Size: 74.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2510e4bbc7ae62f68c8736d220e0b53b70b9928ba4382d684b14e596256ad617 |
|
MD5 | 886d4167725fe72840bf8a4af570b897 |
|
BLAKE2b-256 | e102be7f956a46aab1f3a761c6d58dc79426faf7f45ebe65c3073b77ed5c2285 |