Wednesday, January 5, 2022

Re: translat using oscar framework

hi thanks for you time i  use this

mklink /d %PATH_TO_OSCAR/oscar

but i get this error (oscar) PS C:\Users\faramarz\Desktop\uniqemug-os> mklink /d %PATH_TO_OSCAR/oscar
mklink : The term 'mklink' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ mklink /d %PATH_TO_OSCAR/oscar
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (mklink:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

On Tuesday, January 4, 2022 at 8:24:30 PM UTC+3:30 Kasper Laudrup 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/4a80758e-d6e9-4c4a-a4fc-043e31cb2c6cn%40googlegroups.com.

No comments:

Post a Comment