<commit_before>django-plans-i18n
=================

django-plans internationalization using django-modeltranslation.

Installation
============

Assuming you have correctly installed django-plans in your app you only need to add following apps to ``INSTALLED_APPS``::

    INSTALLED_APPS += ('modeltranslation', 'plans_i18n')

and you should also define your languages in django ``LANGUAGES`` variable, eg.::

    LANGUAGES = (
        ('pl', 'Polski'),
        ('en', 'English'),
        )

Please note that adding those to ``INSTALLED_APPS`` **changes** django models. Concretely it adds for every registered ``field`` that should translated, additional fields with name ``field_<lang_code>``, e.g. for given model::

    class MyModel(models.Model):<commit_msg>Update README.rst<commit_after>django-plans-i18n
=================

django-plans internationalization using django-modeltranslation.

Installation
============

Assuming you have correctly installed django-plans in your app you only need to add following apps to ``INSTALLED_APPS``::

    INSTALLED_APPS += ('modeltranslation', 'plans_i18n')

and you should also define your languages in django ``LANGUAGES`` variable, eg.::

    LANGUAGES = (
        ('pl', 'Polski'),
        ('en', 'English'),
        )

Please note that adding those to ``INSTALLED_APPS`` **changes** django models. Concretely for every registered ``field`` that should be translated  it adds  number of fields using format ``field_<lang_code>``, e.g. for given model::

    class MyModel(models.Model):
{'fraction_non_alphanumeric': 0.14174252275682706, 'fraction_numerical': 0.005201560468140442, 'mean_word_length': 4.555956678700361, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3355218', 'n_tokens_mistral': 445, 'n_tokens_neox': 417, 'n_words': 152}