add translations

This commit is contained in:
taehoon 2019-03-20 12:51:43 -04:00
parent 471085f0f3
commit d115d98a1b
2 changed files with 16 additions and 7 deletions

View file

@ -1,27 +1,27 @@
<template> <template>
<div class="modal-view" @click="closeModal" v-if="isOpen"> <div class="modal-view" @click="closeModal" v-if="isOpen">
<div class="user-reporting-panel panel" @click.stop=""> <div class="user-reporting-panel panel" @click.stop="">
<div class="panel-heading">Reporting {{user.screen_name}}</div> <div class="panel-heading">{{$t('user_reporting.title', [user.screen_name])}}</div>
<div class="panel-body"> <div class="panel-body">
<div class="user-reporting-panel-left"> <div class="user-reporting-panel-left">
<div> <div>
<p>The report will be sent to your instance moderators. You can provide an explanation of why you are reporting this account below:</p> <p>{{$t('user_reporting.add_comment_description')}}</p>
<textarea <textarea
v-model="comment" v-model="comment"
class="form-control" class="form-control"
placeholder="Additional comments" :placeholder="$t('user_reporting.additional_comments')"
rows="1" rows="1"
@input="resize" @input="resize"
/> />
</div> </div>
<div v-if="!user.is_local"> <div v-if="!user.is_local">
<p>The account is from another server. Send an anonymized copy of the report there as well?</p> <p>{{$t('user_reporting.forward_description')}}</p>
<Checkbox v-model="forward">Forward to {{remoteInstance}}</Checkbox> <Checkbox v-model="forward">{{$t('user_reporting.forward_to', [remoteInstance])}}</Checkbox>
</div> </div>
<div> <div>
<button class="btn btn-default" @click="reportUser" :disabled="processing">Submit</button> <button class="btn btn-default" @click="reportUser" :disabled="processing">{{$t('user_reporting.submit')}}</button>
<div class="alert error" v-if="error"> <div class="alert error" v-if="error">
An error occured processing your request {{$t('user_reporting.generic_error')}}
</div> </div>
</div> </div>
</div> </div>

View file

@ -453,6 +453,15 @@
"profile_does_not_exist": "Sorry, this profile does not exist.", "profile_does_not_exist": "Sorry, this profile does not exist.",
"profile_loading_error": "Sorry, there was an error loading this profile." "profile_loading_error": "Sorry, there was an error loading this profile."
}, },
"user_reporting": {
"title": "Reporting {0}",
"add_comment_description": "The report will be sent to your instance moderators. You can provide an explanation of why you are reporting this account below:",
"additional_comments": "Additional comments",
"forward_description": "The account is from another server. Send an anonymized copy of the report there as well?",
"forward_to": "Forward to {0}",
"submit": "Submit",
"generic_error": "An error occured processing your request."
},
"who_to_follow": { "who_to_follow": {
"more": "More", "more": "More",
"who_to_follow": "Who to follow" "who_to_follow": "Who to follow"