Commit 282eb8319ac0b1e1c04fdeccc423dbb72d90dd2d
1 parent
9e653bfa
Fixed #104 -- Added translator comments
Showing
4 changed files
with
16 additions
and
7 deletions
| @@ -101,6 +101,7 @@ class CommentDetailsForm(CommentSecurityForm): | @@ -101,6 +101,7 @@ class CommentDetailsForm(CommentSecurityForm): | ||
| 101 | name = forms.CharField(label=pgettext_lazy("Person name", "Name"), max_length=50) | 101 | name = forms.CharField(label=pgettext_lazy("Person name", "Name"), max_length=50) |
| 102 | email = forms.EmailField(label=_("Email address")) | 102 | email = forms.EmailField(label=_("Email address")) |
| 103 | url = forms.URLField(label=_("URL"), required=False) | 103 | url = forms.URLField(label=_("URL"), required=False) |
| 104 | + # Translators: 'Comment' is a noun here. | ||
| 104 | comment = forms.CharField(label=_('Comment'), widget=forms.Textarea, | 105 | comment = forms.CharField(label=_('Comment'), widget=forms.Textarea, |
| 105 | max_length=COMMENT_MAX_LENGTH) | 106 | max_length=COMMENT_MAX_LENGTH) |
| 106 | 107 |
| @@ -6,7 +6,7 @@ msgid "" | @@ -6,7 +6,7 @@ msgid "" | ||
| 6 | msgstr "" | 6 | msgstr "" |
| 7 | "Project-Id-Version: Django\n" | 7 | "Project-Id-Version: Django\n" |
| 8 | "Report-Msgid-Bugs-To: \n" | 8 | "Report-Msgid-Bugs-To: \n" |
| 9 | -"POT-Creation-Date: 2016-09-29 16:05+0200\n" | 9 | +"POT-Creation-Date: 2016-09-30 19:54+0200\n" |
| 10 | "PO-Revision-Date: 2012-02-14 13:24+0000\n" | 10 | "PO-Revision-Date: 2012-02-14 13:24+0000\n" |
| 11 | "Last-Translator: Jannis Leidel <jannis@leidel.info>\n" | 11 | "Last-Translator: Jannis Leidel <jannis@leidel.info>\n" |
| 12 | "Language-Team: English <en@li.org>\n" | 12 | "Language-Team: English <en@li.org>\n" |
| @@ -40,8 +40,9 @@ msgstr "user's email address" | @@ -40,8 +40,9 @@ msgstr "user's email address" | ||
| 40 | msgid "user's URL" | 40 | msgid "user's URL" |
| 41 | msgstr "user's URL" | 41 | msgstr "user's URL" |
| 42 | 42 | ||
| 43 | +#. Translators: 'comment' is a noun here. | ||
| 43 | #: django_comments/abstracts.py:66 django_comments/abstracts.py:86 | 44 | #: django_comments/abstracts.py:66 django_comments/abstracts.py:86 |
| 44 | -#: django_comments/models.py:36 | 45 | +#: django_comments/models.py:37 |
| 45 | msgid "comment" | 46 | msgid "comment" |
| 46 | msgstr "comment" | 47 | msgstr "comment" |
| 47 | 48 | ||
| @@ -180,7 +181,8 @@ msgstr "Email address" | @@ -180,7 +181,8 @@ msgstr "Email address" | ||
| 180 | msgid "URL" | 181 | msgid "URL" |
| 181 | msgstr "URL" | 182 | msgstr "URL" |
| 182 | 183 | ||
| 183 | -#: django_comments/forms.py:104 | 184 | +#. Translators: 'Comment' is a noun here. |
| 185 | +#: django_comments/forms.py:105 | ||
| 184 | msgid "Comment" | 186 | msgid "Comment" |
| 185 | msgstr "Comment" | 187 | msgstr "Comment" |
| 186 | 188 | ||
| @@ -202,7 +204,8 @@ msgid "" | @@ -202,7 +204,8 @@ msgid "" | ||
| 202 | msgstr "" | 204 | msgstr "" |
| 203 | "If you enter anything in this field your comment will be treated as spam" | 205 | "If you enter anything in this field your comment will be treated as spam" |
| 204 | 206 | ||
| 205 | -#: django_comments/models.py:38 | 207 | +#. Translators: 'flag' is a noun here. |
| 208 | +#: django_comments/models.py:40 | ||
| 206 | msgid "flag" | 209 | msgid "flag" |
| 207 | msgstr "flag" | 210 | msgstr "flag" |
| 208 | 211 | ||
| @@ -312,6 +315,7 @@ msgstr[1] "Please correct the errors below" | @@ -312,6 +315,7 @@ msgstr[1] "Please correct the errors below" | ||
| 312 | msgid "Post your comment" | 315 | msgid "Post your comment" |
| 313 | msgstr "Post your comment" | 316 | msgstr "Post your comment" |
| 314 | 317 | ||
| 315 | -#: django_comments/templates/comments/preview.html:18 | 318 | +#. Translators: This string follows the 'Post your comment' submit button. |
| 319 | +#: django_comments/templates/comments/preview.html:20 | ||
| 316 | msgid "or make changes" | 320 | msgid "or make changes" |
| 317 | msgstr "or make changes" | 321 | msgstr "or make changes" |
| @@ -33,8 +33,10 @@ class CommentFlag(models.Model): | @@ -33,8 +33,10 @@ class CommentFlag(models.Model): | ||
| 33 | on_delete=models.CASCADE, | 33 | on_delete=models.CASCADE, |
| 34 | ) | 34 | ) |
| 35 | comment = models.ForeignKey( | 35 | comment = models.ForeignKey( |
| 36 | + # Translators: 'comment' is a noun here. | ||
| 36 | Comment, verbose_name=_('comment'), related_name="flags", on_delete=models.CASCADE, | 37 | Comment, verbose_name=_('comment'), related_name="flags", on_delete=models.CASCADE, |
| 37 | ) | 38 | ) |
| 39 | + # Translators: 'flag' is a noun here. | ||
| 38 | flag = models.CharField(_('flag'), max_length=30, db_index=True) | 40 | flag = models.CharField(_('flag'), max_length=30, db_index=True) |
| 39 | flag_date = models.DateTimeField(_('date'), default=None) | 41 | flag_date = models.DateTimeField(_('date'), default=None) |
| 40 | 42 |
| @@ -14,8 +14,10 @@ | @@ -14,8 +14,10 @@ | ||
| 14 | <h1>{% trans "Preview your comment" %}</h1> | 14 | <h1>{% trans "Preview your comment" %}</h1> |
| 15 | <blockquote>{{ comment|linebreaks }}</blockquote> | 15 | <blockquote>{{ comment|linebreaks }}</blockquote> |
| 16 | <p> | 16 | <p> |
| 17 | - {% trans "and" %} <input type="submit" name="submit" class="submit-post" value="{% trans "Post your comment" %}" | ||
| 18 | - id="submit"/> {% trans "or make changes" %}: | 17 | + {% trans "and" %} <input id="submit" type="submit" name="submit" class="submit-post" |
| 18 | + value="{% trans "Post your comment" %}"/> | ||
| 19 | + {# Translators: This string follows the 'Post your comment' submit button. #} | ||
| 20 | + {% trans "or make changes" %}: | ||
| 19 | </p> | 21 | </p> |
| 20 | {% endif %} | 22 | {% endif %} |
| 21 | {% for field in form %} | 23 | {% for field in form %} |
Please
register
or
login
to post a comment