Compare commits

...

6 Commits

Author SHA1 Message Date
Kim Alvefur
5015c4aa43 fixup: refresh translation code references 2024-08-11 16:36:53 +02:00
Kim Alvefur
465720c5b1 fixup: please flake8 2024-08-11 16:34:06 +02:00
Kim Alvefur
2a8e7ae72b fixup: please mypy 2024-08-11 16:25:17 +02:00
Andrey
449e345ee5 Ignore that users do not have access to metrics
Fixes #190

The templates appear to handle this being False, so that seems the path
of least resistance.
2024-08-11 15:56:40 +02:00
Andrey
51798ecc43 Translated using Weblate (Russian)
Currently translated at 100.0% (373 of 373 strings)

Translation: Snikket/Web Portal
Translate-URL: http://i18n.sotecware.net/projects/snikket/web-portal/ru/
2024-07-18 17:08:03 +00:00
uira
1e15ef5fce Translated using Weblate (Indonesian)
Currently translated at 100.0% (373 of 373 strings)

Translation: Snikket/Web Portal
Translate-URL: http://i18n.sotecware.net/projects/snikket/web-portal/id/
2024-07-18 17:07:58 +00:00
6 changed files with 55 additions and 59 deletions

View File

@@ -6,12 +6,12 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: translations@snikket.org\n"
"POT-Creation-Date: 2024-04-30 10:52+0100\n" "POT-Creation-Date: 2024-04-30 10:52+0100\n"
"PO-Revision-Date: 2023-12-15 16:11+0000\n" "PO-Revision-Date: 2024-07-18 17:07+0000\n"
"Last-Translator: uira <inboxriau@illiyy.in>\n" "Last-Translator: uira <inboxriau@illiyy.in>\n"
"Language-Team: Indonesian <http://i18n.sotecware.net/projects/snikket/web-" "Language-Team: Indonesian <http://i18n.sotecware.net/projects/snikket/"
"portal/id/>\n" "web-portal/id/>\n"
"Language: id\n" "Language: id\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@@ -41,7 +41,7 @@ msgstr "Terbatas"
#: snikket_web/admin.py:80 snikket_web/admin.py:298 #: snikket_web/admin.py:80 snikket_web/admin.py:298
msgid "Normal user" msgid "Normal user"
msgstr "Pengguna normal" msgstr "Pengguna biasa"
#: snikket_web/admin.py:81 snikket_web/admin.py:299 #: snikket_web/admin.py:81 snikket_web/admin.py:299
msgid "Administrator" msgid "Administrator"
@@ -149,7 +149,7 @@ msgstr "Grup"
#: snikket_web/admin.py:305 #: snikket_web/admin.py:305
msgid "Comment (optional)" msgid "Comment (optional)"
msgstr "" msgstr "Komentar (opsional)"
#: snikket_web/admin.py:309 #: snikket_web/admin.py:309
msgid "New invitation link" msgid "New invitation link"
@@ -215,7 +215,7 @@ msgstr "Pengguna dihapus dari kelompok"
#: snikket_web/admin.py:594 #: snikket_web/admin.py:594
msgid "Chat removed from circle" msgid "Chat removed from circle"
msgstr "Chat dihapus dari lingkaran" msgstr "Chat dihapus dari kelompok"
#: snikket_web/admin.py:612 #: snikket_web/admin.py:612
msgid "Delete circle permanently" msgid "Delete circle permanently"
@@ -235,7 +235,7 @@ msgstr "Buat grup chat"
#: snikket_web/admin.py:688 #: snikket_web/admin.py:688
msgid "New group chat added to circle" msgid "New group chat added to circle"
msgstr "Grup chat baru ditambahkan ke lingkaran" msgstr "Grup chat baru ditambahkan ke kelompok"
#: snikket_web/admin.py:755 #: snikket_web/admin.py:755
msgid "Message contents" msgid "Message contents"
@@ -560,7 +560,7 @@ msgid ""
"each other on your service." "each other on your service."
msgstr "" msgstr ""
"<em>Kelompok</em> bertujuan untuk membantu orang-orang yang berada di " "<em>Kelompok</em> bertujuan untuk membantu orang-orang yang berada di "
"lingkaran sosial yang sama bertemu di layanan Anda." "kelompok sosial yang sama bertemu di layanan Anda."
#: snikket_web/templates/admin_circles.html:6 #: snikket_web/templates/admin_circles.html:6
msgid "" msgid ""
@@ -568,9 +568,9 @@ msgid ""
"In addition, each circle may have group chats where the circle members are " "In addition, each circle may have group chats where the circle members are "
"included." "included."
msgstr "" msgstr ""
"Pengguna yang berada di lingkaran yang sama akan melihat satu sama lain di " "Pengguna yang berada di kelompok yang sama akan melihat satu sama lain di "
"daftar kontak mereka. Selain itu, setiap lingkaran mungkin memiliki grup " "daftar kontak mereka. Selain itu, setiap kelompok mungkin memiliki grup chat "
"chat yang berisikan anggota lingkaran." "yang berisikan anggota kelompok."
#: snikket_web/templates/admin_circles.html:13 #: snikket_web/templates/admin_circles.html:13
msgid "Circle name" msgid "Circle name"
@@ -627,8 +627,8 @@ msgstr "Buat grup chat kelompok baru"
#: snikket_web/templates/admin_create_circle_group_chat_form.html:6 #: snikket_web/templates/admin_create_circle_group_chat_form.html:6
msgid "Add a chat to your circle so its members can hold group discussions." msgid "Add a chat to your circle so its members can hold group discussions."
msgstr "" msgstr ""
"Tambahkan chat ke lingkaran Anda sehingga anggotanya dapat mengadakan " "Tambahkan chat ke kelompok Anda sehingga anggotanya dapat mengadakan diskusi "
"diskusi grup." "grup."
#: snikket_web/templates/admin_create_circle_group_chat_form.html:7 #: snikket_web/templates/admin_create_circle_group_chat_form.html:7
msgid "Tip:" msgid "Tip:"
@@ -641,7 +641,7 @@ msgid ""
"Snikket app instead." "Snikket app instead."
msgstr "" msgstr ""
"Ini hanya untuk membuat grup chat yang secara otomatis menyertakan " "Ini hanya untuk membuat grup chat yang secara otomatis menyertakan "
"<em>semua</em> anggota lingkaran. Jika Anda ingin grup chat normal, buatlah " "<em>semua</em> anggota kelompok. Jika Anda ingin grup chat biasa, buatlah "
"melalui aplikasi Snikket." "melalui aplikasi Snikket."
#: snikket_web/templates/admin_create_invite.html:3 #: snikket_web/templates/admin_create_invite.html:3
@@ -665,13 +665,15 @@ msgstr ""
msgid "" msgid ""
"Choose whether this invitation link will allow more than one person to join." "Choose whether this invitation link will allow more than one person to join."
msgstr "" msgstr ""
"Pilih apakah tautan undangan ini akan dipakai lebih dari satu orang untuk "
"bergabung."
#: snikket_web/templates/admin_create_invite_form.html:21 #: snikket_web/templates/admin_create_invite_form.html:21
#, fuzzy, python-format #, python-format
#| msgid "<strong>%(title)s%(icon)s</strong><p>%(description)s</p>"
msgid "" msgid ""
"<span class=\"invite-type\">%(title)s%(icon)s</span><p>%(description)s</p>" "<span class=\"invite-type\">%(title)s%(icon)s</span><p>%(description)s</p>"
msgstr "<strong>%(title)s%(icon)s</strong><p>%(description)s</p>" msgstr ""
"<span class=\"invite-type\">%(title)s%(icon)s</span><p>%(description)s</p>"
#: snikket_web/templates/admin_create_invite_form.html:34 #: snikket_web/templates/admin_create_invite_form.html:34
#: snikket_web/templates/admin_edit_user.html:38 #: snikket_web/templates/admin_edit_user.html:38
@@ -683,11 +685,11 @@ msgstr ""
"layanan Snikket Anda." "layanan Snikket Anda."
#: snikket_web/templates/admin_create_invite_form.html:38 #: snikket_web/templates/admin_create_invite_form.html:38
#, fuzzy, python-format #, python-format
#| msgid "<strong>%(title)s%(icon)s</strong><p>%(description)s</p>"
msgid "" msgid ""
"<span class=\"access-level\">%(title)s%(icon)s</span><p>%(description)s</p>" "<span class=\"access-level\">%(title)s%(icon)s</span><p>%(description)s</p>"
msgstr "<strong>%(title)s%(icon)s</strong><p>%(description)s</p>" msgstr ""
"<span class=\"access-level\">%(title)s%(icon)s</span><p>%(description)s</p>"
#: snikket_web/templates/admin_debug_user.html:8 #: snikket_web/templates/admin_debug_user.html:8
#, python-format #, python-format
@@ -804,7 +806,7 @@ msgstr "Grup chat"
#: snikket_web/templates/admin_edit_circle.html:39 #: snikket_web/templates/admin_edit_circle.html:39
msgid "These group chats will be available to all members of the circle." msgid "These group chats will be available to all members of the circle."
msgstr "Grup chat ini akan tersedia untuk semua anggota lingkaran." msgstr "Grup chat ini akan tersedia untuk semua anggota kelompok."
#: snikket_web/templates/admin_edit_circle.html:53 #: snikket_web/templates/admin_edit_circle.html:53
#, python-format #, python-format
@@ -813,7 +815,7 @@ msgstr "Hapus grup chat '%(name)s'"
#: snikket_web/templates/admin_edit_circle.html:61 #: snikket_web/templates/admin_edit_circle.html:61
msgid "This circle currently has no group chats." msgid "This circle currently has no group chats."
msgstr "Lingkaran ini sedang tidak memiliki grup chat." msgstr "kelompok ini sedang tidak memiliki grup chat."
#: snikket_web/templates/admin_edit_circle.html:64 #: snikket_web/templates/admin_edit_circle.html:64
msgid "Add group chat" msgid "Add group chat"
@@ -825,7 +827,7 @@ msgstr "Anggota kelompok"
#: snikket_web/templates/admin_edit_circle.html:68 #: snikket_web/templates/admin_edit_circle.html:68
msgid "All members of the circle will see each other in their contact list." msgid "All members of the circle will see each other in their contact list."
msgstr "Semua anggota lingkaran akan saling terlihat di daftar kontak mereka." msgstr "Semua anggota kelompok akan saling terlihat di daftar kontak mereka."
#: snikket_web/templates/admin_edit_circle.html:84 #: snikket_web/templates/admin_edit_circle.html:84
msgid "The user has been deleted from the server." msgid "The user has been deleted from the server."
@@ -876,10 +878,8 @@ msgid "Link"
msgstr "Tautan" msgstr "Tautan"
#: snikket_web/templates/admin_edit_invite.html:16 #: snikket_web/templates/admin_edit_invite.html:16
#, fuzzy
#| msgid "Invitation type"
msgid "Invitation to Snikket" msgid "Invitation to Snikket"
msgstr "Jenis undangan" msgstr "Undangan Snikket"
#: snikket_web/templates/admin_edit_invite.html:23 #: snikket_web/templates/admin_edit_invite.html:23
#: snikket_web/templates/admin_home.html:19 #: snikket_web/templates/admin_home.html:19
@@ -1093,7 +1093,7 @@ msgstr "Kadaluarsa"
#: snikket_web/templates/admin_invites.html:24 #: snikket_web/templates/admin_invites.html:24
msgid "Comment" msgid "Comment"
msgstr "" msgstr "Komentar"
#: snikket_web/templates/admin_invites.html:46 #: snikket_web/templates/admin_invites.html:46
msgid "Show invite details" msgid "Show invite details"
@@ -1104,10 +1104,8 @@ msgid "Copy invite link to clipboard"
msgstr "Salin tautan undangan ke papan klip" msgstr "Salin tautan undangan ke papan klip"
#: snikket_web/templates/admin_invites.html:52 #: snikket_web/templates/admin_invites.html:52
#, fuzzy
#| msgid "New invitation link"
msgid "Share invitation link" msgid "Share invitation link"
msgstr "Tautan undangan baru" msgstr "Bagikan tautan undangan"
#: snikket_web/templates/admin_invites.html:55 #: snikket_web/templates/admin_invites.html:55
msgid "Delete invitation" msgid "Delete invitation"
@@ -1203,28 +1201,24 @@ msgid "Storage used by shared files"
msgstr "Penyimpanan yang digunakan oleh file bersama" msgstr "Penyimpanan yang digunakan oleh file bersama"
#: snikket_web/templates/admin_system.html:79 #: snikket_web/templates/admin_system.html:79
#, fuzzy
#| msgid "Update user"
msgid "Active users" msgid "Active users"
msgstr "Memperbarui pengguna" msgstr "Pengguna aktif"
#: snikket_web/templates/admin_system.html:83 #: snikket_web/templates/admin_system.html:83
#, fuzzy
#| msgid "Connected devices"
msgid "Connected now:" msgid "Connected now:"
msgstr "Perangkat terhubung" msgstr "Terhubung sekarang:"
#: snikket_web/templates/admin_system.html:88 #: snikket_web/templates/admin_system.html:88
msgid "Past 24 hours:" msgid "Past 24 hours:"
msgstr "" msgstr "24 jam terakhir:"
#: snikket_web/templates/admin_system.html:89 #: snikket_web/templates/admin_system.html:89
msgid "Past 7 days:" msgid "Past 7 days:"
msgstr "" msgstr "7 hari terakhir:"
#: snikket_web/templates/admin_system.html:90 #: snikket_web/templates/admin_system.html:90
msgid "Past 30 days:" msgid "Past 30 days:"
msgstr "" msgstr "30 hari terakhir:"
#: snikket_web/templates/admin_system.html:97 #: snikket_web/templates/admin_system.html:97
msgid "Broadcast message" msgid "Broadcast message"
@@ -1720,7 +1714,7 @@ msgstr "Salin tautan"
#: snikket_web/templates/library.j2:43 #: snikket_web/templates/library.j2:43
msgid "Share" msgid "Share"
msgstr "" msgstr "Bagikan"
#: snikket_web/templates/library.j2:125 #: snikket_web/templates/library.j2:125
msgid "Invalid input" msgid "Invalid input"
@@ -1747,14 +1741,13 @@ msgid "Like normal users and can access the admin panel in the web portal."
msgstr "Seperti pengguna biasa dan dapat mengakses panel admin di portal web." msgstr "Seperti pengguna biasa dan dapat mengakses panel admin di portal web."
#: snikket_web/templates/library.j2:184 #: snikket_web/templates/library.j2:184
#, fuzzy
#| msgid "This invitation link can only be used once and is then depleted."
msgid "Invite a single person (invitation link can only be used once)." msgid "Invite a single person (invitation link can only be used once)."
msgstr "Tautan undangan ini hanya dapat digunakan satu kali." msgstr "Undang satu orang (tautan undangan hanya dapat digunakan satu kali)."
#: snikket_web/templates/library.j2:186 #: snikket_web/templates/library.j2:186
msgid "Invite a group of people (invitation link can be used multiple times)." msgid "Invite a group of people (invitation link can be used multiple times)."
msgstr "" msgstr ""
"Undang sekelompok orang (tautan undangan dapat digunakan berulang kali)."
#: snikket_web/templates/login.html:5 #: snikket_web/templates/login.html:5
msgid "Snikket Login" msgid "Snikket Login"
@@ -1826,16 +1819,16 @@ msgid "Operation successful"
msgstr "Operasi berhasil" msgstr "Operasi berhasil"
#: snikket_web/templates/user_home.html:11 #: snikket_web/templates/user_home.html:11
#, fuzzy
#| msgid "Moving to Snikket?"
msgid "Welcome to Snikket!" msgid "Welcome to Snikket!"
msgstr "Pindahkan ke Snikket?" msgstr "Selamat datang di Snikket!"
#: snikket_web/templates/user_home.html:12 #: snikket_web/templates/user_home.html:12
msgid "" msgid ""
"Now your Snikket instance is up and running, the next step is to invite " "Now your Snikket instance is up and running, the next step is to invite "
"people to join it. Family, friends, colleagues... you choose!" "people to join it. Family, friends, colleagues... you choose!"
msgstr "" msgstr ""
"Layanan Snikket Anda sudah aktif dan berjalan, langkah berikutnya adalah "
"mengundang orang untuk bergabung. Keluarga, teman, kolega... Silahkan pilih!"
#: snikket_web/templates/user_home.html:19 #: snikket_web/templates/user_home.html:19
msgid "Your account" msgid "Your account"

