18 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
77
views
Django's makemessages generates corrupt po file
Django 4.2.16
My code contains this line (beside lots more i18n texts):
filter_text = _('Filter')
I generate the "de" locale po file:
django-admin makemessages --locale de -i venv
The ...
1
vote
0
answers
70
views
"I get utf-8 error when django makemessages command runs"
Traceback (most recent call last):
File "manage.py", line 22, in <module>
main()
File "manage.py", line 18, in main
execute_from_command_line(sys.argv)
File &...
0
votes
0
answers
261
views
django makemessages can't translate all words
makemessages can't detect all translation words... I tried all but it didn't work.
My command
django-admin makemessages --all --ignore=venv
# and
python manage.py makemessages --all --ignore=venv
My ...
0
votes
1
answer
718
views
Django makemessages fails both with django-admin and manage.py
I have a fresh Django project with no third-party apps installed. I'm trying to create a multilingual setup, with from django.utils.translation import gettext_lazy as _ in my Python files and {% ...
0
votes
0
answers
139
views
How to automatically flag strings for makemessage translation file in django
I'm creating a signal that sends messages to multiple users, and each message should be translated to the receiver's language.
this is a simplified example of that the alert handler does:
def ...
3
votes
2
answers
2k
views
django makemessages does nothing
When I run django-admin makemessages -l en nothing happens and no po files are created. It only says processing locale en
This is my folder structure
/myproject
myapp/
locale/
media/
...
0
votes
1
answer
529
views
uClinux "make menuconfig" build error on Ubuntu 18.04
There is quite old uClinux-dist-20080808 with uClinux-dist-20080808-20090112 and uClinux_on_stm32 patches for STM32F10x MCU, as described here AN3012.
I use Ubuntu 18.04 (inside VirtualBox) to build ...
7
votes
2
answers
5k
views
Django makemessages "struct.error: unpack requires a buffer of 4 bytes"
I have a django instance packed in Docker container in docker-compose.
I'm trying to generate makemessages files for project, but when I try to run makemessages, that's what I receieve in response
...
0
votes
1
answer
915
views
How to best translate strings passed as variable to a Django module?
I'm doing my first steps in Django and am trying to get translations of text to work which I'm passing into the application through an .ini file.
Say my init.ini is:
[test]
GREETING = Hello World
...
7
votes
3
answers
2k
views
makemessages command results in html.py files and a UnicodeDecodeError
When I run this command:
django-admin makemessages -l ar
It gives this error:
Traceback (most recent call last):
File "c:\users\ahmed\appdata\local\programs\python\python36-32\lib\site-packages\...
6
votes
3
answers
4k
views
django-admin makemessages --no-obsolete doesn't seem to be working
First of all, I am expecting --no-obsolete would comment out msgid and msgstr if gettext is deleted, right?
How I am testing is:
I wrote gettext("some string here") in view
I ran makemessages ...
5
votes
4
answers
2k
views
Django Internationalization - Gettext error
Am building a site with Django. After downloading gettext-0.19.8.tar.gz ---> /Users/cohen/Downloads/gettext-0.19.8 and running all of the steps ./configure make and sudo make installation I ...
6
votes
1
answer
7k
views
How to integrate multi-languages support by creating language files in Django 2.0?
I want to create a Django 2.0 powered website(including auto generated Admin site) that should support multiple languages.
For now I only want to keep 2 languages English and Arabic.
I read number ...
0
votes
1
answer
632
views
Is there any way to execute custom makemessages command by running "django-admin makemessages -l ja"?
I'm using Django1.11.5 and I created makemessages.py file in "my-app/management/commands/" directory to customise makemessages command.
And I made it to execute this command by running "python ../...
0
votes
1
answer
658
views
Django Translation Issue: makemessages command not detecting new {% blocktrans %} tags
I have recently taken over a django project which contains a locale folder. Since then I have added many new {% blocktrans %} tags to the html files. However when I use the command:
python manage.py ...