parent
73c30b79c0
commit
4f99ba84b3
|
@ -1,17 +0,0 @@
|
|||
<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>
|
|
@ -1,44 +0,0 @@
|
|||
<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>
|
|
@ -12,46 +12,6 @@ base_dir = path.dirname(path.abspath(__file__))
|
|||
media_dir = path.join(base_dir, 'media')
|
||||
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 = [
|
||||
url(r'^$', views.index_page),
|
||||
|
||||
|
|
|
@ -76,18 +76,10 @@ def jsi18n(request):
|
|||
return render(request, 'jsi18n.html')
|
||||
|
||||
|
||||
def old_jsi18n(request):
|
||||
return render(request, 'old_jsi18n.html')
|
||||
|
||||
|
||||
def jsi18n_multi_catalogs(request):
|
||||
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'):
|
||||
# We need to inspect the HTML generated by the fancy 500 debug view but
|
||||
# the test client ignores it, so we send it explicitly.
|
||||
|
|
Loading…
Reference in New Issue