Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localize review API error messages #4663

Merged
merged 1 commit into from Feb 13, 2017

Conversation

diox
Copy link
Member

@diox diox commented Feb 10, 2017

Copy link
Contributor

@kumar303 kumar303 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+wc. This looks great, thanks. For some of these messages, it's unlikely that a user will ever see them. However, I still think it's safer to assume they will all be seen. Most of these messages will be seen in our UI for sure.

@@ -96,7 +98,7 @@ def validate(self, data):
# Only one level of replying is allowed, so if it's already a
# reply, we shouldn't allow that.
raise serializers.ValidationError(
'Can not reply to a review that is already a reply.')
_(u"You can't reply to a review that is already a reply."))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about this?

"You can't reply to review comments."

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mmm I'm not a fan. "review comments" is vague... I don't think addons-frontend support this yet, but this message should not be shown to users (only developers can reply, and a reply button should never be shown on a reply)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's no biggie. Your original message works. I agree that it probably won't ever be shown to the user (if so, it will be a UI bug).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants