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
7107b6ff
Kaydet (Commit)
7107b6ff
authored
Kas 07, 2016
tarafından
Carl Meyer
Kaydeden (comit)
Tim Graham
Kas 07, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #27454 -- Skipped gettext calls for apps without a locale dir.
üst
cb3fb34b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
trans_real.py
django/utils/translation/trans_real.py
+3
-2
No files found.
django/utils/translation/trans_real.py
Dosyayı görüntüle @
7107b6ff
...
...
@@ -173,8 +173,9 @@ class DjangoTranslation(gettext_module.GNUTranslations):
"gettext calls at import time."
)
for
app_config
in
app_configs
:
localedir
=
os
.
path
.
join
(
app_config
.
path
,
'locale'
)
translation
=
self
.
_new_gnu_trans
(
localedir
)
self
.
merge
(
translation
)
if
os
.
path
.
exists
(
localedir
):
translation
=
self
.
_new_gnu_trans
(
localedir
)
self
.
merge
(
translation
)
def
_add_local_translations
(
self
):
"""Merges translations defined in LOCALE_PATHS."""
...
...
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