Initial
This commit is contained in:
51
debian/README.Debian
vendored
Normal file
51
debian/README.Debian
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
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
|
||||
13
debian/changelog
vendored
Normal file
13
debian/changelog
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
python-django-translatable-fields (0.1.0-1) unstable; urgency=medium
|
||||
|
||||
* Initial release.
|
||||
* Django plugin that mimics Odoo's translate=True functionality
|
||||
* Language-aware fields with JSON storage
|
||||
* Rich admin interface with modal overlays
|
||||
* WYSIWYG editor for TextField translations
|
||||
* Draggable and resizable modal windows
|
||||
* Django REST Framework support
|
||||
* Field validation for Email, URL, and Slug fields per language
|
||||
* Support for CharField, TextField, EmailField, URLField, SlugField
|
||||
|
||||
-- Holger Sielaff <holger@backender.de> Fri, 02 Aug 2024 12:00:00 +0200
|
||||
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@@ -0,0 +1 @@
|
||||
13
|
||||
45
debian/control
vendored
Normal file
45
debian/control
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
Source: python-django-translatable-fields
|
||||
Section: python
|
||||
Priority: optional
|
||||
Maintainer: Holger Sielaff <holger@backender.de>
|
||||
Build-Depends: debhelper-compat (= 13),
|
||||
dh-python,
|
||||
python3-all,
|
||||
python3-setuptools,
|
||||
pybuild-plugin-pyproject,
|
||||
python3-django (>= 4.2)
|
||||
Standards-Version: 4.6.0
|
||||
Homepage: https://repo.backender.de/holger/Django-Translatable-Fields
|
||||
Vcs-Git: https://repo.backender.de/holger/Django-Translatable-Fields.git
|
||||
Vcs-Browser: https://repo.backender.de/holger/Django-Translatable-Fields
|
||||
Rules-Requires-Root: no
|
||||
|
||||
Package: python3-django-translatable-fields
|
||||
Architecture: all
|
||||
Depends: ${python3:Depends},
|
||||
${misc:Depends},
|
||||
python3-django (>= 4.2)
|
||||
Recommends: python3-djangorestframework (>= 3.14.0)
|
||||
Description: Django plugin that mimics Odoo's translate=True functionality
|
||||
Django Translatable Fields provides automatic language-aware field handling
|
||||
with a beautiful admin interface integration, similar to Odoo's translate=True
|
||||
functionality.
|
||||
.
|
||||
Key features:
|
||||
* Language-Aware Fields: Automatic translation handling based on Django's
|
||||
current language
|
||||
* Rich Admin Interface: Modal overlay with WYSIWYG editor for easy
|
||||
translation management
|
||||
* JSON Storage: Efficient storage of translations in a single database column
|
||||
* Easy Integration: Drop-in replacement for Django's standard fields
|
||||
* Draggable & Resizable: Modern modal interface with drag and resize
|
||||
capabilities
|
||||
* DRF Support: Built-in Django REST Framework serializers for API development
|
||||
* Field Validation: Proper validation for Email, URL, and Slug fields per
|
||||
language
|
||||
* Type Safety: Full support for Django's field types with translation
|
||||
capabilities
|
||||
.
|
||||
The plugin supports CharField, TextField, EmailField, URLField, and SlugField
|
||||
with automatic JSON-based translation storage and language-aware access
|
||||
patterns.
|
||||
27
debian/copyright
vendored
Normal file
27
debian/copyright
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: django-translatable-fields
|
||||
Upstream-Contact: Holger Sielaff <holger@backender.de>
|
||||
Source: https://repo.backender.de/holger/Django-Translatable-Fields
|
||||
|
||||
Files: *
|
||||
Copyright: 2024 Holger Sielaff <holger@backender.de>
|
||||
License: MIT
|
||||
|
||||
License: MIT
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
.
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
2
debian/python3-django-translatable-fields.docs
vendored
Normal file
2
debian/python3-django-translatable-fields.docs
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
README.md
|
||||
CHANGELOG.md
|
||||
1
debian/python3-django-translatable-fields.examples
vendored
Normal file
1
debian/python3-django-translatable-fields.examples
vendored
Normal file
@@ -0,0 +1 @@
|
||||
example/*
|
||||
2
debian/python3-django-translatable-fields.install
vendored
Normal file
2
debian/python3-django-translatable-fields.install
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Install package files
|
||||
django_translatable_fields usr/lib/python3/dist-packages/
|
||||
15
debian/rules
vendored
Executable file
15
debian/rules
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
export PYBUILD_NAME=django-translatable-fields
|
||||
export PYBUILD_DISABLE=test
|
||||
|
||||
%:
|
||||
dh $@ --with python3 --buildsystem=pybuild
|
||||
|
||||
override_dh_auto_clean:
|
||||
dh_auto_clean
|
||||
rm -rf build/
|
||||
rm -rf *.egg-info/
|
||||
|
||||
override_dh_auto_test:
|
||||
# Skip tests for now - can be enabled later if test suite is added
|
||||
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
4
debian/watch
vendored
Normal file
4
debian/watch
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
version=4
|
||||
opts="searchmode=plain" \
|
||||
https://repo.backender.de/holger/Django-Translatable-Fields/tags \
|
||||
https://repo.backender.de/holger/Django-Translatable-Fields/archive/v@ANY_VERSION@@ARCHIVE_EXT@
|
||||
Reference in New Issue
Block a user