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
d2975718
Kaydet (Commit)
d2975718
authored
Agu 13, 2012
tarafından
Florian Apolloner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Consistenly use _ as alias for ugettext_lazy in the i18n docs.
üst
45baaaba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
translation.txt
docs/topics/i18n/translation.txt
+6
-6
No files found.
docs/topics/i18n/translation.txt
Dosyayı görüntüle @
d2975718
...
...
@@ -317,10 +317,10 @@ Model fields and relationships ``verbose_name`` and ``help_text`` option values
For example, to translate the help text of the *name* field in the following
model, do the following::
from django.utils.translation import ugettext_lazy
from django.utils.translation import ugettext_lazy
as _
class MyThing(models.Model):
name = models.CharField(help_text=
ugettext_lazy
('This is the help text'))
name = models.CharField(help_text=
_
('This is the help text'))
You can mark names of ``ForeignKey``, ``ManyTomanyField`` or ``OneToOneField``
relationship as translatable by using their ``verbose_name`` options::
...
...
@@ -344,14 +344,14 @@ It is recommended to always provide explicit
relying on the fallback English-centric and somewhat naïve determination of
verbose names Django performs bu looking at the model's class name::
from django.utils.translation import ugettext_lazy
from django.utils.translation import ugettext_lazy
as _
class MyThing(models.Model):
name = models.CharField(_('name'), help_text=
ugettext_lazy
('This is the help text'))
name = models.CharField(_('name'), help_text=
_
('This is the help text'))
class Meta:
verbose_name =
ugettext_lazy
('my thing')
verbose_name_plural =
ugettext_lazy
('my things')
verbose_name =
_
('my thing')
verbose_name_plural =
_
('my things')
Model methods ``short_description`` attribute values
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
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