Tuesday, January 4, 2022

Re: translat using oscar framework


On Tue, Jan 4, 2022, 22:23 Kasper Laudrup <laudrup@stacktrace.dk> wrote:
On 04/01/2022 09.50, frank lucky wrote:
>
> mkdir locale i18n
> ln -s $PATH_TO_OSCAR i18n/oscar
> ./manage.py makemessages --symlinks --locale=de
>
> how i do it in windows  i make  local and i18n forlder in root of
> peoject but
> secound line not working
>

First of all, it is much easier for someone to help you if you describe
the errors you are getting instead of simply writing "not working" and
expect people to guess what that might mean.

It is quite easy to see the issues with that line. In Windows
environment variables, at least in cmd.exe, are accessed with % instead
of $ so you need to change that to %PATH_TO_OSCAR. Of course, that
assumes that you actually have that variable in your environment somehow.

Also, Windows hasn't support symbolic links historically but since
Windows 2000 or so it should be possible to use the "mklink" command
instead of the "ln" Unix command:

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/mklink

Not sure it will work though and in general I would really recommend
using pretty much anything other than Windows. It will save you from
tons and tons of frustrations.

Kind regards.

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e724fbde-d349-5e3c-1826-d1d669af157a%40stacktrace.dk.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANOYH4%3D2D%3Diqr4OyaVCwsTg6AKh0u3%3DrPQkfP45MUvHEt6D2uQ%40mail.gmail.com.

No comments:

Post a Comment