django-multilingual

django-multilingual and switching between languages on template side

I am trying to use django-multilingual and setup it properly. But what I found is that everything is clear for django-multilingual except a template usage example. I just started to use django and I don't know, maybe because of this reason, I cannot figure out how to switch between languages on template side. Is there any example that ...

django-multilingual: order drop down field by translated field

how do i order a the options of a form field by a translated field? models.py: class UserProfile(models.Model): ... country=models.ForeignKey('Country') class Country(models.Model): class Translation(multilingual.Translation): name = models.CharField(max_length=60) ... template.html: {# userprofileform is a ...

Using multilingual and localeurl in django

Using django-multilingual and localeurl. Small sample of my main page view: def main(request): #View for http://www.mysite.com/ name = Dog.objects.all()[0].full_name #this is a translated field return render_to_response("home.html", {"name" : name}) Entering http://www.mysite.com/ redirects me to http://www.mysite.com/ru/ and...

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? ...

Django i18n: Common causes for translations not appearing

I am making a multilingual Django website. I created a messages file, populated and compiled it. I checked the site (the admin in this case,) in my wanted language (Hebrew) and most phrases appear in Hebrew like they should, but some don't. I checked the source and these still appear as _('Whatever') like they should, also they are trans...

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 English (and thus gets the language cookie or the key in the session), it should remain a...

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 it not compatible with Django 1.1.1? Does anybody tried this combination and have any s...

Which Django 1.2.x multilingual application to use?

There are a couple of different applications for internationalized content in Django. As of now I only have used http://code.google.com/p/django-multilingual/ in my production environments, but I wonder if there are "better" solutions for my wishes. What my staff users need is the following: An object is being created by a staff user ...

Django multilingual - how to preview content from any language?

I'm using django-multilingual for a Django based website. When I define the __unicode__ function for a model to return this way: def __unicode__(self): return unicode(self.title) However my default language is English and I have some items that are inserted in Dutch only. When I preview the full list, I get "None" as a title. ...