🌐 translated more strings
This commit is contained in:
@@ -183,7 +183,7 @@
|
|||||||
</button>
|
</button>
|
||||||
{#if imgur_links_valid}
|
{#if imgur_links_valid}
|
||||||
<p class="text-blue-600 text-xl text-center w-fit mx-auto">
|
<p class="text-blue-600 text-xl text-center w-fit mx-auto">
|
||||||
Not all links are imgur-links! <!-- TODO: Add translation -->
|
{$t('editor.not_all_links_imgur_links')}
|
||||||
</p>
|
</p>
|
||||||
{/if}
|
{/if}
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -85,7 +85,13 @@
|
|||||||
"settings": "Settings",
|
"settings": "Settings",
|
||||||
"repeat_password": "Repeat password",
|
"repeat_password": "Repeat password",
|
||||||
"overview": "Overview",
|
"overview": "Overview",
|
||||||
"report": "Report"
|
"report": "Report",
|
||||||
|
"explore": "Explore",
|
||||||
|
"search": "Search",
|
||||||
|
"screenshot": "Screenshot",
|
||||||
|
"screenshot_plural": "Screenshots",
|
||||||
|
"browser": "Browser",
|
||||||
|
"view": "View"
|
||||||
},
|
},
|
||||||
"editor": {
|
"editor": {
|
||||||
"time_in_seconds": "Time in seconds",
|
"time_in_seconds": "Time in seconds",
|
||||||
@@ -93,7 +99,8 @@
|
|||||||
"add_new_answer": "Add new answer",
|
"add_new_answer": "Add new answer",
|
||||||
"add_new_question": "Add new question",
|
"add_new_question": "Add new question",
|
||||||
"delete_question": "Delete question",
|
"delete_question": "Delete question",
|
||||||
"delete_answer": "Delete answer"
|
"delete_answer": "Delete answer",
|
||||||
|
"not_all_links_imgur_links": "Not all links are Imgur-links!"
|
||||||
},
|
},
|
||||||
"import_page": {
|
"import_page": {
|
||||||
"need_help": "Need help?",
|
"need_help": "Need help?",
|
||||||
@@ -107,5 +114,21 @@
|
|||||||
},
|
},
|
||||||
"password_reset_page": {
|
"password_reset_page": {
|
||||||
"reset_password": "Reset password"
|
"reset_password": "Reset password"
|
||||||
|
},
|
||||||
|
"settings_page": {
|
||||||
|
"old_password": "Old password",
|
||||||
|
"new_password": "New password",
|
||||||
|
"repeat_password": "Repeat password",
|
||||||
|
"change_password_submit": "Change password!",
|
||||||
|
"last_seen": "Last seen",
|
||||||
|
"check_location": "Check location",
|
||||||
|
"delete_this_session": "Delete this session",
|
||||||
|
"this_session?": "This session?"
|
||||||
|
},
|
||||||
|
"explore_page": {
|
||||||
|
"made_by": "Made by"
|
||||||
|
},
|
||||||
|
"search_page": {
|
||||||
|
"at_least_3_characters": "Enter at least 3 characters..."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,15 +94,14 @@
|
|||||||
<li class="py-2">
|
<li class="py-2">
|
||||||
<a
|
<a
|
||||||
class="text-lg font-medium lg:px-4 text-gray-600 hover:text-green-600 link-hover"
|
class="text-lg font-medium lg:px-4 text-gray-600 hover:text-green-600 link-hover"
|
||||||
href="/explore">Explore</a
|
href="/explore">{$t('words.explore')}</a
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
<li class="py-2">
|
<li class="py-2">
|
||||||
<a
|
<a
|
||||||
class="text-lg font-medium lg:px-4 text-gray-600 hover:text-green-600 link-hover"
|
class="text-lg font-medium lg:px-4 text-gray-600 hover:text-green-600 link-hover"
|
||||||
href="/search">Search</a
|
href="/search">{$t('words.search')}</a
|
||||||
>
|
>
|
||||||
<!--TODO: Add translation -->
|
|
||||||
</li>
|
</li>
|
||||||
<li class="py-2">
|
<li class="py-2">
|
||||||
<a
|
<a
|
||||||
@@ -133,15 +132,14 @@
|
|||||||
<li class="py-2">
|
<li class="py-2">
|
||||||
<a
|
<a
|
||||||
class="text-lg font-medium lg:px-4 text-gray-600 hover:text-green-600 link-hover"
|
class="text-lg font-medium lg:px-4 text-gray-600 hover:text-green-600 link-hover"
|
||||||
href="/explore">Explore</a
|
href="/explore">{$t('words.explore')}</a
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
<li class="py-2">
|
<li class="py-2">
|
||||||
<a
|
<a
|
||||||
class="text-lg font-medium lg:px-4 text-gray-600 hover:text-green-600 link-hover"
|
class="text-lg font-medium lg:px-4 text-gray-600 hover:text-green-600 link-hover"
|
||||||
href="/search">Search</a
|
href="/search">{$t('words.search')}</a
|
||||||
>
|
>
|
||||||
<!--TODO: Add translation -->
|
|
||||||
</li>
|
</li>
|
||||||
<li class="py-2">
|
<li class="py-2">
|
||||||
<a
|
<a
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { getLocalization } from '../../lib/i18n';
|
import { getLocalization } from '$lib/i18n';
|
||||||
import { navbarVisible } from '$lib/stores';
|
import { navbarVisible } from '$lib/stores';
|
||||||
|
|
||||||
navbarVisible.set(true);
|
navbarVisible.set(true);
|
||||||
@@ -19,7 +19,6 @@
|
|||||||
const { t } = getLocalization();
|
const { t } = getLocalization();
|
||||||
|
|
||||||
let isSubmitting = false;
|
let isSubmitting = false;
|
||||||
// TODO: Add translation
|
|
||||||
|
|
||||||
const submit = async () => {
|
const submit = async () => {
|
||||||
isSubmitting = true;
|
isSubmitting = true;
|
||||||
|
|||||||
@@ -155,24 +155,23 @@
|
|||||||
<p class="text-slate-100 text-lg mb-6 md:max-w-lg">
|
<p class="text-slate-100 text-lg mb-6 md:max-w-lg">
|
||||||
{$t('words.email')}: {user.email}
|
{$t('words.email')}: {user.email}
|
||||||
</p>
|
</p>
|
||||||
<!-- TODO: Add translation -->
|
|
||||||
<form class="flex flex-col md:flex-row" on:submit|preventDefault={changePassword}>
|
<form class="flex flex-col md:flex-row" on:submit|preventDefault={changePassword}>
|
||||||
<label
|
<label
|
||||||
>Old Password:<input
|
>{$t('settings_page.old_password')}:<input
|
||||||
type="password"
|
type="password"
|
||||||
class="m-2 text-black"
|
class="m-2 text-black"
|
||||||
bind:value={changePasswordData.oldPassword}
|
bind:value={changePasswordData.oldPassword}
|
||||||
/></label
|
/></label
|
||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
>New Password:<input
|
>{$t('settings_page.new_password')}:<input
|
||||||
type="password"
|
type="password"
|
||||||
class="m-2 text-black"
|
class="m-2 text-black"
|
||||||
bind:value={changePasswordData.newPassword}
|
bind:value={changePasswordData.newPassword}
|
||||||
/></label
|
/></label
|
||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
>New Password again:<input
|
>{$t('settings_page.repeat_password')}:<input
|
||||||
type="password"
|
type="password"
|
||||||
class="m-2 text-black"
|
class="m-2 text-black"
|
||||||
bind:value={changePasswordData.newPasswordConfirm}
|
bind:value={changePasswordData.newPasswordConfirm}
|
||||||
@@ -183,7 +182,7 @@
|
|||||||
disabled={!passwordChangeDataValid}
|
disabled={!passwordChangeDataValid}
|
||||||
type="submit"
|
type="submit"
|
||||||
>
|
>
|
||||||
Change Password!
|
{$t('settings_page.change_password_submit')}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@@ -206,31 +205,31 @@
|
|||||||
scope="col"
|
scope="col"
|
||||||
class="py-3 px-6 text-xs font-medium tracking-wider text-left text-gray-700 uppercase dark:text-gray-400"
|
class="py-3 px-6 text-xs font-medium tracking-wider text-left text-gray-700 uppercase dark:text-gray-400"
|
||||||
>
|
>
|
||||||
Last seen
|
{$t('settings_page.last_seen')}
|
||||||
</th>
|
</th>
|
||||||
<th
|
<th
|
||||||
scope="col"
|
scope="col"
|
||||||
class="py-3 px-6 text-xs font-medium tracking-wider text-left text-gray-700 uppercase dark:text-gray-400"
|
class="py-3 px-6 text-xs font-medium tracking-wider text-left text-gray-700 uppercase dark:text-gray-400"
|
||||||
>
|
>
|
||||||
Browser
|
{$t('words.browser')}
|
||||||
</th>
|
</th>
|
||||||
<th
|
<th
|
||||||
scope="col"
|
scope="col"
|
||||||
class="py-3 px-6 text-xs font-medium tracking-wider text-left text-gray-700 uppercase dark:text-gray-400"
|
class="py-3 px-6 text-xs font-medium tracking-wider text-left text-gray-700 uppercase dark:text-gray-400"
|
||||||
>
|
>
|
||||||
Check location
|
{$t('settings_page.check_location')}
|
||||||
</th>
|
</th>
|
||||||
<th
|
<th
|
||||||
scope="col"
|
scope="col"
|
||||||
class="py-3 px-6 text-xs font-medium tracking-wider text-left text-gray-700 uppercase dark:text-gray-400"
|
class="py-3 px-6 text-xs font-medium tracking-wider text-left text-gray-700 uppercase dark:text-gray-400"
|
||||||
>
|
>
|
||||||
Delete this session
|
{$t('settings_page.delete_this_session')}
|
||||||
</th>
|
</th>
|
||||||
<th
|
<th
|
||||||
scope="col"
|
scope="col"
|
||||||
class="py-3 px-6 text-xs font-medium tracking-wider text-left text-gray-700 uppercase dark:text-gray-400"
|
class="py-3 px-6 text-xs font-medium tracking-wider text-left text-gray-700 uppercase dark:text-gray-400"
|
||||||
>
|
>
|
||||||
This session?
|
{$t('settings_page.this_session?')}
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -258,7 +257,7 @@
|
|||||||
<button
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
checkLocation(session.ip_address);
|
checkLocation(session.ip_address);
|
||||||
}}>View</button
|
}}>{$t('words.view')}</button
|
||||||
>
|
>
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
@@ -267,7 +266,7 @@
|
|||||||
<button
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
deleteSession(session.id);
|
deleteSession(session.id);
|
||||||
}}>Delete</button
|
}}>{$t('words.delete')}</button
|
||||||
>
|
>
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
@@ -294,7 +293,7 @@
|
|||||||
on:click={() => {
|
on:click={() => {
|
||||||
showMap = false;
|
showMap = false;
|
||||||
}}
|
}}
|
||||||
class="bg-black text-white rounded-t-lg px-1">Close</button
|
class="bg-black text-white rounded-t-lg px-1">{$t('words.close')}</button
|
||||||
>
|
>
|
||||||
<div class="w-full h-full">
|
<div class="w-full h-full">
|
||||||
<svelte:component
|
<svelte:component
|
||||||
|
|||||||
@@ -1,33 +1,32 @@
|
|||||||
<svelte:head>
|
<svelte:head>
|
||||||
<title>ClassQuiz/docs - Attribution</title>
|
<title>ClassQuiz/docs - Attribution</title>
|
||||||
<meta
|
<meta name="description" content="People who helped make with ClassQuiz." />
|
||||||
name='description'
|
|
||||||
content='People who helped make with ClassQuiz.'
|
|
||||||
/>
|
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
<article
|
<article
|
||||||
class='prose prose-sm sm:prose lg:prose-lg xl:prose-xl mx-auto mt-10 prose-slate text-yellow-50 px-4'
|
class="prose prose-sm sm:prose lg:prose-lg xl:prose-xl mx-auto mt-10 prose-slate text-yellow-50 px-4"
|
||||||
>
|
>
|
||||||
<h1>People</h1>
|
<h1>People</h1>
|
||||||
<h2>Contributors</h2>
|
<h2>Contributors</h2>
|
||||||
<p>People who contributed to the code on GitHub directly</p>
|
<p>People who contributed to the code on GitHub directly</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href='https://github.com/Dynnammo'>Dynnammo</a>
|
<a href="https://github.com/Dynnammo">Dynnammo</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h2>Helpers</h2>
|
<h2>Helpers</h2>
|
||||||
<p>People who helped through issues (at least 2), tips, etc</p>
|
<p>People who helped through issues (at least 2), tips, etc</p>
|
||||||
<p></p>
|
<p />
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href='https://github.com/adeekshith'>Deekshith</a>
|
<a href="https://github.com/adeekshith">Deekshith</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p><i>...Maybe you?</i></p>
|
<p><i>...Maybe you?</i></p>
|
||||||
|
|
||||||
<h1>Rules</h1>
|
<h1>Rules</h1>
|
||||||
<p>If you are listed once here, you're a part of ClassQuiz, forever! <br>
|
<p>
|
||||||
You can also be listed in more categories.</p>
|
If you are listed once here, you're a part of ClassQuiz, forever! <br />
|
||||||
|
You can also be listed in more categories.
|
||||||
|
</p>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
@@ -10,6 +10,8 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { getLocalization } from '$lib/i18n';
|
||||||
|
const { t } = getLocalization();
|
||||||
const getData = async () => {
|
const getData = async () => {
|
||||||
const response = await fetch('/api/v1/search/', {
|
const response = await fetch('/api/v1/search/', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
@@ -55,7 +57,7 @@
|
|||||||
<p class="mt-2 text-gray-600">{quiz.description}</p>
|
<p class="mt-2 text-gray-600">{quiz.description}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex mt-4">
|
<div class="flex mt-4">
|
||||||
<span>Made by {quiz.user}</span>
|
<span>{$t('explore_page.made_by')} {quiz.user}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="py-8">
|
<section class="py-8">
|
||||||
<h1 class="sm:text-6xl text-4xl text-center">Screenshots</h1>
|
<h1 class="sm:text-6xl text-4xl text-center">{$t('words.screenshot', { count: 2 })}</h1>
|
||||||
<div>
|
<div>
|
||||||
<LandingPromo />
|
<LandingPromo />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,6 +10,8 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { getLocalization } from '$lib/i18n';
|
||||||
|
const { t } = getLocalization();
|
||||||
let search_term = '';
|
let search_term = '';
|
||||||
let resp_data = null;
|
let resp_data = null;
|
||||||
|
|
||||||
@@ -51,7 +53,7 @@
|
|||||||
<input
|
<input
|
||||||
type="search"
|
type="search"
|
||||||
class="form-control relative flex-auto min-w-0 block w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 rounded transition ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none"
|
class="form-control relative flex-auto min-w-0 block w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 rounded transition ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none"
|
||||||
placeholder="Enter at least 3 characters..."
|
placeholder={$t('search_page.at_least_3_characters')}
|
||||||
aria-label="Search"
|
aria-label="Search"
|
||||||
aria-describedby="button-addon2"
|
aria-describedby="button-addon2"
|
||||||
bind:value={search_term}
|
bind:value={search_term}
|
||||||
@@ -103,7 +105,9 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex mt-4">
|
<div class="flex mt-4">
|
||||||
<span>Made by {@html quiz._formatted.user}</span>
|
<span
|
||||||
|
>{$t('explore_page.made_by')} {@html quiz._formatted.user}</span
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user