DEV: Some translations and minor improvements

This commit is contained in:
Evg 2022-02-20 10:00:46 +03:00
parent 412cc28497
commit 8b2a025466
17 changed files with 80 additions and 48 deletions

View file

@ -383,8 +383,8 @@ function fragment($content, $maxlen = '20')
function no_content($text, $icon)
{
$html = '<div class="mt10 mb10 pt10 pr15 pb10 pl15 bg-yellow-100 gray">
<i class="' . $icon . ' middle mr5"></i>
$html = '<div class="box gray-600 bg-yellow-100">
<i class="' . $icon . ' green-600 middle mr5"></i>
<span class="middle">' . $text . '...</span>
</div>';

View file

@ -384,9 +384,11 @@ $data = [
'info-recover' => 'After clicking the "Reset" button, check your email...',
'info-favorite' => 'Posts, comments and questions in your bookmarks',
'info-preferences' => 'Posts you are subscribed to. You will be notified of all new replies',
'e-mail notification' => 'Notify by Email',
'info-notifications' => 'You can mark all ads as read by clicking on the link: "I have read".',
'info-notification' => 'You can unsubscribe from all notifications by Email in this section',
'notification.email' => 'Notify by Email',
'notifications.info' => 'You can mark all ads as read by clicking on the link: "I have read".',
'notification.info' => 'You can unsubscribe from all notifications by Email in this section',
'notifications.limit' => 'Die letzten 100 Benachrichtigungen werden angezeigt',
'message to PM' => 'When the message came to PM',
'contacted via @' => 'When they reached out to me through @',

View file

@ -377,15 +377,16 @@ $data = [
/* Setting */
'info-setting' => 'Fill in your name, this will help attendees refer to you by name. <br> <br> Tell us something about yourself. You have a great opportunity to open up to please others and seem like an interesting person.',
'info-avatar' => 'Upload an avatar and cover for your profile. <br> <br> When each user has a unique avatar, it becomes much easier to follow the discussions! ',
'info-security' => 'Make sure all your passwords are 8 characters or more, ideally a lot more.',
'info-search' => 'To refine your search, try to find a more precise query.',
'info-login' => 'Authorization gives you the ability to publish posts, reply, comment.',
'info-security' => 'Make sure all your passwords are 8 characters or more, ideally a lot more',
'info-search' => 'To refine your search, try to find a more precise query',
'info-login' => 'Authorization gives you the ability to publish posts, reply, comment',
'info-recover' => 'After clicking the "Reset" button, check your email...',
'info-favorite' => 'Posts, comments and questions in your bookmarks',
'info-preferences' => 'Posts you are subscribed to. You will be notified of all new replies',
'e-mail notification' => 'Notify by Email',
'info-notifications' => 'You can mark all ads as read by clicking on the link: "I have read".',
'info-notification' => 'You can unsubscribe from all notifications by Email in this section',
'notification.email' => 'Notify by Email',
'notifications.info' => 'You can mark all ads as read by clicking on the link: "I have read"',
'notification.info' => 'You can unsubscribe from all notifications by Email in this section',
'notifications.limit' => 'The last 100 notifications are shown',
'message to PM' => 'When the message came to PM',
'contacted via @' => 'When they reached out to me through @',

View file

@ -383,9 +383,11 @@ $data = [
'info-recover' => 'After clicking the "Reset" button, check your email...',
'info-favorite' => 'Posts, comments and questions in your bookmarks',
'info-preferences' => 'Posts you are subscribed to. You will be notified of all new replies',
'e-mail notification' => 'Notify by Email',
'info-notifications' => 'You can mark all ads as read by clicking on the link: "I have read".',
'info-notification' => 'You can unsubscribe from all notifications by Email in this section',
'notification.email' => 'Notify by Email',
'notifications.info' => 'You can mark all ads as read by clicking on the link: "I have read".',
'notification.info' => 'You can unsubscribe from all notifications by Email in this section',
'notifications.limit' => 'Afficher les 100 dernières notifications',
'message to PM' => 'When the message came to PM',
'contacted via @' => 'When they reached out to me through @',

View file

@ -373,15 +373,16 @@ $data = [
'info-avatar' => 'Încărcați un avatar și o acoperire pentru profilul dvs. <br> <br> Când fiecare utilizator are un avatar unic, devine mult mai ușor să urmărești discuțiile!',
'info-security' => 'Asigurați-vă că toate parolele dvs. au 8 sau mai multe caractere, în mod ideal mult mai multe.',
'info-search' => 'Pentru a rafina căutarea, încercați să găsiți o interogare mai precisă.',
'info-notifications' => 'Puteți marca toate anunțurile ca citite făcând clic pe linkul: „Am citit”.',
'info-login' => 'Autorizarea vă permite să publicați postări, să răspundeți, să comentați.',
'info-recover' => 'După ce faceți clic pe butonul „Resetare”, verificați e-mailul ...',
'info-favorite' => 'Postări, comentarii și întrebări pe care le urmăriți',
'info-preferences' => 'Postări la care sunteți abonat. Veți fi informat cu privire la toate răspunsurile noi',
'e-mail notification' => 'Notificați prin e-mail',
'info-notifications' => 'Vă puteți dezabona de la toate notificările prin e-mail în această secțiune',
'notification.email' => 'Notifică prin e-mail',
'notifications.info' => 'Puteți marca toate anunțurile ca citite, faceți clic pe linkul :" am citit".',
'notification.info' => 'Vă puteți dezabona de la toate notificările prin e-mail din această secțiune',
'notifications.limit' => 'Sunt afișate ultimele 100 de notificări',
'message to PM' => 'Când mesajul a venit la PM',
'contacted via @' => 'Când m-ați contactat prin @',

View file

@ -386,9 +386,10 @@ $data = [
'info-favorite' => 'Посты, комментарии и вопросы в ваших закладках',
'info-preferences' => 'Посты, на которые вы подписаны. Вы будете получать уведомления о всех новых ответах',
'e-mail notification' => 'Уведомлять по E-mail',
'info-notifications' => 'Вы можете пометить все объявления, как прочитанные, нажать на ссылку: «Я прочитал».',
'info-notification' => 'Вы можете отписаться от всех уведомлений на E-mail в этом разделе',
'notification.email' => 'Уведомлять по E-mail',
'notifications.info' => 'Вы можете пометить все объявления, как прочитанные, нажать на ссылку: «Я прочитал».',
'notification.info' => 'Вы можете отписаться от всех уведомлений на E-mail в этом разделе',
'notifications.limit' => 'Показаны последние 100 уведомлений',
'message to PM' => 'Когда пришло сообщение на PM',
'contacted via @' => 'Когда обратились ко мне через @',

View file

@ -382,9 +382,10 @@ $data = [
'info-recover' => '單擊“重置”按鈕後,檢查您的電子郵件...',
'info-favorite' => '書籤中的帖子、評論和問題',
'info-preferences' => '您訂閱的帖子。 您將收到所有新回复的通知',
'e-mail notification' => '通過電子郵件通知',
'info-notifications' => '您可以通過單擊以下鏈接將所有廣告標記為已讀:“我已閱讀”。',
'info-notification' => '您可以在此部分取消訂閱通過電子郵件發送的所有通知',
'notification.email' => '通過電子郵件通知',
'notifications.info' => '您可以通過單擊以下鏈接將所有廣告標記為已讀:“我已閱讀”。',
'notification.info' => '您可以在此部分取消訂閱通過電子郵件發送的所有通知',
'notifications.limit' => '最后100个通知显示',
'message to PM' => '當消息來到 PM',
'contacted via @' => '當他們通過@聯繫我時 ',

View file

@ -11,7 +11,7 @@ $dark = Request::getCookie('dayNight') == 'dark' ? 'dark' : '';
<meta name="viewport" content="width=device-width, initial-scale=1">
<?= $meta; ?>
<?php getRequestHead()->output(); ?>
<link rel="stylesheet" href="/assets/css/style.css?06">
<link rel="stylesheet" href="/assets/css/style.css?08">
<link rel="icon" sizes="16x16" href="/favicon.ico" type="image/x-icon">
<link rel="icon" sizes="120x120" href="/favicon-120.ico" type="image/x-icon">
</head>

View file

@ -1,5 +1,5 @@
<?php
$dark = Request::getCookie('dayNight') == 'dark' ? 'dark' : '';
$dark = Request::getCookie('dayNight') == 'dark' ? 'dark' : '';
?>
<!DOCTYPE html>
@ -11,8 +11,8 @@ $dark = Request::getCookie('dayNight') == 'dark' ? 'dark' : '';
<meta name="viewport" content="width=device-width, initial-scale=1">
<?= $meta; ?>
<?php getRequestHead()->output(); ?>
<link rel="stylesheet" href="/assets/css/style.css?v06">
<link rel="stylesheet" href="/assets/css/catalog.css?v06">
<link rel="stylesheet" href="/assets/css/style.css?v08">
<link rel="stylesheet" href="/assets/css/catalog.css?v08">
<link rel="icon" sizes="16x16" href="/favicon.ico" type="image/x-icon">
<link rel="icon" sizes="120x120" href="/favicon-120.ico" type="image/x-icon">
</head>

File diff suppressed because one or more lines are too long

View file

@ -134,12 +134,14 @@
<div class="sticky top-sm">
<?php if (!empty($data['latest_answers'])) { ?>
<div class="box-white">
<ul class="list-none text-sm">
<ul class="last-content">
<?php foreach ($data['latest_answers'] as $answer) { ?>
<li class="mb15">
<?= user_avatar_img($answer['avatar'], 'small', $answer['login'], 'ava-sm'); ?>
<li>
<a title="<?= $answer['login']; ?>" href="<?= getUrlByName('profile', ['login' => $answer['login']]); ?>">
<?= user_avatar_img($answer['avatar'], 'small', $answer['login'], 'ava-sm'); ?>
</a>
<span class="middle lowercase gray-400"><?= $answer['answer_date']; ?></span>
<a class="black block p0" href="<?= getUrlByName('post', ['id' => $answer['post_id'], 'slug' => $answer['post_slug']]); ?>#answer_<?= $answer['answer_id']; ?>">
<a class="last-content_telo" href="<?= getUrlByName('post', ['id' => $answer['post_id'], 'slug' => $answer['post_slug']]); ?>#answer_<?= $answer['answer_id']; ?>">
<?= $answer['answer_content']; ?>...
</a>
</li>

View file

@ -19,7 +19,7 @@
</form>
</div>
<div class="bg-white br-box-gray br-rd5 p15">
<div class="bg-white mb15">
<?php if (!empty($data['notifications'])) { ?>
<?php foreach ($data['notifications'] as $notif) { ?>
@ -104,9 +104,10 @@
<?= no_content(Translate::get('no.content'), 'bi bi-info-lg'); ?>
<?php } ?>
</div>
<?= no_content(Translate::get('notifications.limit'), 'bi bi-info-lg'); ?>
</main>
<aside class="col-span-3 mb-none">
<div class="box-white text-sm sticky top-sm">
<?= Translate::get('info-notifications'); ?>
<?= Translate::get('notifications.info'); ?>
</div>
</aside>

View file

@ -142,6 +142,24 @@ details[open] > summary {
background-color: var(--white);
}
ul.last-content {
list-style: none;
font-size: 0.875rem;
padding: 0;
margin: 0;
}
ul.last-content li {
margin-bottom: 15px;
}
ul.last-content li a {
display: inline;
padding: 0;
}
ul.last-content a.last-content_telo { display: block; }
.uppercase-box {
color: var(--gray-600);
font-size: 0.875rem;

View file

@ -14,7 +14,7 @@ $facet = $data['facet'] ?? false;
<meta name="viewport" content="width=device-width, initial-scale=1">
<?= $meta; ?>
<?php getRequestHead()->output(); ?>
<link rel="stylesheet" href="/assets/css/style.css?06">
<link rel="stylesheet" href="/assets/css/style.css?08">
<link rel="icon" sizes="16x16" href="/favicon.ico" type="image/x-icon">
<link rel="icon" sizes="120x120" href="/favicon-120.ico" type="image/x-icon">
</head>

View file

@ -108,17 +108,19 @@
<div class="sticky top0">
<?php if (!empty($data['latest_answers'])) { ?>
<div class="box-white bg-violet-50">
<ul class="list-none">
<?php foreach ($data['latest_answers'] as $answer) { ?>
<li class="mb15">
<?= user_avatar_img($answer['avatar'], 'small', $answer['login'], 'ava-sm'); ?>
<span class="middle lowercase gray-400"><?= $answer['answer_date']; ?></span>
<a class="black block p0" href="<?= getUrlByName('post', ['id' => $answer['post_id'], 'slug' => $answer['post_slug']]); ?>#answer_<?= $answer['answer_id']; ?>">
<?= $answer['answer_content']; ?>...
</a>
</li>
<?php } ?>
<div class="box-white">
<ul class="last-content">
<?php foreach ($data['latest_answers'] as $answer) { ?>
<li>
<a title="<?= $answer['login']; ?>" href="<?= getUrlByName('profile', ['login' => $answer['login']]); ?>">
<?= user_avatar_img($answer['avatar'], 'small', $answer['login'], 'ava-sm'); ?>
</a>
<span class="middle lowercase gray-400"><?= $answer['answer_date']; ?></span>
<a class="last-content_telo" href="<?= getUrlByName('post', ['id' => $answer['post_id'], 'slug' => $answer['post_slug']]); ?>#answer_<?= $answer['answer_id']; ?>">
<?= $answer['answer_content']; ?>...
</a>
</li>
<?php } ?>
</ul>
</div>
<?php } ?>

View file

@ -91,9 +91,10 @@
<?= no_content(Translate::get('no.content'), 'bi bi-info-lg'); ?>
<?php } ?>
</div>
<?= no_content(Translate::get('notifications.limit'), 'bi bi-info-lg'); ?>
</main>
<aside class="col-span-3 mb-none">
<div class="box-white bg-violet-50 text-sm">
<?= Translate::get('info-notifications'); ?>
<?= Translate::get('notifications.info'); ?>
</div>
</aside>

View file

@ -11,7 +11,7 @@ $facet = $data['facet'] ?? false; ?>
<meta name="viewport" content="width=device-width, initial-scale=1">
<?= $meta; ?>
<?php getRequestHead()->output(); ?>
<link rel="stylesheet" href="/assets/css/style.css?04">
<link rel="stylesheet" href="/assets/css/style.css?08">
<link rel="icon" sizes="16x16" href="/favicon.ico" type="image/x-icon">
<link rel="icon" sizes="120x120" href="/favicon-120.ico" type="image/x-icon">
</head>