Skip to main content

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: http://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


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.0.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

mobetta-0.2.0-py2.py3-none-any.whl (70.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mobetta-0.2.0.tar.gz.

File metadata

  • Download URL: mobetta-0.2.0.tar.gz
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mobetta-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d4b7387cc3c90a67b25060be553f17d930de00c2d19e5270a114b6076b522e11
MD5 d88b3e3cc8514d67616b90a0b29464a1
BLAKE2b-256 519d816db9517be9e8086d82e30151fd64ca3982dc302043e6e0a2cd4202d20b

See more details on using hashes here.

File details

Details for the file mobetta-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mobetta-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 04fda47e52e45e9843f4f64a3b5125fdd6557029f2b78e2c9e5a9b1c9f76ebed
MD5 833c1fb8c2d7c4dc889355ac09dfa282
BLAKE2b-256 0ea36c645bd51cd3463bdf58854eae3e9e1d51f6222ddaa4e60de06bbb89346d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page