Questions tagged [django-multilingual]

38 questions
0
votes
1 answer

I am facing an issue with language changing functionality in Django1.6

I am changing the language runtime and updating it in the session variable. I needed to call a function which will run before each method call as the language must be activated for each request. For this, I've written a middleware where in the…
Richa
  • 155
  • 1
  • 7
0
votes
1 answer

django-multilingual-ng / Django 1.1.1 incompatibility?

I am getting "cannot import name connections" exception while trying to use django-multilingual-ng 0.1.20 with Django 1.1.1. The exception comes from the line 15 of query.py where it tries to: from django.db import connections, DEFAULT_DB_ALIAS Is…
onurmatik
  • 5,105
  • 7
  • 42
  • 67
0
votes
2 answers

Customizing the language-guessing algorithm in Django

I'm developing a multilingual Django website. It has two languages, English and Hebrew. I want the default language for every first-time visitor to be Hebrew, regardless of what his browser's Accept-Language is. Of course, if he changes language to…
Ram Rachum
  • 84,019
  • 84
  • 236
  • 374
0
votes
2 answers

filter prefetch_related and select_related results

I have 3 models models.py class Book(models.Model): name = models.CharField(max_length=255, primary_key=True) ... class BookTranslation(models.Model): book = models.ForeignKey(Book, related_name='translations') language =…
0
votes
3 answers

Checking a visitor's geographical location in a Django app

I am making a multilingual Django website. I want the site to check from which country the user is accessing the website, and according to that decide which language to use. What would be a good tool to use for that?
Ram Rachum
  • 84,019
  • 84
  • 236
  • 374
0
votes
1 answer

switching language of a (Arabic-English) WPF application at run time

I am trying to learn about WPF application. I was going very fine until I stopped at the level of making my application a multilingual one. for windows forms apps it was easier using a resource files and create and event to select the specified…
0
votes
1 answer

How do I inherit plugins to child pages without breaking links in Django-CMS?

I'm making a multilingual Django-CMS site. I have a page that has some content in it that links to a child page, in such a way to keep that link stays visible. This means someone can click the link repeatedly. The link resides in a plugin that is in…
0
votes
1 answer

How to retrieve language settings from within view?

I want to set up a very small site in three different languages. Basically I want to use a single view that sends back different data to the same template dependent on the selected language (all data is in one table anyway). I just read through…
LarsVegas
  • 6,522
  • 10
  • 43
  • 67
1 2
3