django-modeltrans icon indicating copy to clipboard operation
django-modeltrans copied to clipboard

Translate Django model fields in a PostgreSQL JSONField

Results 20 django-modeltrans issues
Sort by recently updated
recently updated
newest added

recommonmark is deprecated. Issue: https://github.com/readthedocs/recommonmark/issues/221 migration script: https://gist.github.com/jpmckinney/88c846651ab5411d1ed3a6fe222ce08f/e8f5c6febc147c512990ab3ab8809386a9b7d765

This change adds simple tabbed UI for translated fields ![Django Admin with tabbed translated fields](https://github.com/zostera/django-modeltrans/assets/519966/3a4bbf66-6e50-49ff-9d9e-fe9fd01237e5) **Important**: The included JavaScript only supports Django 4.2 and up. I think it's a reasonable...

So far, modeltrans assumed that the value of an original field (a translatable field when used without a language suffix; for example `title`, but not `title_nl`) is in the Django...

I'm using `mypy` and `django-stubs` to do type checking in my projects and I noticed that as I soon as I add a `TranslationField` on a model, I get an...

I was profiling import time in a project using django-modeltrans after reading https://adamj.eu/tech/2023/03/02/django-profile-and-improve-import-time/, while I noticed the time it takes to import a forms module containing a form based on...

Assume you have the settings ``` LANGUAGE_CODE = "en" MODELTRANS_FALLBACK = {"default": ("de",)}, ``` and the following model instance: ``` blog = Blog.objects.create(title="foo") ``` The following example shows that the...

This PR adds customizable labels to the TranslationModelForm as Meta options. Fixes: https://github.com/zostera/django-modeltrans/issues/70

Why i did it. 1. We have this line https://github.com/zostera/django-modeltrans/blob/master/modeltrans/translator.py#L138, currently flag (editable=False) did nothing because it isnt set to TranslatedVirtualField. 2. I think in case if we need active...

At the moment labels of fields are hard coded to include the language code and translation / default language in brackets. By including a customizable translatable string in Meta options...