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 | 101 | name = forms.CharField(label=pgettext_lazy("Person name", "Name"), max_length=50) |
| 102 | 102 | email = forms.EmailField(label=_("Email address")) |
| 103 | 103 | url = forms.URLField(label=_("URL"), required=False) |
| 104 | + # Translators: 'Comment' is a noun here. | |
| 104 | 105 | comment = forms.CharField(label=_('Comment'), widget=forms.Textarea, |
| 105 | 106 | max_length=COMMENT_MAX_LENGTH) |
| 106 | 107 | ... | ... |
| ... | ... | @@ -6,7 +6,7 @@ msgid "" |
| 6 | 6 | msgstr "" |
| 7 | 7 | "Project-Id-Version: Django\n" |
| 8 | 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 | 10 | "PO-Revision-Date: 2012-02-14 13:24+0000\n" |
| 11 | 11 | "Last-Translator: Jannis Leidel <jannis@leidel.info>\n" |
| 12 | 12 | "Language-Team: English <en@li.org>\n" |
| ... | ... | @@ -40,8 +40,9 @@ msgstr "user's email address" |
| 40 | 40 | msgid "user's URL" |
| 41 | 41 | msgstr "user's URL" |
| 42 | 42 | |
| 43 | +#. Translators: 'comment' is a noun here. | |
| 43 | 44 | #: django_comments/abstracts.py:66 django_comments/abstracts.py:86 |
| 44 | -#: django_comments/models.py:36 | |
| 45 | +#: django_comments/models.py:37 | |
| 45 | 46 | msgid "comment" |
| 46 | 47 | msgstr "comment" |
| 47 | 48 | |
| ... | ... | @@ -180,7 +181,8 @@ msgstr "Email address" |
| 180 | 181 | msgid "URL" |
| 181 | 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 | 186 | msgid "Comment" |
| 185 | 187 | msgstr "Comment" |
| 186 | 188 | |
| ... | ... | @@ -202,7 +204,8 @@ msgid "" |
| 202 | 204 | msgstr "" |
| 203 | 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 | 209 | msgid "flag" |
| 207 | 210 | msgstr "flag" |
| 208 | 211 | |
| ... | ... | @@ -312,6 +315,7 @@ msgstr[1] "Please correct the errors below" |
| 312 | 315 | msgid "Post your comment" |
| 313 | 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 | 320 | msgid "or make changes" |
| 317 | 321 | msgstr "or make changes" | ... | ... |
| ... | ... | @@ -33,8 +33,10 @@ class CommentFlag(models.Model): |
| 33 | 33 | on_delete=models.CASCADE, |
| 34 | 34 | ) |
| 35 | 35 | comment = models.ForeignKey( |
| 36 | + # Translators: 'comment' is a noun here. | |
| 36 | 37 | Comment, verbose_name=_('comment'), related_name="flags", on_delete=models.CASCADE, |
| 37 | 38 | ) |
| 39 | + # Translators: 'flag' is a noun here. | |
| 38 | 40 | flag = models.CharField(_('flag'), max_length=30, db_index=True) |
| 39 | 41 | flag_date = models.DateTimeField(_('date'), default=None) |
| 40 | 42 | ... | ... |
| ... | ... | @@ -14,8 +14,10 @@ |
| 14 | 14 | <h1>{% trans "Preview your comment" %}</h1> |
| 15 | 15 | <blockquote>{{ comment|linebreaks }}</blockquote> |
| 16 | 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 | 21 | </p> |
| 20 | 22 | {% endif %} |
| 21 | 23 | {% for field in form %} | ... | ... |
Please
register
or
login
to post a comment