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
0c685ab6
Kaydet (Commit)
0c685ab6
authored
May 25, 2014
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[1.7.x] Removed code deprecated from Django 1.2
Backport of
2779c299
from master.
üst
dbdbda87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
trans_null.py
django/utils/translation/trans_null.py
+2
-14
No files found.
django/utils/translation/trans_null.py
Dosyayı görüntüle @
0c685ab6
...
...
@@ -31,23 +31,11 @@ get_language = lambda: settings.LANGUAGE_CODE
get_language_bidi
=
lambda
:
settings
.
LANGUAGE_CODE
in
settings
.
LANGUAGES_BIDI
check_for_language
=
lambda
x
:
True
# date formats shouldn't be used using gettext anymore. This
# is kept for backward compatibility
TECHNICAL_ID_MAP
=
{
"DATE_WITH_TIME_FULL"
:
settings
.
DATETIME_FORMAT
,
"DATE_FORMAT"
:
settings
.
DATE_FORMAT
,
"DATETIME_FORMAT"
:
settings
.
DATETIME_FORMAT
,
"TIME_FORMAT"
:
settings
.
TIME_FORMAT
,
"YEAR_MONTH_FORMAT"
:
settings
.
YEAR_MONTH_FORMAT
,
"MONTH_DAY_FORMAT"
:
settings
.
MONTH_DAY_FORMAT
,
}
def
gettext
(
message
):
result
=
TECHNICAL_ID_MAP
.
get
(
message
,
message
)
if
isinstance
(
message
,
SafeData
):
return
mark_safe
(
result
)
return
result
return
mark_safe
(
message
)
return
message
def
ugettext
(
message
):
...
...
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