Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some improvements and fixes #11

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added mo/ru/LC_MESSAGES/quizgen.mo
Binary file not shown.
55 changes: 55 additions & 0 deletions po/quizgen.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Translations for Quizgen by Karanveer Mohan.
# Copyright (C) 2022
# This file is distributed under the same license as the Quizgen package.
# Paul Wolneykien <[email protected]>, 2022.
#
#
msgid ""
msgstr ""
"Project-Id-Version: Quizgen 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-11 22:34+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#: quizgen.py:244
msgid "Correct! "
msgstr ""

#: quizgen.py:248
msgid "Incorrect. "
msgstr ""

#: quizgen.py:306
msgid "This option is correct. "
msgstr ""

#: quizgen.py:309
msgid "This option is incorrect. "
msgstr ""

#: quizgen.py:340 quizgen.py:437
msgid "Submit"
msgstr ""

#: quizgen.py:438
msgid "Hide"
msgstr ""

#: quizgen.py:560
#, python-format
msgid ""
"<span class=\"heading\">Your results:</span> <span class=\"right_counter"
"\"><span class=\"value\">%d</span></span> right answer(s) and <span class="
"\"wrong_counter\"><span class=\"value\">%d</span></span> mistake(s)!"
msgstr ""

#: quizgen.py:563
#, python-format
msgid "Page generated using %s (with last modifications at %s)"
msgstr ""
55 changes: 55 additions & 0 deletions po/ru.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Translations for Quizgen by Karanveer Mohan.
# Copyright (C) 2022
# This file is distributed under the same license as the Quizgen package.
# Paul Wolneykien <[email protected]>, 2022.
#
#
msgid ""
msgstr ""
"Project-Id-Version: Quizgen 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-11 22:34+0300\n"
"PO-Revision-Date: 2022-05-11 22:36+0300\n"
"Last-Translator: Paul Wolneykien <[email protected]>\n"
"Language-Team: Russian <[email protected]>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: quizgen.py:244
msgid "Correct! "
msgstr "Верно! "

#: quizgen.py:248
msgid "Incorrect. "
msgstr "Неверно! "

#: quizgen.py:306
msgid "This option is correct. "
msgstr "Это правильный ответ. "

#: quizgen.py:309
msgid "This option is incorrect. "
msgstr "Это неверный ответ. "

#: quizgen.py:340 quizgen.py:437
msgid "Submit"
msgstr "Проверить"

#: quizgen.py:438
msgid "Hide"
msgstr "Скрыть"

#: quizgen.py:560
#, python-format
msgid ""
"<span class=\"heading\">Your results:</span> <span class=\"right_counter"
"\"><span class=\"value\">%d</span></span> right answer(s) and <span class="
"\"wrong_counter\"><span class=\"value\">%d</span></span> mistake(s)!"
msgstr "<span class=\"heading\">Ваши результаты:</span> верных ответов — <span class=\"right_counter\"><span class=\"value\">%d</span></span>, ошибок — <span class=\"wrong_counter\"><span class=\"value\">%d</span></span>."

#: quizgen.py:563
#, python-format
msgid "Page generated using %s (with last modifications at %s)"
msgstr "Страница создана с использованием %s (с последними изменениями %s)"
65 changes: 65 additions & 0 deletions quiz.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,14 @@ legend {
padding: 8px 10px;
color: #D8000C;
background-color: #FFBABA;
display: none;
}

.response.right{
padding: 8px 10px;
color: #4F8A10;
background-color: #DFF2BF;
display: none;
}

footer {
Expand Down Expand Up @@ -135,3 +137,66 @@ button:hover{
button:focus {
outline: none;
}

#floating_results {
position: fixed;
bottom: 0px;
right: 0px;
margin: 1em;
}

#floating_results .right_counter,
#floating_results .wrong_counter,
#floating_results .delimiter {
display: inline-block;
font-size: 150%;
font-weight: bold;
margin: 0px 0px;
text-align: center;
vertical-align: middle;
}

#floating_results .right_counter,
#floating_results .wrong_counter {
border-radius: 50%;
color: white;
padding: 0.3em 0.6em;
transition: padding 0.5s;
}

#floating_results .right_counter {
background-color: green;
}

#floating_results .delimiter {
background-color: transparent;
padding: 0px 0px;
margin: 0px 0px;
}

#floating_results .wrong_counter {
background-color: red;
}

#floating_results .right_counter.rise,
#floating_results .wrong_counter.rise {
padding: 0.5em 0.9em;
transition: padding 0.5s;
}

#footer_results {
margin: 1em 1em 3em 1em;
text-align: center;
font-size: 150%;
}

#footer_results .heading {
font-style: italic;
text-decoration: underline;
}

#footer_results .right_counter,
#footer_results .wrong_counter {
font-style: italic;
font-weight: bold;
}
Loading