mirror of
https://github.com/wassname/talk.git
synced 2026-07-12 14:41:09 +08:00
Still more strings.
This commit is contained in:
@@ -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 <span className={styles.flaggedBy} key={i}>
|
||||
{t(`community.${action.reason}`)} ({action.count})
|
||||
{shortReasons[action.reason]} ({action.count})
|
||||
</span>;
|
||||
}
|
||||
)}
|
||||
@@ -46,7 +54,7 @@ const User = (props) => {
|
||||
(action_sum, i) => {
|
||||
return <div key={i}>
|
||||
<span className={styles.flaggedByLabel}>
|
||||
{t(`community.${action_sum.reason}`)} ({action_sum.count})
|
||||
{shortReasons[action_sum.reason]} ({action_sum.count})
|
||||
</span>
|
||||
{user.actions.map(
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ class FlagBox extends Component {
|
||||
<div className={styles.flagBox}>
|
||||
<div className={styles.container}>
|
||||
<div className={styles.header}>
|
||||
<Icon name='flag'/><h3>Flags ({actionSummaries.length}):</h3>
|
||||
<Icon name='flag'/><h3>{t('community.Flags')} ({actionSummaries.length}):</h3>
|
||||
<ul>
|
||||
{actionSummaries.map((action, i) =>
|
||||
<li key={i} className={styles.lessDetail}>{this.reasonMap(action.reason)} (<strong>{action.count}</strong>)</li>
|
||||
<li key={i} className={styles.lessDetail}> {this.reasonMap(action.reason)} (<strong>{action.count}</strong>)</li>
|
||||
)}
|
||||
</ul>
|
||||
<a onClick={this.toggleDetail} className={styles.moreDetail}>{showDetail ? t('modqueue.less-detail') : t('modqueue.more_detail')}</a>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user