Python Django - Multiple Languages - Internationalization - Part 1

preview_player
Показать описание
In this Python Django tutorial I will take you through the basics of setting up internationalization in Django so that you your application supports multiple languages.

Commands:

00:00 Introduction
00:13 Final Example
01:14 Introducing Internationalization with Django
03:28 Installing gettext on Windows
03:54 Code starts

Windows gettext install:

Code Repository:

✨ Support us - join us as a very academy member

👍SUBSCRIBE to get more free tutorials, courses and code snippets!

👍👍Follow us on Facebook

👍👍👍Follow use on Twitter:
Рекомендации по теме
Комментарии
Автор

I'm very passionate about Django and I just found out about your channel a couple days ago. I've been bingewatching your e-commerce series. I started out with Django 9 months ago and I'm already familiar with many of the things you covered there, but I still got to learn new stuff that I hadn't looked into yet. So thank you, because your content truly is amazing! I seem to be understanding from other comments that you're taking in suggestions for topics to cover?

samuelebonini
Автор

This is the best instruction of Django localization on Youtube! 😍

LetWorkTogether
Автор

@Very Academy  I don't know much about what more can be done using localization or internationalization. But it would be useful if you make a few more videos on this topics because this is really cool and much needed feature for websites.

kopilagaire
Автор

Thank you so much sir, your tutorial is so good👍

kevinzhang
Автор

Great tutorial, works perfectly!

I have only one question, what can you make to remain on the same page when you click on a language instead of returning to homepage?

alexandrosdimiropoulos
Автор

A big thank you from my bottom of my heart. If possible can you make a currency converter (the USA to Rupees) with APIS?

KrishnaManohar
Автор

What wonderfull youtube channel <3 thanks a lot

zorojuro
Автор

FOR DJANGO REST FRAMEWORK:

Guys if you are looking for applying translation into drf you dont need to do the template tags (somehow) the same approach on serializers or viewsets. You just need to add the changes to model fields like:

name = models.CharField(_('name'), max_length=255)
user = models.ForeignKey(User, on_delete=models.CASCADE, verbose_name=_('user'))

That's it. You dont need to do anything in the serializers or viewsets.

Good luck.

ProSimples
Автор

Sir please make video on customer middleware and their use cases, how to add multiple database

vivektiwari
Автор

I have followed through your step and have been able to configure translation for both English and french but cant seem to get it to work for Simplified Chinese. Are there any special instructions for Simplified Chinese, and could you guide me on this?

ernestmucheru
Автор

BTW, which code color theme are you using in this? I would like to use the same

beongky
Автор

I'm interested in making a CMS for easy changes to my website. How big of a solo project do you think this would be and do you have any resources on creating a CMS in Django? :)

sadcat
Автор

Sir can u make a video, in that we can automatically fill the .po files

sanchitbhadgal
Автор

hello i really liked your video and i'm basing my web application on it. I would like a north because I'm not finding it. how do I link in navbar with the translation in need type in url two "en/"?

noobdaaviacao
Автор

How do I show dynamic data in template

nepalbeats
Автор

The part 2 is not enough. Can you explain how did you solve the redirect problem after language selection?

isfanzade
Автор

I thank you so much for this tutorial.
However, I have a question according to this topic. I would like my datas to be translated. I have seen something like this {% blocktrans %}This is a paragraph to translate with a variable : {{ static_string_1 }}{% endblocktrans %} but it's not working.
After making messages, I got things like this: %(project.title)s .
Once again thank you in advance

khamiscisse
Автор

In url automatic language symbol not appears...can you tell me what's the problem

niteshchaudhary
Автор

How do you keep the changed language when navigating to a new page? I can initially change the language which works but when I go to a different page, the default language is what is displayed. To see the translation I have to manually type in the language code in my url

sheriffcrandy
Автор

how can i set my default language for my project? when i go in my main link, django auto translate en but i want translate fr

farhadggu