Questions tagged [django-multilingual]

38 questions
1
vote
3 answers

error in admin page when editing using django-multilingual-ng on django 1.3

am trying to switch my application to use multilingual-ng, unfortunutely though, there is very little documentation and FAQ's online. I hope someone would be able to tell what is going on with my practice, following is my model class…
Mo J. Mughrabi
  • 6,747
  • 16
  • 85
  • 143
1
vote
1 answer

Django multi language post models

Im begineer on django. Im try create multilanguage blog. I use django 2.1.2 and Python 3.7.1 Now, i can easily translate urls, keywords, etc use to "gettext_lazy" and working awesome... But i can't find any way or plugin for translate my posts…
Aytek
  • 224
  • 4
  • 16
1
vote
1 answer

Django CMS - Transfer content between languages

I have set up an Djando CMS site, using english language, I would like to transfer all the input for english to spanish. I have both english and spanish installed on my application, but the spanish is now mostly empty, while the english is filled up…
Troyer
  • 93
  • 1
  • 12
1
vote
1 answer

Django translation discovery looking at site-packages first

Having trouble getting any of my translation files after compilemessages to take effect. Digging into the code I came to: django.utils.translation.trans_real.check_for_language def check_for_language(lang_code): # First, a quick check to make…
DanH
  • 5,498
  • 4
  • 49
  • 72
1
vote
1 answer

how we use fiter in view.py for multiilngual model in hvad

I am use multilingual for application i developed course application use hvad for that models.py from hvad.models import TranslatableModel, TranslatedFields, TranslationManager class Course(TranslatableModel): translations = TranslatedFields( …
Kartik
  • 65
  • 9
1
vote
1 answer

django multilanguage Website: SQL vs. xml?

We are actually creating a website with some comunity elements. We choose django as programming language. We'd like to keep the website multilingual. We already created some apps and website, but kept them static and singlle-language. I read about…
Depa
  • 459
  • 8
  • 18
1
vote
2 answers

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"…
Dmitry Erokhin
  • 863
  • 1
  • 7
  • 14
1
vote
2 answers

Error importing middleware cms.middleware.multilingual: "No module named multilingual"

Whenever i runserver and go the admin page in my browser i get: A server error occurred. Please contact the administrator. and in Titanium Studio i see: Traceback (most recent call last): File "C:\Python27\lib\wsgiref\handlers.py", line 85,…
1
vote
1 answer

Implementation of Multiple language based on url specific

I am using language translation in my project.But it only translate the strings if I set the highest priority to respective language in my browser. e.g. If i am using two language en and es for translation then it will display data in spanish if I…
Inforian
  • 1,716
  • 5
  • 21
  • 42
1
vote
1 answer

Issues with multiple languages (django.po file)

I am using the concept of multiple languages in my app and for that I have done all those things which are written in the doc. But when I creates a locale file inside my project and then the respective language folder "es" and thus a by default…
Inforian
  • 1,716
  • 5
  • 21
  • 42
1
vote
1 answer

Issues with django-admin.py makemessages -l en

I want to use multiple languages in my app I do not want a locale file for english inside LOCALE folder but by mistake i have create this using this django-admin.py makemessages -l en so Please tell me how can I remove this 'en' folder which I have…
Inforian
  • 1,716
  • 5
  • 21
  • 42
0
votes
1 answer

Loading Scripts Conditionally with JS for multilingual django app that uses jquery validation plugin

I have a Django form in which I use the Jquery Validation Plugin to validate. My form needs to appear in multiple languages and I allow the user to change the form language on the click of a button (one button for each possible language). There is…
0
votes
0 answers

unable to filter or search the data in different languages in django

I have posted data(ex:title field) in different languages, when i try to filter the data in get request it is giving empty result GET /rails: My get request result is : [ { "id": 1, "type": "channel", "filter": [ …
0
votes
3 answers

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…
Mario Peshev
  • 1,063
  • 8
  • 16
0
votes
2 answers

Django Multi Language App

I am building django admin application with multi language translation feature. I have tested with django-transmeta, django-linguo and a couple of libraries. The problem with the above libraries is, for instance i am using 20 languages and I have a…
vamsi
  • 75
  • 1
  • 9