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
4f99ba84
Kaydet (Commit)
4f99ba84
authored
Nis 02, 2017
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed unused code in i18n view_tests
Unused since
2b20e414
.
üst
73c30b79
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
109 deletions
+0
-109
old_jsi18n-multi-catalogs.html
tests/view_tests/templates/old_jsi18n-multi-catalogs.html
+0
-17
old_jsi18n.html
tests/view_tests/templates/old_jsi18n.html
+0
-44
urls.py
tests/view_tests/urls.py
+0
-40
views.py
tests/view_tests/views.py
+0
-8
No files found.
tests/view_tests/templates/old_jsi18n-multi-catalogs.html
deleted
100644 → 0
Dosyayı görüntüle @
73c30b79
<html>
<head>
<script
type=
"text/javascript"
src=
"/old_jsi18n/app1/"
></script>
<script
type=
"text/javascript"
src=
"/old_jsi18n/app2/"
></script>
<body>
<p
id=
"app1string"
>
<script
type=
"text/javascript"
>
document
.
write
(
gettext
(
'this app1 string is to be translated'
))
</script>
</p>
<p
id=
"app2string"
>
<script
type=
"text/javascript"
>
document
.
write
(
gettext
(
'this app2 string is to be translated'
))
</script>
</p>
</body>
</html>
tests/view_tests/templates/old_jsi18n.html
deleted
100644 → 0
Dosyayı görüntüle @
73c30b79
<html>
<head>
<script
type=
"text/javascript"
src=
"/old_jsi18n_admin/"
></script>
</head>
<body>
<p
id=
"gettext"
>
<script
type=
"text/javascript"
>
document
.
write
(
gettext
(
"Remove"
));
</script>
</p>
<p
id=
"ngettext_sing"
>
<script
type=
"text/javascript"
>
document
.
write
(
interpolate
(
ngettext
(
"%s item"
,
"%s items"
,
1
),
[
1
]));
</script>
</p>
<p
id=
"ngettext_plur"
>
<script
type=
"text/javascript"
>
document
.
write
(
interpolate
(
ngettext
(
"%s item"
,
"%s items"
,
455
),
[
455
]));
</script>
</p>
<p
id=
"pgettext"
>
<script
type=
"text/javascript"
>
document
.
write
(
pgettext
(
"verb"
,
"May"
));
</script>
</p>
<p
id=
"npgettext_sing"
>
<script
type=
"text/javascript"
>
document
.
write
(
interpolate
(
npgettext
(
"search"
,
"%s result"
,
"%s results"
,
1
),
[
1
]));
</script>
</p>
<p
id=
"npgettext_plur"
>
<script
type=
"text/javascript"
>
document
.
write
(
interpolate
(
npgettext
(
"search"
,
"%s result"
,
"%s results"
,
455
),
[
455
]));
</script>
</p>
</body>
</html>
tests/view_tests/urls.py
Dosyayı görüntüle @
4f99ba84
...
@@ -12,46 +12,6 @@ base_dir = path.dirname(path.abspath(__file__))
...
@@ -12,46 +12,6 @@ base_dir = path.dirname(path.abspath(__file__))
media_dir
=
path
.
join
(
base_dir
,
'media'
)
media_dir
=
path
.
join
(
base_dir
,
'media'
)
locale_dir
=
path
.
join
(
base_dir
,
'locale'
)
locale_dir
=
path
.
join
(
base_dir
,
'locale'
)
js_info_dict
=
{
'domain'
:
'djangojs'
,
'packages'
:
(
'view_tests'
,),
}
js_info_dict_english_translation
=
{
'domain'
:
'djangojs'
,
'packages'
:
(
'view_tests.app0'
,),
}
js_info_dict_multi_packages1
=
{
'domain'
:
'djangojs'
,
'packages'
:
(
'view_tests.app1'
,
'view_tests.app2'
),
}
js_info_dict_multi_packages2
=
{
'domain'
:
'djangojs'
,
'packages'
:
(
'view_tests.app3'
,
'view_tests.app4'
),
}
js_info_dict_admin
=
{
'domain'
:
'djangojs'
,
'packages'
:
(
'django.contrib.admin'
,
'view_tests'
),
}
js_info_dict_app1
=
{
'domain'
:
'djangojs'
,
'packages'
:
(
'view_tests.app1'
,),
}
js_info_dict_app2
=
{
'domain'
:
'djangojs'
,
'packages'
:
(
'view_tests.app2'
,),
}
js_info_dict_app5
=
{
'domain'
:
'djangojs'
,
'packages'
:
(
'view_tests.app5'
,),
}
urlpatterns
=
[
urlpatterns
=
[
url
(
r'^$'
,
views
.
index_page
),
url
(
r'^$'
,
views
.
index_page
),
...
...
tests/view_tests/views.py
Dosyayı görüntüle @
4f99ba84
...
@@ -76,18 +76,10 @@ def jsi18n(request):
...
@@ -76,18 +76,10 @@ def jsi18n(request):
return
render
(
request
,
'jsi18n.html'
)
return
render
(
request
,
'jsi18n.html'
)
def
old_jsi18n
(
request
):
return
render
(
request
,
'old_jsi18n.html'
)
def
jsi18n_multi_catalogs
(
request
):
def
jsi18n_multi_catalogs
(
request
):
return
render
(
request
,
'jsi18n-multi-catalogs.html'
)
return
render
(
request
,
'jsi18n-multi-catalogs.html'
)
def
old_jsi18n_multi_catalogs
(
request
):
return
render
(
request
,
'old_jsi18n-multi-catalogs.html'
)
def
raises_template_does_not_exist
(
request
,
path
=
'i_dont_exist.html'
):
def
raises_template_does_not_exist
(
request
,
path
=
'i_dont_exist.html'
):
# We need to inspect the HTML generated by the fancy 500 debug view but
# We need to inspect the HTML generated by the fancy 500 debug view but
# the test client ignores it, so we send it explicitly.
# the test client ignores it, so we send it explicitly.
...
...
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