View File

@@ -8,14 +8,14 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-04-30 10:52+0100\n" "POT-Creation-Date: 2024-08-11 16:36+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n" "Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.10.3\n" "Generated-By: Babel 2.16.0\n"
#: snikket_web/admin.py:69 snikket_web/templates/admin_delete_user.html:10 #: snikket_web/admin.py:69 snikket_web/templates/admin_delete_user.html:10
#: snikket_web/templates/admin_edit_circle.html:73 #: snikket_web/templates/admin_edit_circle.html:73
@@ -334,7 +334,7 @@ msgid ""
msgstr "" msgstr ""
#: snikket_web/invite.py:299 snikket_web/templates/unauth.html:18 #: snikket_web/invite.py:299 snikket_web/templates/unauth.html:18
#: snikket_web/user.py:189 #: snikket_web/user.py:192
msgid "Error" msgid "Error"
msgstr "" msgstr ""
@@ -406,29 +406,29 @@ msgstr ""
msgid "Upload" msgid "Upload"
msgstr "" msgstr ""
#: snikket_web/user.py:122 #: snikket_web/user.py:125
msgid "Incorrect password." msgid "Incorrect password."
msgstr "" msgstr ""
#: snikket_web/user.py:126 #: snikket_web/user.py:129
msgid "Password changed" msgid "Password changed"
msgstr "" msgstr ""
#: snikket_web/user.py:134 #: snikket_web/user.py:137
msgid "" msgid ""
"The chosen avatar is too big. To be able to upload larger avatars, please" "The chosen avatar is too big. To be able to upload larger avatars, please"
" use the app." " use the app."
msgstr "" msgstr ""
#: snikket_web/user.py:181 #: snikket_web/user.py:184
msgid "Profile updated" msgid "Profile updated"
msgstr "" msgstr ""
#: snikket_web/user.py:195 #: snikket_web/user.py:198
msgid "Export" msgid "Export"
msgstr "" msgstr ""
#: snikket_web/user.py:213 #: snikket_web/user.py:216
msgid "You currently have no account data to export." msgid "You currently have no account data to export."
msgstr "" msgstr ""

