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
31817dd2
Kaydet (Commit)
31817dd2
authored
Ock 27, 2016
tarafından
Yoong Kang Lim
Kaydeden (comit)
Tim Graham
Ock 27, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #26136 -- Removed URL reversing by dotted path from JavaScript catalog example.
üst
8e6a08e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
AUTHORS
AUTHORS
+1
-0
translation.txt
docs/topics/i18n/translation.txt
+3
-3
No files found.
AUTHORS
Dosyayı görüntüle @
31817dd2
...
@@ -760,6 +760,7 @@ answer newbie questions, and generally made Django that much better:
...
@@ -760,6 +760,7 @@ answer newbie questions, and generally made Django that much better:
Yasushi Masuda <whosaysni@gmail.com>
Yasushi Masuda <whosaysni@gmail.com>
ye7cakf02@sneakemail.com
ye7cakf02@sneakemail.com
ymasuda@ethercube.com
ymasuda@ethercube.com
Yoong Kang Lim <yoongkang.lim@gmail.com>
Yusuke Miyazaki <miyazaki.dev@gmail.com>
Yusuke Miyazaki <miyazaki.dev@gmail.com>
Zachary Voase <zacharyvoase@gmail.com>
Zachary Voase <zacharyvoase@gmail.com>
Zach Thompson <zthompson47@gmail.com>
Zach Thompson <zthompson47@gmail.com>
...
...
docs/topics/i18n/translation.txt
Dosyayı görüntüle @
31817dd2
...
@@ -984,7 +984,7 @@ You hook it up like this::
...
@@ -984,7 +984,7 @@ You hook it up like this::
}
}
urlpatterns = [
urlpatterns = [
url(r'^jsi18n/$', javascript_catalog, js_info_dict),
url(r'^jsi18n/$', javascript_catalog, js_info_dict
, name='javascript-catalog'
),
]
]
Each string in ``packages`` should be in Python dotted-package syntax (the
Each string in ``packages`` should be in Python dotted-package syntax (the
...
@@ -1004,7 +1004,7 @@ changed by altering the ``domain`` argument.
...
@@ -1004,7 +1004,7 @@ changed by altering the ``domain`` argument.
You can make the view dynamic by putting the packages into the URL pattern::
You can make the view dynamic by putting the packages into the URL pattern::
urlpatterns = [
urlpatterns = [
url(r'^jsi18n/(?P<packages>\S+?)/$', javascript_catalog),
url(r'^jsi18n/(?P<packages>\S+?)/$', javascript_catalog
, name='javascript-catalog'
),
]
]
With this, you specify the packages as a list of package names delimited by '+'
With this, you specify the packages as a list of package names delimited by '+'
...
@@ -1054,7 +1054,7 @@ To use the catalog, just pull in the dynamically generated script like this:
...
@@ -1054,7 +1054,7 @@ To use the catalog, just pull in the dynamically generated script like this:
.. code-block:: html+django
.. code-block:: html+django
<script type="text/javascript" src="{% url '
django.views.i18n.javascript_
catalog' %}"></script>
<script type="text/javascript" src="{% url '
javascript-
catalog' %}"></script>
This uses reverse URL lookup to find the URL of the JavaScript catalog view.
This uses reverse URL lookup to find the URL of the JavaScript catalog view.
When the catalog is loaded, your JavaScript code can use the following methods:
When the catalog is loaded, your JavaScript code can use the following methods:
...
...
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