Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
de4265e0
Kaydet (Commit)
de4265e0
authored
Tem 02, 2016
tarafından
Leila20
Kaydeden (comit)
Baptiste Mispelon
Tem 02, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #26832 -- Added translated language name on the get_language_info documentation
üst
a9215b7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
translation.txt
docs/topics/i18n/translation.txt
+7
-5
No files found.
docs/topics/i18n/translation.txt
Dosyayı görüntüle @
de4265e0
...
...
@@ -525,13 +525,15 @@ Localized names of languages
The ``get_language_info()`` function provides detailed information about
languages::
>>> from django.utils.translation import get_language_info
>>> from django.utils.translation import activate, get_language_info
>>> activate('fr')
>>> li = get_language_info('de')
>>> print(li['name'], li['name_local'], li['bidi'])
German Deutsch False
>>> print(li['name'], li['name_local'], li['
name_translated'], li['
bidi'])
German Deutsch
Allemand
False
The ``name`` and ``name_local`` attributes of the dictionary contain the name of
the language in English and in the language itself, respectively. The ``bidi``
The ``name``, ``name_local``, and ``name_translated`` attributes of the
dictionary contain the name of the language in English, in the language
itself, and in your current active language respectively. The ``bidi``
attribute is True only for bi-directional languages.
The source of the language information is the ``django.conf.locale`` module.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment