Skip to content

Commit a2d5c80

Browse files
committed
Translated 'ref/contrib/comments/models.txt' (#189)
1 parent 356b124 commit a2d5c80

File tree

1 file changed

+82
-34
lines changed

1 file changed

+82
-34
lines changed

ref/contrib/comments/models.txt

Lines changed: 82 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,130 @@
1-
===========================
2-
The built-in comment models
3-
===========================
1+
.. ===========================
2+
The built-in comment models
3+
===========================
44

5-
:revision-up-to: 17812 (1.4) unfinished
5+
========================
6+
組み込みのコメントモデル
7+
========================
8+
9+
:revision-up-to: 17812 (1.4)
610

711
.. module:: django.contrib.comments.models
812
:synopsis: The built-in comment models
913

1014
.. class:: Comment
1115

12-
Django's built-in comment model. Has the following fields:
16+
.. Django's built-in comment model. Has the following fields:
17+
18+
Django の組み込みコメントモデルです。次のフィールドを持ちます:
1319

1420
.. attribute:: content_object
1521

16-
A :class:`~django.contrib.contettypes.generic.GenericForeignKey`
17-
attribute pointing to the object the comment is attached to. You can use
18-
this to get at the related object (i.e. ``my_comment.content_object``).
22+
.. A :class:`~django.contrib.contettypes.generic.GenericForeignKey`
23+
attribute pointing to the object the comment is attached to. You can use
24+
this to get at the related object (i.e. ``my_comment.content_object``).
25+
26+
コメントが結びつけられたオブジェクトを指す
27+
:class:`~django.contrib.contettypes.generic.GenericForeignKey`
28+
属性です。これを使うことで関連づけられたオブジェクトを取得できます
29+
(たとえば ``my_comment.content_object``)。
30+
31+
.. Since this field is a
32+
:class:`~django.contrib.contettypes.generic.GenericForeignKey`, it's
33+
actually syntactic sugar on top of two underlying attributes, described
34+
below.
1935

20-
Since this field is a
21-
:class:`~django.contrib.contettypes.generic.GenericForeignKey`, it's
22-
actually syntactic sugar on top of two underlying attributes, described
23-
below.
36+
このフィールドは
37+
:class:`~django.contrib.contettypes.generic.GenericForeignKey` なので、
38+
実際には以下で説明する 2 つの属性のシンタックスシュガーです。
2439

2540
.. attribute:: content_type
2641

27-
A :class:`~django.db.models.ForeignKey` to
28-
:class:`~django.contrib.contenttypes.models.ContentType`; this is the
29-
type of the object the comment is attached to.
42+
.. A :class:`~django.db.models.ForeignKey` to
43+
:class:`~django.contrib.contenttypes.models.ContentType`; this is the
44+
type of the object the comment is attached to.
45+
46+
:class:`~django.contrib.contenttypes.models.ContentType` への
47+
:class:`~django.db.models.ForeignKey` です。これはコメントが
48+
結びつけられたオブジェクトのタイプです。
3049

3150
.. attribute:: object_pk
3251

33-
A :class:`~django.db.models.TextField` containing the primary
34-
key of the object the comment is attached to.
52+
.. A :class:`~django.db.models.TextField` containing the primary
53+
key of the object the comment is attached to.
54+
55+
コメントが関連づけられたオブジェクトのプライマリキーを含んだ
56+
:class:`~django.db.models.TextField` です。
3557

3658
.. attribute:: site
3759

38-
A :class:`~django.db.models.ForeignKey` to the
39-
:class:`~django.contrib.sites.models.Site` on which the comment was
40-
posted.
60+
.. A :class:`~django.db.models.ForeignKey` to the
61+
:class:`~django.contrib.sites.models.Site` on which the comment was
62+
posted.
63+
64+
コメントが投稿された :class:`~django.contrib.sites.models.Site` への
65+
:class:`~django.db.models.ForeignKey` です。
4166

4267
.. attribute:: user
4368

44-
A :class:`~django.db.models.ForeignKey` to the
45-
:class:`~django.contrib.auth.models.User` who posted the comment.
46-
May be blank if the comment was posted by an unauthenticated user.
69+
.. A :class:`~django.db.models.ForeignKey` to the
70+
:class:`~django.contrib.auth.models.User` who posted the comment.
71+
May be blank if the comment was posted by an unauthenticated user.
72+
73+
コメントを投稿した :class:`~django.contrib.auth.models.User` への
74+
:class:`~django.db.models.ForeignKey` です。コメントが認証されていない
75+
ユーザによって登録された場合は空になるかもしれません。
4776

4877
.. attribute:: user_name
4978

50-
The name of the user who posted the comment.
79+
.. The name of the user who posted the comment.
80+
81+
コメントを投稿したユーザの名前です。
5182

5283
.. attribute:: user_email
5384

54-
The email of the user who posted the comment.
85+
.. The email of the user who posted the comment.
86+
87+
コメントを投稿したユーザの Email アドレスです。
5588

5689
.. attribute:: user_url
5790

58-
The URL entered by the person who posted the comment.
91+
.. The URL entered by the person who posted the comment.
92+
93+
コメントを投稿したユーザが入力した URL です。
5994

6095
.. attribute:: comment
6196

62-
The actual content of the comment itself.
97+
.. The actual content of the comment itself.
98+
99+
コメントの内容そのものです。
63100

64101
.. attribute:: submit_date
65102

66-
The date the comment was submitted.
103+
.. The date the comment was submitted.
104+
105+
コメントが送信された日付です。
67106

68107
.. attribute:: ip_address
69108

70-
The IP address of the user posting the comment.
109+
.. The IP address of the user posting the comment.
110+
111+
コメント投稿ユーザの IP アドレスです。
71112

72113
.. attribute:: is_public
73114

74-
``False`` if the comment is in moderation (see
75-
:doc:`/ref/contrib/comments/moderation`); If ``True``, the comment will
76-
be displayed on the site.
115+
.. ``False`` if the comment is in moderation (see
116+
:doc:`/ref/contrib/comments/moderation`); If ``True``, the comment will
117+
be displayed on the site.
118+
119+
コメントがモデレーション待ち (:doc:`/ref/contrib/comments/moderation`
120+
を参照してください) ならば ``False`` です。もし ``True`` ならば、
121+
そのコメントはサイト上で表示されます。
77122

78123
.. attribute:: is_removed
79124

80-
``True`` if the comment was removed. Used to keep track of removed
81-
comments instead of just deleting them.
125+
.. ``True`` if the comment was removed. Used to keep track of removed
126+
comments instead of just deleting them.
127+
128+
コメントが削除されたならば ``True`` になります。コメントを単純に
129+
削除するかわりに、削除済みコメントを追跡する目的で使われます。
82130

0 commit comments

Comments
 (0)