This is why i love your channel. quick and straight to the point. Hope you keep this up Can we request a multi-tenant system in django with one db per tenant
Very nice content! Thanks a lot! It would indeed be great to have a little deep-dive on this topic. Thinking about a multi-language page (supporting >2 languages), manual language selection and also some more info on how this would work with forms e.g. validation messages, fieldnames...
How you got the gettext working with the django-admin makemessages - l ? I am having this error: CommandError: Can't find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed. I made the command: pip install python-gettext. but nothing is working
How do you persist the language when navigating to a new page via a tag? I changed my language which works, but when I try to navigate to a new page, it reverts back to the default language instead of staying on the changed language
i didn't understand: you must MANUALLY set the translation? And every time a new input is added (like admin), i would need to compile the messages again? it didn't seen to be very pratical in a production enviorment, honestly...
Is there a way to automatically translate the website built with Django? Something like all those WordPress plugins that do automatic translation, but for Django platform. Thanks!
The extension that he used to change language is called "Locale Switcher" linked: chrome.google.com/webstore/detail/locale-switcher/kngfjpghaokedippaapkfihdlmmlafcc/related?hl=en
@@mohako98 Then, there are many approaches. The first would be to make 2 websites in different languages and with a button-action, load the other page. Easy but repetitive. The other that I prefer is to write a function in javascript, a translator function that maps every item that needs to be translated to its language. Easier to scale since if you add support for another language, you just need to update the data for mapping, and the function will take care of the rest, and that my friend you enter in the big area of accessibility. Your backend has to identify the user country to load the correct language. Otherwise, it would send the default and you don't send all the language in one call for performance issues.
Join my free course on the basics of using the database in Django: prettyprinted.com/djangodata
Really clear and straightforward
You're an absolute legend, Anthony! Thank you my bro 🥳🏆
Thank u I've been looking for this for a month.
I think you forgot to define LOCALE_PATHS in settings. This give me an error.
In Setting.py
LOCALE_PATHS = [
os.path.join(BASE_DIR, 'locale')
]
Thank you soo much!!
This is why i love your channel. quick and straight to the point.
Hope you keep this up
Can we request a multi-tenant system in django with one db per tenant
Very nice content! Thanks a lot! It would indeed be great to have a little deep-dive on this topic. Thinking about a multi-language page (supporting >2 languages), manual language selection and also some more info on how this would work with forms e.g. validation messages, fieldnames...
How you got the gettext working with the django-admin makemessages - l ? I am having this error: CommandError: Can't find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed. I made the command: pip install python-gettext. but nothing is working
it worked like magic, thanks for this tutorial
Glad it helped!
How do you persist the language when navigating to a new page via a tag? I changed my language which works, but when I try to navigate to a new page, it reverts back to the default language instead of staying on the changed language
have you found any solution to set the language in the session?
Great video! But how can a user select their language directly on our website?
Great video, thanks Anthony! How can I make a button for the users to switch between languages manually?
+1 🙋
Yeah I was hoping for that too :)
I'll look into making a video for that.
+1
Yes please, that would be great!
Useful. Thanks bro. please add another video for translation models in the forms tag.
La traducción correcta sería "Hola, yo soy Antonio" o "Hola, soy Antonio " :), great video!!
Haha thanks. I didn't pay attention in my Spanish class
Muchas gracias por el video, era exactamente lo que andaba buscando.
Hello, thak you for sahre this tutorial. I read the official guida but is not intuitive. I follow the video and works fine. Your spanish is good :D
i didn't understand: you must MANUALLY set the translation? And every time a new input is added (like admin), i would need to compile the messages again? it didn't seen to be very pratical in a production enviorment, honestly...
Is there a way to automatically translate the website built with Django? Something like all those WordPress plugins that do automatic translation, but for Django platform.
Thanks!
Привет! Какое расширение ты используешь для переключения языка в браузере?
Thank you for this simple and goo video
Great work
I am currently doing ecommerce website. How can I change currency based IP/country based on user visit!
Awesome as always Anthony, thanks!
Thank you very much for this video.
which extension you have used
thank you! very clear explanation!
I just loved your video! Too good! But the next time, can you turn up the volume of your voice?
What is the name of the extension?
hi , CommandError: Can't find xgettext. Make sure you have GNU gettext tools 0.15 or newer installed.
what is tihs ı cant fixed ??
You should install gettext manually on your system
Thanks a lot!
Hello, i have problem with translation of fields name form my model (model.py), how can i acces that field and translate them also?
Thank You, Mr. Antony! Your videos returning my brains into my head from ... doesn't matter. P.S. Sublime --> VS Code --> VIM?))
It was actually VIM -> Sublime -> VS Code. I was all three regularly though
Hi, great video. I store the idiom preferrence in a model call profile. How Im able to load the idiom from the profile user?
But es link in yhe adressbar is not displaed when translated how to do that
Dude, you're awesome!
Hey Anthony, I wanted to know how you chose chrome as your browser in vs code? Great tutorials pal!!
Hi, Great video.how can a user select their language directly on our website? Please reply
Thanks
Good job all the time
thank you
Video Request - Django Rest Framework - Converting exist project into api's (practical demo)
I know rest but still confusing how to use it properly.
I'll see what I can do
@@prettyprinted Thank you so much for reply
+1
this is good thanks how to change the admin area
Anthony needed the same with flask 🤝
I have some videos around for this on Flask in my course called The Flask Extensions Course
@@prettyprinted ✊🏻TFI mate
What about currency and other localizations?
Definitely could be done. I'll consider making a follow up video.
thank you very much
Pls what is the name of the plugin you use to change your browser language ?
The extension that he used to change language is called "Locale Switcher"
linked: chrome.google.com/webstore/detail/locale-switcher/kngfjpghaokedippaapkfihdlmmlafcc/related?hl=en
@@عبدالعزيزسيد-غ1خ thk you very much ! 👍
Hi, how can I translate static value in template ?
thank
thank you for such useful video ,, but please how can i switch between 2 lang inside the app itself not by browser
What do you mean? He did the translation by himself
@@bryanDaMazo16
I mean something like a navigation button en/ar
Or a radio button in the header
Not change language from settings of browser
@@mohako98 Then, there are many approaches. The first would be to make 2 websites in different languages and with a button-action, load the other page. Easy but repetitive. The other that I prefer is to write a function in javascript, a translator function that maps every item that needs to be translated to its language. Easier to scale since if you add support for another language, you just need to update the data for mapping, and the function will take care of the rest, and that my friend you enter in the big area of accessibility. Your backend has to identify the user country to load the correct language. Otherwise, it would send the default and you don't send all the language in one call for performance issues.
Could you please make a updated video flask-sqlalchemy whoosh?
Привет! Спасибо!
How can Trans Django Models ??? sir :(
The sad is that, there is nobody talking abou how to translate in django rest framework.
nice tutorial.
but how can we make this good like
eng:
example.com/en/
chinese
exampl.com/cn/
I'll think about covering that one as well
+1
In Spanish "Mi nombre es : " "Yo soy:"
Damm.... Bro, U r the best !!!
locale UA: Привіт з України !!!
Helpful tutorial. Good thing you aren't teaching spanish!
thanks