translate story and comments flages. fixes #7

This commit is contained in:
Carl Chenet 2016-11-24 17:22:56 +01:00
parent 14cf05a4c4
commit 707fdb87de
3 changed files with 26 additions and 10 deletions

View file

@ -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",

View file

@ -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"

View file

@ -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"