Add en-US translations
This commit is contained in:
parent
31b92da6ce
commit
bd01a35cc6
45 changed files with 539 additions and 158 deletions
|
@ -2,6 +2,7 @@
|
|||
import { blackListManager } from "../../WebRtc/BlackListManager";
|
||||
import { showReportScreenStore, userReportEmpty } from "../../Stores/ShowReportScreenStore";
|
||||
import { onMount } from "svelte";
|
||||
import { translator } from "../../Translator/Translator";
|
||||
|
||||
export let userUUID: string | undefined;
|
||||
export let userName: string;
|
||||
|
@ -29,10 +30,10 @@
|
|||
</script>
|
||||
|
||||
<div class="block-container">
|
||||
<h3>Block</h3>
|
||||
<p>Block any communication from and to {userName}. This can be reverted.</p>
|
||||
<h3>{translator._("report.block.title")}</h3>
|
||||
<p>{translator._("report.block.content", { userName })}</p>
|
||||
<button type="button" class="nes-btn is-error" on:click|preventDefault={blockUser}>
|
||||
{userIsBlocked ? "Unblock this user" : "Block this user"}
|
||||
{userIsBlocked ? translator._("report.block.unblock") : translator._("report.block.block")}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
import { playersStore } from "../../Stores/PlayersStore";
|
||||
import { connectionManager } from "../../Connexion/ConnectionManager";
|
||||
import { get } from "svelte/store";
|
||||
import { translator } from "../../Translator/Translator";
|
||||
|
||||
let blockActive = true;
|
||||
let reportActive = !blockActive;
|
||||
|
@ -59,7 +60,7 @@
|
|||
|
||||
<div class="report-menu-main nes-container is-rounded">
|
||||
<section class="report-menu-title">
|
||||
<h2>Moderate {userName}</h2>
|
||||
<h2>{translator._("moderate.title", { userName })}</h2>
|
||||
<section class="justify-center">
|
||||
<button type="button" class="nes-btn" on:click|preventDefault={close}>X</button>
|
||||
</section>
|
||||
|
@ -69,14 +70,14 @@
|
|||
<button
|
||||
type="button"
|
||||
class="nes-btn {blockActive ? 'is-disabled' : ''}"
|
||||
on:click|preventDefault={activateBlock}>Block</button
|
||||
on:click|preventDefault={activateBlock}>{translator._("moderate.block")}</button
|
||||
>
|
||||
</section>
|
||||
<section class="justify-center">
|
||||
<button
|
||||
type="button"
|
||||
class="nes-btn {reportActive ? 'is-disabled' : ''}"
|
||||
on:click|preventDefault={activateReport}>Report</button
|
||||
on:click|preventDefault={activateReport}>{translator._("moderate.report")}</button
|
||||
>
|
||||
</section>
|
||||
</section>
|
||||
|
@ -86,7 +87,7 @@
|
|||
{:else if reportActive}
|
||||
<ReportSubMenu {userUUID} />
|
||||
{:else}
|
||||
<p>ERROR : There is no action selected.</p>
|
||||
<p>{translator._("moderate.no-select")}</p>
|
||||
{/if}
|
||||
</section>
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<script lang="ts">
|
||||
import { showReportScreenStore, userReportEmpty } from "../../Stores/ShowReportScreenStore";
|
||||
import { gameManager } from "../../Phaser/Game/GameManager";
|
||||
import { translator } from "../../Translator/Translator";
|
||||
|
||||
export let userUUID: string | undefined;
|
||||
let reportMessage: string;
|
||||
|
@ -22,18 +23,20 @@
|
|||
</script>
|
||||
|
||||
<div class="report-container-main">
|
||||
<h3>Report</h3>
|
||||
<p>Send a report message to the administrators of this room. They may later ban this user.</p>
|
||||
<h3>{translator._("report.title")}</h3>
|
||||
<p>{translator._("report.message")}</p>
|
||||
<form>
|
||||
<section>
|
||||
<label>
|
||||
<span>Your message: </span>
|
||||
<span>{translator._("report.message.title")}</span>
|
||||
<textarea type="text" class="nes-textarea" bind:value={reportMessage} />
|
||||
</label>
|
||||
<p hidden={hiddenError}>Report message cannot to be empty.</p>
|
||||
<p hidden={hiddenError}>{translator._("report.message.empty")}</p>
|
||||
</section>
|
||||
<section>
|
||||
<button type="submit" class="nes-btn is-error" on:click={submitReport}>Report this user</button>
|
||||
<button type="submit" class="nes-btn is-error" on:click={submitReport}
|
||||
>{translator._("report.submit")}</button
|
||||
>
|
||||
</section>
|
||||
</form>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue