Skip to content

Commit

Permalink
Havbar Help Dropdown Added
Browse files Browse the repository at this point in the history
Added a help dropdown which links to the documentation, Discord invite and Github issue page.

Only shows if a user is a admin.

Translations Supported.

Preview: https://senkawolf.fyi/me/paHAboYe85.png
  • Loading branch information
SenkaWolf committed Jan 19, 2025
1 parent 4b27c4d commit cbd0744
Show file tree
Hide file tree
Showing 32 changed files with 109 additions and 1 deletion.
3 changes: 3 additions & 0 deletions resources/lang/ar.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,7 @@
'mail.recover_text' => 'مرحبًا %s،<br>لقد تم طلب إعادة تعيين كلمة المرور لحسابك. لإكمال الإجراء انقر على الرابط التالي:<br><br><a href="%s">%s</a><br><br>إذا لم تكن أنت من طلب إعادة تعيين كلمة المرور، فما عليك سوى تجاهل هذا البريد الإلكتروني.',
'mail.new_account_text_with_reset' => 'مرحبًا %s!<br>تم إنشاء حساب جديد لك على %s (<a href="%s">%s</a>)، انقر على الرابط التالي لتعيين كلمة مرور وتنشيطها:<br ><br><a href="%s">%s</a>',
'mail.new_account_text_with_pw' => 'مرحبًا %s!<br>تم إنشاء حساب جديد لك على %s (<a href="%s">%s</a>)، باستخدام بيانات الاعتماد التالية:<br><br>اسم المستخدم: %s <br>كلمة المرور: %s<br><br>انقر على الرابط التالي للانتقال إلى صفحة تسجيل الدخول:<br><a href="%s">%s</a>',
'help' => 'يساعد',
'documentation' => 'التوثيق',
'report' => 'الإبلاغ عن مشكلة'
];
3 changes: 3 additions & 0 deletions resources/lang/bg.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,7 @@
'clear_account' => 'Изчистване на акаунта',
'only_recaptcha_v3' => 'Поддържа се само reCAPTCHA v3.',
'mail.new_account_text_with_pw' => 'Здравейте %s!<br>за вас бе създаден нов акаунт на %s (<a href="%s">%s</a>) със следните идентификационни данни:<br><br>Потребителско име: %s <br>Парола: %s<br><br>Щракнете върху следната връзка, за да отидете на страницата за вход:<br><a href="%s">%s</a>',
'help' => 'помощ',
'documentation' => 'документация',
'report' => 'Докладвайте за проблем'
];
3 changes: 3 additions & 0 deletions resources/lang/ca.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,7 @@
'mail.recover_text' => 'Hola %s,<br>s\'ha sol·licitat un restabliment de la contrasenya per al vostre compte. Per completar el procediment, feu clic a l\'enllaç següent:<br><br><a href="%s">%s</a><br><br>Si no heu estat vosaltres qui heu sol·licitat la restabliment de la contrasenya, simplement ignora aquest correu electrònic.',
'recaptcha_enabled' => 'reCAPTCHA Habilitat',
'mail.new_account_text_with_reset' => 'Hola, %s!<br>s\'ha creat un compte nou a %s (<a href="%s">%s</a>), feu clic a l\'enllaç següent per establir una contrasenya i activar-la:<br ><br><a href="%s">%s</a>',
'help' => 'Ajuda',
'documentation' => 'Documentació',
'report' => 'Informar dun problema'
];
3 changes: 3 additions & 0 deletions resources/lang/cs.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,7 @@
'drop_to_upload' => 'Klikněte nebo sem přetáhněte soubory pro nahrání.',
'no_upload_token' => 'Nemáte osobní nahrávací token. (Vygenerujte si jej a zkuste to znovu.)',
'image_embeds' => 'Vložené obrázky',
'help' => 'Pomôcť',
'documentation' => 'Dokumentácia',
'report' => 'Nahlásiť problém'
];
3 changes: 3 additions & 0 deletions resources/lang/da.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,7 @@
'image_embeds' => 'Integrer billeder',
'mail.new_account_text_with_pw' => 'Hej %s!<br>en ny konto blev oprettet til dig den %s (<a href="%s">%s</a>), med følgende oplysninger:<br><br>Brugernavn: %s<br>Adgangskode: %s<br><br>Klik på følgende link for at gå til login-siden:<br><a href="%s">%s</a>',
'path_not_writable' => 'Outputstien er ikke skrivbar.',
'help' => 'Hjælp',
'documentation' => 'Dokumentation',
'report' => 'Rapporter et problem'
];
3 changes: 3 additions & 0 deletions resources/lang/de.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,7 @@
'copied' => 'In Zwischenablage kopiert!',
'image_embeds' => 'Bilder einbetten',
'vanity_url' => 'Benutzerdefinierte URL',
'help' => 'Helfen',
'documentation' => 'Dokumentation',
'report' => 'Ein Problem melden'
];
5 changes: 4 additions & 1 deletion resources/lang/en.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,8 @@
'zip_ext_not_loaded' => 'The required "zip" extension is not loaded',
'changelog' => 'Changelog',
'show_changelog' => 'Show changelog',
'image_embeds' => 'Embed images'
'image_embeds' => 'Embed images',
'help' => 'Help',
'documentation' => 'Documentation',
'report' => 'Report a Issue'
];
3 changes: 3 additions & 0 deletions resources/lang/es.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,7 @@
'custom_head_set' => 'Cabecera HTML personalizada aplicada.',
'vanity_url' => 'URL personalizada',
'show_all_tags' => 'Mostrar todas las etiquetas',
'help' => 'Ayuda',
'documentation' => 'Documentación',
'report' => 'Informar un problema'
];
3 changes: 3 additions & 0 deletions resources/lang/fa.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@
'pager.previous' => 'قبلی',
'copy_link' => 'رونوشت از پیوند',
'filename' => 'نام فایل',
'help' => 'کمک کند',
'documentation' => 'مستندات',
'report' => 'گزارش یک مشکل'
];
3 changes: 3 additions & 0 deletions resources/lang/fi.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,7 @@
'mail.recover_text' => 'Hei %s, <br>tilillesi on pyydetty salasanan palautusta. Suorita toimenpide napsauttamalla seuraavaa linkkiä:<br><br><a href="%s">%s</a><br><br>Jos et ollut sinä, joka pyysit salasanan vaihtamista, ohita tämä sähköposti.',
'quota_enabled' => 'Käyttäjäkiintiön ottaminen käyttöön',
'vanity_url' => 'Mukautettu URL',
'help' => 'Auttaa',
'documentation' => 'Dokumentaatio',
'report' => 'Ilmoita ongelmasta'
];
3 changes: 3 additions & 0 deletions resources/lang/fr.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,7 @@
'copied' => 'Copié dans le presse-papier !',
'image_embeds' => 'Intégrer des images',
'vanity_url' => 'URL personnalisée',
'help' => 'Aide',
'documentation' => 'Documentation',
'report' => 'Signaler un problème'
];
3 changes: 3 additions & 0 deletions resources/lang/fr_CA.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,7 @@
'copied' => 'Copié dans le presse-papier!',
'image_embeds' => 'Intégrer des images',
'vanity_url' => 'URL personnalisée',
'help' => 'Aide',
'documentation' => 'Documentation',
'report' => 'Signaler un problème'
];
3 changes: 3 additions & 0 deletions resources/lang/hi.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,7 @@
'yes' => 'यस',
'enforce_language' => 'इनफ़ोर्स लैंग्वेज',
'lang' => 'हिंदी',
'help' => 'मदद',
'documentation' => 'प्रलेखन',
'report' => 'समस्या की रिपोर्ट करें'
];
3 changes: 3 additions & 0 deletions resources/lang/hu.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,7 @@
'lang' => 'Magyar',
'image_embeds' => 'Képek beágyazása',
'vanity_url' => 'Egyedi URL',
'help' => 'Segítség',
'documentation' => 'Dokumentáció',
'report' => 'Probléma bejelentése'
];
3 changes: 3 additions & 0 deletions resources/lang/id.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,7 @@
'image_embeds' => 'Sematkan gambar',
'vanity_url' => 'URL kostum',
'show_all_tags' => 'Tampilkan semua tag',
'help' => 'membantu',
'documentation' => 'Dokumentasi',
'report' => 'Laporkan Masalah'
];
3 changes: 3 additions & 0 deletions resources/lang/it.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,7 @@
'copied' => 'Copiato negli appunti!',
'image_embeds' => 'Incorpora immagini',
'vanity_url' => 'URL personalizzato',
'help' => 'aiuto',
'documentation' => 'Documentazione',
'report' => 'Segnala un problema'
];
3 changes: 3 additions & 0 deletions resources/lang/ja.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,7 @@
'please_wait' => '少々お待ちください…',
'dont_close' => '作業を完了する前にはこのタブを閉じないでください。',
'no_upload_token' => 'アップロードのための個人トークンがありません。(まず新しく生成してもう一度試してください)',
'help' => 'ヘルプ',
'documentation' => 'ドキュメント',
'report' => '問題を報告する'
];
3 changes: 3 additions & 0 deletions resources/lang/ko.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,7 @@
'enforce_language' => '언어 설정',
'lang' => 'Korean',
'vanity_url' => '사용자 정의 URL',
'help' => '돕다',
'documentation' => '선적 서류 비치',
'report' => '문제 보고'
];
3 changes: 3 additions & 0 deletions resources/lang/lt.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,7 @@
'maintenance' => 'Palaikymas',
'name' => 'Vardas',
'time' => 'Laikas',
'help' => 'padėti',
'documentation' => 'Dokumentacija',
'report' => 'Pranešti apie problemą'
];
3 changes: 3 additions & 0 deletions resources/lang/nb_NO.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,7 @@
'send_notification' => 'Send e-postmerknad',
'copied' => 'Kopiert til utklippstavle.',
'image_embeds' => 'Integrer bilder',
'help' => 'hjelp',
'documentation' => 'dokumentasjon',
'report' => 'Rapporter et problem'
];
3 changes: 3 additions & 0 deletions resources/lang/nl.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,7 @@
'vanity_url' => 'Eigen URL',
'image_embeds' => 'Afbeeldingen insluiten',
'show_all_tags' => 'Toon alle tags',
'help' => 'hulp',
'documentation' => 'Documentatie',
'report' => 'Meld een probleem'
];
3 changes: 3 additions & 0 deletions resources/lang/pl.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,7 @@
'image_embeds' => 'Osadź obrazy',
'copied' => 'Skopiowano!',
'vanity_url' => 'Niestandardowy adres URL',
'help' => 'Pomoc',
'documentation' => 'Dokumentacja',
'report' => 'Zgłoś problem'
];
3 changes: 3 additions & 0 deletions resources/lang/pt.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,7 @@
'image_embeds' => 'Embutir imagens',
'vanity_url' => 'URL personalizado',
'show_all_tags' => 'Mostrar todas as tags',
'help' => 'Ajuda',
'documentation' => 'Documentação',
'report' => 'Reportar um problema'
];
3 changes: 3 additions & 0 deletions resources/lang/ro.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,7 @@
'account_media_deleted' => 'Toata media de pe cont a fost eliminata.',
'changelog' => 'Schimbari',
'mail.new_account_text_with_pw' => 'Hey %s!<br>un nou cont a fost creat pentru tine pe %s (<a href="%s">%s</a>), cu urmatoarele date:<br><br>Nume de utilizator: %s<br>Parola: %s<br><br>Apasa pe urmatorul link pentru a te autentifica:<br><a href="%s">%s</a>',
'help' => 'Ajutor',
'documentation' => 'Documentare',
'report' => 'Raportați o problemă'
];
3 changes: 3 additions & 0 deletions resources/lang/ru.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,7 @@
'image_embeds' => 'Встроенные изображения',
'vanity_url' => 'Пользовательский URL',
'show_all_tags' => 'Показать все теги',
'help' => 'помощь',
'documentation' => 'Документация',
'report' => 'Сообщить о проблеме'
];
3 changes: 3 additions & 0 deletions resources/lang/sr.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,7 @@
'mail.activate_text' => 'Zdravo %s!<br>hvala što ste otvorili svoj nalog na %s (<a href="%s">%s</a>), kliknite na sledeću vezu da biste ga aktivirali:<br><br>< a href="%s">%s</a>',
'mail.recover_text' => 'Zdravo %s,<br>zatraženo je resetovanje lozinke za vaš nalog. Da biste završili proceduru kliknite na sledeću vezu:<br><br><a href="%s">%s</a><br><br>Ako niste vi tražili resetovanje lozinke, jednostavno ignorišite ovu e-poštu.',
'show_all_tags' => 'Prikaži sve tagove',
'help' => 'Pomoć',
'documentation' => 'Dokumentacija',
'report' => 'Prijavite problem'
];
3 changes: 3 additions & 0 deletions resources/lang/sv.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,7 @@
'image_embeds' => 'Inbäddade bilder',
'vanity_url' => 'Anpassad URL',
'show_all_tags' => 'Visa alla taggar',
'help' => 'Hjälp',
'documentation' => 'Dokumentation',
'report' => 'Rapportera ett problem'
];
3 changes: 3 additions & 0 deletions resources/lang/ta.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,7 @@
'zip_ext_not_loaded' => 'தேவையான "சிப்" நீட்டிப்பு ஏற்றப்படவில்லை',
'changelog' => 'மாற்றபதிவு',
'show_changelog' => 'சேஞ்ச்லாக் காட்டு',
'help' => 'உதவி',
'documentation' => 'ஆவணப்படுத்தல்',
'report' => 'ஒரு சிக்கலைப் புகாரளிக்கவும்'
];
3 changes: 3 additions & 0 deletions resources/lang/tr.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,7 @@
'switch_to' => 'Şuna geç',
'vanity_url' => 'Özel URL',
'show_all_tags' => 'Tüm etiketleri göster',
'help' => 'Yardım',
'documentation' => 'Belgeleme',
'report' => 'Bir Sorun Bildirin'
];
3 changes: 3 additions & 0 deletions resources/lang/vi.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,7 @@
'mail.new_account_text_with_reset' => 'Xin chào %s!<br>một tài khoản mới đã được tạo cho bạn ở %s (<a href="%s">%s</a>), hãy bấm vào đường link sau để cài mật khẩu và kích hoạt tài khoản nhé:<br><br><a href="%s">%s</a>',
'mail.new_account_text_with_pw' => 'Xin chào %s!<br>một tài khoản mới đã được tạo cho bạn trên %s (<a href="%s">%s</a>), với thông tin đăng nhập như sau:<br><br>Tên đăng nhập: %s<br>Mật khẩu: %s<br><br>Hãy bấm vào đường link sau đây để truy cập trang đăng nhập tài khoản nhé:<br><a href="%s">%s</a>',
'ldap_cant_connect' => 'Không thể kết nối với máy chủ xác minh LDAP.',
'help' => 'Giúp đỡ',
'documentation' => 'Tài liệu',
'report' => 'Báo cáo sự cố'
];
3 changes: 3 additions & 0 deletions resources/lang/zh_Hans.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,7 @@
'recaptcha_secret_key' => 'reCAPTCHA 密钥',
'prerelease_channel' => '预发布渠道',
'recaptcha_keys_required' => '所有 reCAPTCHA 密钥都是必需的。',
'help' => '帮助',
'documentation' => '文档',
'report' => '报告问题'
];
15 changes: 15 additions & 0 deletions resources/templates/comp/navbar.twig
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@
{{ lang('system') }}
</a>
</li>
<li class="nav-item">
<a href="{{ route('system') }}" class="nav-link {{ inPath(request.uri.path, '/system') ? 'active' }}"><i class="fas fa-fw fa-cog"></i>
{{ lang('system') }}
</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="helpDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-fw fa-question-circle"></i>
{{ lang('help') }}
</a>
<div class="dropdown-menu shadow-sm" aria-labelledby="helpDropdown">
<a class="dropdown-item" href="https://xbackbone.app/" target="_blank" rel="noopener noreferrer"><i class="fas fa-fw fa-solid fa-book"></i> {{ lang('documentation') }}</a>
<a class="dropdown-item" href="https://discord.gg/ksPfXFbhDF" target="_blank" rel="noopener noreferrer"><i class="fab fa-fw fa-discord"></i> Discord</a>
<a class="dropdown-item" href="https://github.com/sergix44/XBackBone/issues" target="_blank" rel="noopener noreferrer"><i class="fas fa-fw fa-solid fa-bug"></i> {{ lang('report') }}</a>
</div>
</li>
{% endif %}
</ul>
<ul class="navbar-nav ml-auto">
Expand Down

0 comments on commit cbd0744

Please sign in to comment.