translate story and comments flages. fixes #7
This commit is contained in:
parent
14cf05a4c4
commit
707fdb87de
|
@ -4,19 +4,19 @@ class Vote < ActiveRecord::Base
|
|||
belongs_to :comment
|
||||
|
||||
COMMENT_REASONS = {
|
||||
"O" => "Off-topic",
|
||||
"I" => "Incorrect",
|
||||
"M" => "Me-too",
|
||||
"T" => "Troll",
|
||||
"S" => "Spam",
|
||||
"" => "Cancel",
|
||||
"O" => I18n.t('models.vote.offtopicvote'),
|
||||
"I" => I18n.t('models.vote.incorrectvote'),
|
||||
"M" => I18n.t('models.vote.metoovote'),
|
||||
"T" => I18n.t('models.vote.trollvote'),
|
||||
"S" => I18n.t('models.vote.spamvote'),
|
||||
"" => I18n.t('models.vote.cancel')
|
||||
}
|
||||
|
||||
STORY_REASONS = {
|
||||
"O" => "Off-topic",
|
||||
"A" => "Already Posted",
|
||||
"S" => "Spam",
|
||||
"" => "Cancel",
|
||||
"O" => I18n.t('models.vote.offtopicvote'),
|
||||
"A" => I18n.t('models.vote.alreadypostedvote'),
|
||||
"S" => I18n.t('models.vote.spamvote'),
|
||||
"" => I18n.t('models.vote.cancel')
|
||||
}
|
||||
OLD_STORY_REASONS = {
|
||||
"Q" => "Low Quality",
|
||||
|
|
|
@ -15,6 +15,14 @@ en:
|
|||
commentmoderated: "Your comment has been moderated"
|
||||
commentmoderatedwhy: "Your comment on [%{title}](%{url}) has been moderated:\n"
|
||||
automatedmessage: "*This is an automated message.*"
|
||||
vote:
|
||||
offtopicvote: "Off-topic"
|
||||
incorrectvote: "Incorrect"
|
||||
metoovote: "Me-too"
|
||||
trollvote: "Troll"
|
||||
alreadypostedvote: "Already Posted"
|
||||
cancel: "Cancel"
|
||||
spamvote: "Spam"
|
||||
layouts:
|
||||
application:
|
||||
homelink: "Home"
|
||||
|
|
|
@ -27,6 +27,14 @@ fr:
|
|||
commentmoderated: "Votre commentaire a été modéré"
|
||||
commentmoderatedwhy: "Votre commentaire sur [%{title}](%{url}) a été modéré :\n"
|
||||
automatedmessage: "*Ceci est un message automatique.*"
|
||||
vote:
|
||||
offtopicvote: "Hors-sujet"
|
||||
incorrectvote: "Incorrecte"
|
||||
metoovote: "Moi aussi"
|
||||
trollvote: "Troll"
|
||||
alreadypostedvote: "Déjà postée"
|
||||
cancel: "Annuler"
|
||||
spamvote: "Spam"
|
||||
layouts:
|
||||
application:
|
||||
homelink: "Accueil"
|
||||
|
|
Loading…
Reference in a new issue