View File

@@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: translations@snikket.org\n" "Report-Msgid-Bugs-To: translations@snikket.org\n"
"POT-Creation-Date: 2024-04-30 10:52+0100\n" "POT-Creation-Date: 2024-04-30 10:52+0100\n"
"PO-Revision-Date: 2024-05-02 21:15+0000\n" "PO-Revision-Date: 2024-07-18 17:07+0000\n"
"Last-Translator: Andrey <Elisoandr@gmail.com>\n" "Last-Translator: Andrey <Elisoandr@gmail.com>\n"
"Language-Team: Russian <http://i18n.sotecware.net/projects/snikket/" "Language-Team: Russian <http://i18n.sotecware.net/projects/snikket/"
"web-portal/ru/>\n" "web-portal/ru/>\n"
@@ -38,7 +38,7 @@ msgstr "Уровень доступа"
#: snikket_web/admin.py:79 snikket_web/admin.py:297 #: snikket_web/admin.py:79 snikket_web/admin.py:297
msgid "Limited" msgid "Limited"
msgstr "Ограниченное" msgstr "Ограниченный"
#: snikket_web/admin.py:80 snikket_web/admin.py:298 #: snikket_web/admin.py:80 snikket_web/admin.py:298
msgid "Normal user" msgid "Normal user"

View File

@@ -97,7 +97,10 @@ class ImportAccountDataForm(BaseForm):
@client.require_session() @client.require_session()
async def index() -> str: async def index() -> str:
user_info = await client.get_user_info() user_info = await client.get_user_info()
metrics = await client.get_system_metrics() try:
metrics = await client.get_system_metrics()
except (werkzeug.exceptions.Unauthorized, werkzeug.exceptions.Forbidden):
metrics = {}
return await render_template( return await render_template(
"user_home.html", "user_home.html",
user_info=user_info, user_info=user_info,