🌐 Added more strings to be translated

This commit is contained in:
Mawoka
2022-12-01 19:09:55 +01:00
parent 859377dcc4
commit 444bfb1767
7 changed files with 40 additions and 19 deletions
+3 -1
View File
@@ -20,6 +20,8 @@
// import '@uppy/file-input/dist/style.css' // import '@uppy/file-input/dist/style.css'
import '@uppy/image-editor/dist/style.css'; import '@uppy/image-editor/dist/style.css';
import type { EditorData } from '../quiz_types'; import type { EditorData } from '../quiz_types';
import { getLocalization } from '$lib/i18n';
const { t } = getLocalization();
export let modalOpen = false; export let modalOpen = false;
export let edit_id: string; export let edit_id: string;
@@ -102,7 +104,7 @@
on:click={() => { on:click={() => {
modalOpen = true; modalOpen = true;
}} }}
><span class="italic">Add Image</span> ><span class="italic">{$t('uploader.add_image')}</span>
<svg <svg
class="w-6 h-6 inline-block" class="w-6 h-6 inline-block"
fill="none" fill="none"
+19 -4
View File
@@ -44,7 +44,11 @@
"quiz_results_downloadable_content": "Quiz-results can be easily exported into an Excel-spreadsheet. (Didn't know others couldn't do that)", "quiz_results_downloadable_content": "Quiz-results can be easily exported into an Excel-spreadsheet. (Didn't know others couldn't do that)",
"multilingual_content": "ClassQuiz is already fully translated into English, German, Turkish, French and Italian. It is also partly translated into Indonesian and Catalan.", "multilingual_content": "ClassQuiz is already fully translated into English, German, Turkish, French and Italian. It is also partly translated into Indonesian and Catalan.",
"dark_mode_content": "One of the most important features a website can have!", "dark_mode_content": "One of the most important features a website can have!",
"german_server_content": "ClassQuiz's servers are located in Germany and hosted by netcup." "german_server_content": "ClassQuiz's servers are located in Germany and hosted by netcup.",
"download_quizzes": "Download Quizzes",
"download_quizzes_content": "Quizzes can be downloaded as one file and imported at any time, so you can also move your quizzes to an other instance of ClassQuiz easily!",
"community_driven": "Community-driven",
"community_driven_content": "ClassQuiz depends on its community for funding, testing ideas, feature requests, translations and more! You can also be a part of the ClassQuiz-community!"
}, },
"overview_page": { "overview_page": {
"created_at": "Created at", "created_at": "Created at",
@@ -145,7 +149,8 @@
"find": "Find", "find": "Find",
"practice": "Practice", "practice": "Practice",
"error": "Error", "error": "Error",
"voting": "Voting" "voting": "Voting",
"download": "Download"
}, },
"editor": { "editor": {
"time_in_seconds": "Time in seconds", "time_in_seconds": "Time in seconds",
@@ -158,7 +163,13 @@
}, },
"import_page": { "import_page": {
"need_help": "Need help?", "need_help": "Need help?",
"visit_docs": "Visit the documentation" "visit_docs": "Visit the documentation",
"a_kahoot_quiz": "A Kahoot!-Quiz",
"url_should_look_like_this": "The URl should look like this: https://create.kahoot.it/details/...",
"side_import_kahoot": "On this side you can import quizzes, which live on Kahoot!.",
"classquiz_quiz": "A ClassQuiz-Quiz",
"upload_file_ending": "Upload the file ending in .cqa",
"this_side_classquiz": "On this side you can import quizzes, which were exported from ClassQuiz."
}, },
"admin_page": { "admin_page": {
"already_registered_as_admin": "There is already an admin registered for this game.", "already_registered_as_admin": "There is already an admin registered for this game.",
@@ -191,7 +202,8 @@
"imported_by": "Imported by" "imported_by": "Imported by"
}, },
"search_page": { "search_page": {
"at_least_3_characters": "Enter at least 3 characters..." "at_least_3_characters": "Enter at least 3 characters...",
"nothing_here": "There is nothing here..."
}, },
"play_page": { "play_page": {
"end_sentence": "That's it! This was the quiz.", "end_sentence": "That's it! This was the quiz.",
@@ -215,5 +227,8 @@
"error_page": { "error_page": {
"404_text": "The page you were looking for is gone or never even existed. Who knows?", "404_text": "The page you were looking for is gone or never even existed. Who knows?",
"unknown_error_text": "That shouldn't happen. It's probably my fault, not yours, but maybe you have a magical power to break stuff..." "unknown_error_text": "That shouldn't happen. It's probably my fault, not yours, but maybe you have a magical power to break stuff..."
},
"uploader": {
"add_image": "Add image"
} }
} }
+8
View File
@@ -108,6 +108,14 @@
{ {
headline: $t('index_page.dark_mode'), headline: $t('index_page.dark_mode'),
content: $t('index_page.dark_mode_content') content: $t('index_page.dark_mode_content')
},
{
headline: $t('index_page.download_quizzes'),
content: $t('index_page.download_quizzes_content')
},
{
headline: $t('index_page.community_driven'),
content: $t('index_page.community_driven_content')
} }
]; ];
let selected_classquiz_reason = 0; let selected_classquiz_reason = 0;
@@ -80,7 +80,7 @@
</div> </div>
</div> </div>
<div class="flex items-center justify-between mt-4"> <div class="flex items-center justify-between mt-4 gap-2">
<a <a
href="/account/login" href="/account/login"
class="text-sm text-gray-600 dark:text-gray-200 hover:text-gray-500" class="text-sm text-gray-600 dark:text-gray-200 hover:text-gray-500"
+6 -10
View File
@@ -116,7 +116,7 @@
<div class="grid grid-cols-2"> <div class="grid grid-cols-2">
<form on:submit|preventDefault={submit}> <form on:submit|preventDefault={submit}>
<div class="w-full mt-4 h-full flex flex-col"> <div class="w-full mt-4 h-full flex flex-col">
<h2 class="text-center text-2xl">A Kahoot!-Quiz</h2> <h2 class="text-center text-2xl">{$t('import_page.a_kahoot_quiz')}</h2>
<div class="dark:bg-gray-800 bg-white p-4 rounded-lg"> <div class="dark:bg-gray-800 bg-white p-4 rounded-lg">
<div class="relative bg-inherit w-full"> <div class="relative bg-inherit w-full">
<input <input
@@ -136,13 +136,11 @@
{$t('words.url')} {$t('words.url')}
</label> </label>
<p class="text-sm"> <p class="text-sm">
The URl should look like this: {$t('import_page.url_should_look_like_this')}
https://create.kahoot.it/details/...
</p> </p>
</div> </div>
<p class="mt-2"> <p class="mt-2">
On this side you can import quizzes, which live on <b>Kahoot!</b {$t('import_page.side_import_kahoot')}
>.
</p> </p>
</div> </div>
@@ -177,7 +175,7 @@
</form> </form>
<form on:submit|preventDefault={file_submit}> <form on:submit|preventDefault={file_submit}>
<div class="w-full mt-4 border-l-2 border-gray-600 h-full flex flex-col"> <div class="w-full mt-4 border-l-2 border-gray-600 h-full flex flex-col">
<h2 class="text-center text-2xl">A ClassQuiz-Quiz</h2> <h2 class="text-center text-2xl">{$t('import_page.classquiz_quiz')}</h2>
<div class="dark:bg-gray-800 bg-white p-4 rounded-lg"> <div class="dark:bg-gray-800 bg-white p-4 rounded-lg">
<div class="relative bg-inherit w-full"> <div class="relative bg-inherit w-full">
<input <input
@@ -190,12 +188,10 @@
class:ring-red-700={!file_input} class:ring-red-700={!file_input}
class:ring-green-600={file_input} class:ring-green-600={file_input}
/> />
<p class="text-sm">Upload the file ending in .cqa</p> <p class="text-sm">{$t('import_page.upload_file_ending')}</p>
</div> </div>
<p class="mt-2"> <p class="mt-2">
On this side you can import quizzes, which were <b {$t('import_page.this_side_classquiz')}
>exported from ClassQuiz</b
>.
</p> </p>
</div> </div>
+1 -1
View File
@@ -87,7 +87,7 @@
</div> </div>
{:else} {:else}
<div class="flex justify-center"> <div class="flex justify-center">
<h1 class="text-4xl">There is nothing here...</h1> <h1 class="text-4xl">{$t('search_page.nothing_here')}</h1>
</div> </div>
<div class="flex justify-center"> <div class="flex justify-center">
<p> <p>
@@ -128,7 +128,7 @@
d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
/> />
</svg> </svg>
Download {$t('words.download')}
</a> </a>
{:else} {:else}
<div use:tippy={{ content: 'You need to be logged in to download a game' }}> <div use:tippy={{ content: 'You need to be logged in to download a game' }}>
@@ -150,7 +150,7 @@
d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
/> />
</svg> </svg>
Download {$t('words.download')}
</button> </button>
</div> </div>
{/if} {/if}