Questions tagged [django-modeltranslation]

The modeltranslation application is used to translate dynamic content of existing Django models to an arbitrary number of languages without having to change the original model classes.

According to official documentation.

Modeltranslation uses a registration approach (comparable to Django’s admin app) to be able to add translations to existing or new projects and is fully integrated into the Django admin backend.

The advantage of a registration approach is the ability to add translations to models on a per-app basis. You can use the same app in different projects, may they use translations or not, and you never have to touch the original model class.

Features

  • Add translations without changing existing models or views
  • Translation fields are stored in the same table (no expensive joins)
  • Supports inherited models (abstract and multi-table inheritance)
  • Handle more than just text fields
  • Django admin integration
  • Flexible fallbacks, auto-population and more!
95 questions
0
votes
2 answers

Django Logout Changes Language to Default Language

Am Working on Arabic-English Translation using 'Model Translation'.Once i login and change to arabic and then logout language changes to english. This is my logout code:,I have activated language after logout and it prints language as 'ar' but it…
user2842009
0
votes
1 answer

Django Translation Not working

I have a view which has the following code. I need to translate am and pm to arabic which is display by %p. I called this in template by ajax.I tried by doing _strptime("%I:%M %p"),bit its not working. Here this code strftime("%I:%M %p") is…
user2842009
0
votes
1 answer

Create Django object outside a view using modeltranslation

I'm writing some tests and I need to create some objects but I get this error when I try to create some object outside a Django View cat = Category.objects.create(catalog=c, name="Category one") Returns TypeError: 'name_es' is an invalid keyword…
Diego Navarro
  • 9,316
  • 3
  • 26
  • 33
0
votes
2 answers

Uninstall django-modeltranslation

We've decided that with Chrome's page translation support, it's too much work to keep up with the translation of the entire site for the benefit received. So, I need to remove/uninstall django-modeltranslation app and am wondering what's the…
Enis Afgan
  • 180
  • 1
  • 5
-1
votes
2 answers

Django static files redirecting to URL with language code

I'm using Mezzanine 4.1.0 with Django 1.9.12 and django-modeltranslation 0.1.2. All of my static files are getting redirected as if they were pages: "GET /static/js/bootstrap.js HTTP/2.0" 301 0 "GET /static/js/bootstrap.js/ HTTP/2.0" 302 0 "GET…
ki9
  • 5,183
  • 5
  • 37
  • 48
1 2 3 4 5 6
7