diff --git a/client/coral-admin/src/containers/Community/components/User.js b/client/coral-admin/src/containers/Community/components/User.js index feab1f690..05224170b 100644 --- a/client/coral-admin/src/containers/Community/components/User.js +++ b/client/coral-admin/src/containers/Community/components/User.js @@ -5,6 +5,14 @@ import ActionButton from './ActionButton'; import t from 'coral-framework/services/i18n'; +const shortReasons = { + 'This comment is offensive': t('community.offensive'), + 'This looks like an ad/marketing': t('community.spam_ads'), + 'This user is impersonating': t('community.impersonating'), + 'I don\'t like this username': t('community.dont_like_username'), + 'Other': t('community.other') +}; + // Render a single user for the list const User = (props) => { const {user, modActionButtons} = props; @@ -36,7 +44,7 @@ const User = (props) => { { user.action_summaries.map( (action, i) => { return - {t(`community.${action.reason}`)} ({action.count}) + {shortReasons[action.reason]} ({action.count}) ; } )} @@ -46,7 +54,7 @@ const User = (props) => { (action_sum, i) => { return
- {t(`community.${action_sum.reason}`)} ({action_sum.count}) + {shortReasons[action_sum.reason]} ({action_sum.count}) {user.actions.map( diff --git a/client/coral-admin/src/containers/ModerationQueue/components/FlagBox.js b/client/coral-admin/src/containers/ModerationQueue/components/FlagBox.js index b2651d1bc..b899dc92f 100644 --- a/client/coral-admin/src/containers/ModerationQueue/components/FlagBox.js +++ b/client/coral-admin/src/containers/ModerationQueue/components/FlagBox.js @@ -40,10 +40,10 @@ class FlagBox extends Component {
-

Flags ({actionSummaries.length}):

+

{t('community.Flags')} ({actionSummaries.length}):

    {actionSummaries.map((action, i) => -
  • {this.reasonMap(action.reason)} ({action.count})
  • +
  • {this.reasonMap(action.reason)} ({action.count})
  • )}
{showDetail ? t('modqueue.less-detail') : t('modqueue.more_detail')} diff --git a/locales/en.yml b/locales/en.yml index d8a01ea38..bed860acf 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -35,23 +35,28 @@ en: account_creation_date: "Account Creation Date" active: Active admin: Administrator + ads_marketing: "This looks like an ad/marketing" are_you_sure: "Are you sure you would like to ban {0}?" ban_user: "Ban User?" banned: Banned banned_user: "Banned User" cancel: Cancel + dont_like_username: "I don't like this username" flaggedaccounts: "Flagged Usernames" flags: Flags + impersonating: "This user is impersonating" loading: "Loading results" moderator: Moderator newsroom_role: "Newsroom Role" no_flagged_accounts: "The Account Flags queue is currently empty." no_results: "No users found with that user name or email address. They're hiding!" note: "Note: Banning this user will not let them edit comment or remove anything." + offensive: "This comment is offensive" other: Other people: People role: "Select role..." select_status: "Select status..." + spam_ads: "Spam/Ads" staff: "Staff" status: Status username_and_email: "Username and Email" diff --git a/locales/es.yml b/locales/es.yml index 32899a3c8..ae122bdcd 100644 --- a/locales/es.yml +++ b/locales/es.yml @@ -47,8 +47,10 @@ es: banned: Suspendido banned_user: "Usuario Suspendido" cancel: Cancelar + dont_like_username: "No me gusta este nombre de usuario" flaggedaccounts: "Nombres de Usuario Reportados" flags: Reportes + impersonating: "El usuario esta suplantando identidad" loading: "Cargando resultados" moderator: Moderator newsroom_role: "Rol en la redacción" @@ -56,10 +58,12 @@ es: no_results: "No se encontraron usuarios con ese nombre o correo." note: "Nota: Suspender a este usuario no le va a permitir (al usuario) borrar\ \ ni editar ni comentar." + offensive: "Este comentario es ofensivo" other: Otro people: Gente role: "Seleccionar rol..." select_status: "Seleccionar estado..." + spam_ads: "Spam/Publicidad" staff: "Personal" status: Estado username_and_email: "Usuario y Correo"