Re: [django-oscar] django-oscar translations missing

140 views
Skip to first unread message

Bashar

unread,
Feb 6, 2019, 3:29:17 PM2/6/19
to django...@googlegroups.com
You need to compile messages to load them 
manage.py compilemessages -l ar

BTW I remember translating Oscar to Arabic, which version you're using? You can jump with me on transifex if you have free time :)

On Wed, Feb 6, 2019 at 11:24 PM Abdelrahman Mamdouh <bedoo1...@gmail.com> wrote:
django oscar translations files are missing some words for Arabic translation like 'log in' , ' I've forgotten my password' and some more ..
I tried to override the file at (oscar/locale/ar/LC_MESSAGES/django.po ) and it worked only in local host when i push my app to heroku , as heroku install the requirements.txt it get the old local folder from django oscar with the missing words

how can i override this folder to my project ? 
I tried to create a brand new translations files (like provided in the docs) and translate the app on my own but it still read the folder from oscar/locale/ 

I'm pretty stuck here 😖 
please can I have some help

Thanks in advance

--
https://github.com/django-oscar/django-oscar
http://django-oscar.readthedocs.org/en/latest/
https://twitter.com/django_oscar
---
You received this message because you are subscribed to the Google Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-oscar.
To view this discussion on the web, visit https://groups.google.com/d/msgid/django-oscar/CAKULi0dtW1M4HfoZ%3DDg0fvnRr3EMBaBp9s40CB4SN8whVxzcaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Abdelrahman Mamdouh

unread,
Feb 6, 2019, 3:34:46 PM2/6/19
to django-oscar
yea I already done the compile after creating new locale folder and it's Arabic folder and messages but the app doesn't read this folder
if I edited the Arabic file in the  locale folder at oscar it works but that only in localhost 

I'm using django-oscar 1.6.7

Bashar

unread,
Feb 6, 2019, 3:37:19 PM2/6/19
to django...@googlegroups.com
Can you explain what does working in local means? And what is non local? How you deployed the Django project online? Did you delete the mo file and possibly touched your wsgi file or restarted Apache?


Abdelrahman Mamdouh

unread,
Feb 6, 2019, 3:46:41 PM2/6/19
to django-oscar
the locale folder that within the django-oscar package has already all languages and the Arabic is missing words
if I added these words and compile messages then start the server locally the new translations work
but when i deploy the app to heroku , first I need to add a requirements.txt file and heroku use this to install all the packages into my app
which means it installing the django-oscar again with the old folder ( the one that I edited locally) so the words are missing again

All i need is how to provide new translations and ignore the one provided by oscar ?
If I have an existing .po file with the correct translation , how can I use it with my app ?

Bashar

unread,
Feb 6, 2019, 3:49:50 PM2/6/19
to django...@googlegroups.com
That's heroku specific on how to deploy, can't you upload PO file and compile messages on heroku? (sorry my knowledge is limited about their infrastructure) 

Abdelrahman Mamdouh

unread,
Feb 6, 2019, 4:31:35 PM2/6/19
to django-oscar
Sorry for replying late I was trying this ..
I can use (heroku run) to run same compile messages command on heroku 
and when I used this it did the compile messages of the django oscar locale folder not my new one so again same missing words :(

Bashar

unread,
Feb 6, 2019, 10:55:39 PM2/6/19
to django...@googlegroups.com
Replace the po on the same path and recompile? 

Abdelrahman Mamdouh

unread,
Feb 6, 2019, 10:59:23 PM2/6/19
to django-oscar
which po file ? 
I cant replace the file in django package because any way heroku install django-oscar again when I push my project to its server

Bashar

unread,
Feb 7, 2019, 5:56:18 AM2/7/19
to django...@googlegroups.com
you followed this and its still reading the django package locale?

Message has been deleted

Abdelrahman Mamdouh

unread,
Feb 7, 2019, 11:14:00 AM2/7/19
to django-oscar
yea , I've done that and translated some words for testing purpose and nothing happend, same translations are loaded
Reply all
Reply to author
Forward
0 new messages