Files
Django-Translatable-Fields/debian
Holger Sielaff 79c68169f6 Initial
2025-08-02 20:08:33 +02:00
..
2025-08-02 20:08:33 +02:00
2025-08-02 20:08:33 +02:00
2025-08-02 20:08:33 +02:00
2025-08-02 20:08:33 +02:00
2025-08-02 20:08:33 +02:00
2025-08-02 20:08:33 +02:00
2025-08-02 20:08:33 +02:00
2025-08-02 20:08:33 +02:00

django-translatable-fields for Debian
======================================

This package provides Django Translatable Fields, a Django plugin that mimics
Odoo's translate=True functionality with a modern admin interface.

Installation
------------

The package is installed as python3-django-translatable-fields and provides
the django_translatable_fields Python module.

Usage
-----

Add 'django_translatable_fields' to your INSTALLED_APPS in Django settings:

    INSTALLED_APPS = [
        # ... other apps
        'django_translatable_fields',
    ]

Configure your supported languages:

    LANGUAGES = [
        ('en', 'English'),
        ('de', 'German'),
        ('fr', 'French'),
        ('es', 'Spanish'),
    ]

Example usage in models:

    from django.db import models
    from django_translatable_fields.fields import CharField, TextField
    from django_translatable_fields.descriptors import TranslatableModelMixin

    class Product(TranslatableModelMixin, models.Model):
        name = CharField(max_length=200, translatable=True)
        description = TextField(translatable=True)

Documentation
-------------

See /usr/share/doc/python3-django-translatable-fields/ for complete
documentation and examples.

The example directory contains comprehensive usage examples demonstrating
all available field types and features.

 -- Holger Sielaff <holger@backender.de>  Fri, 02 Aug 2024 12:00:00 +0200