From f185be25a87c944189819c96c630d36a99834f94 Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Fri, 21 Mar 2025 00:23:20 +0100 Subject: [PATCH] Fixes in languages --- paramecio/modules/admin2/ausers.py | 6 +- paramecio/modules/admin2/languages/admin2.pot | 107 ++++++++++++++++++ .../languages/en-US/LC_MESSAGES/admin2.mo | Bin 0 -> 1482 bytes .../languages/en-US/LC_MESSAGES/admin2.po | 107 ++++++++++++++++++ .../languages/es-ES/LC_MESSAGES/admin2.mo | Bin 0 -> 1557 bytes .../languages/es-ES/LC_MESSAGES/admin2.po | 107 ++++++++++++++++++ .../modules/admin2/templates/access.phtml | 4 +- .../modules/admin2/templates/layout.phtml | 10 +- .../modules/admin2/templates/login.phtml | 18 +-- .../modules/admin2/templates/need_auth.phtml | 40 +++---- .../modules/admin2/templates/signup.phtml | 22 ++-- 11 files changed, 377 insertions(+), 44 deletions(-) create mode 100644 paramecio/modules/admin2/languages/admin2.pot create mode 100644 paramecio/modules/admin2/languages/en-US/LC_MESSAGES/admin2.mo create mode 100644 paramecio/modules/admin2/languages/en-US/LC_MESSAGES/admin2.po create mode 100644 paramecio/modules/admin2/languages/es-ES/LC_MESSAGES/admin2.mo create mode 100644 paramecio/modules/admin2/languages/es-ES/LC_MESSAGES/admin2.po diff --git a/paramecio/modules/admin2/ausers.py b/paramecio/modules/admin2/ausers.py index 3e30bba..1e078b9 100644 --- a/paramecio/modules/admin2/ausers.py +++ b/paramecio/modules/admin2/ausers.py @@ -37,7 +37,11 @@ if t.env.directories[1]!=tpl_path: """ #modules_admin.append(['menu_users', 'people-circle', True]) -modules_admin['admin_app.admin_users']=[_('Admin users'), 'people-circle', ['admin_app.admin_permissions']] +def admin_users(): + + return _('Admin users') + +modules_admin['admin_app.admin_users']=[admin_users, 'people-circle', ['admin_app.admin_permissions']] modules_admin_icons['admin_app.admin_users']='' diff --git a/paramecio/modules/admin2/languages/admin2.pot b/paramecio/modules/admin2/languages/admin2.pot new file mode 100644 index 0000000..fad7190 --- /dev/null +++ b/paramecio/modules/admin2/languages/admin2.pot @@ -0,0 +1,107 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-21 00:00+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: templates/layout.phtml:79 +msgid "Applications" +msgstr "" + +#: templates/layout.phtml:103 ausers.py:64 +msgid "Dark theme" +msgstr "" + +#: app.py:73 +msgid "Admin" +msgstr "" + +#: app.py:108 +msgid "Login" +msgstr "" + +#: app.py:125 +msgid "Signup" +msgstr "" + +#: app.py:136 +msgid "Invalid user and password" +msgstr "" + +#: app.py:186 +msgid "Code for complete login" +msgstr "" + +#: app.py:186 +msgid "" +"We send to you a code for activate your account using double authentication:" +msgstr "" + +#: app.py:263 +msgid "Sorry, cannot create the new user" +msgstr "" + +#: app.py:320 +msgid "Auth check" +msgstr "" + +#: ausers.py:40 ausers.py:86 +msgid "Admin users" +msgstr "" + +#: ausers.py:62 +msgid "Without privileges" +msgstr "" + +#: ausers.py:62 +msgid "Selected privileges" +msgstr "" + +#: ausers.py:62 +msgid "Administrator" +msgstr "" + +#: ausers.py:64 +msgid "Light theme" +msgstr "" + +#: ausers.py:66 +msgid "No" +msgstr "" + +#: ausers.py:66 +msgid "Yes" +msgstr "" + +#: ausers.py:132 +msgid "User not found" +msgstr "" + +#: ausers.py:137 +msgid "Users permissions" +msgstr "" + +#: ausers.py:142 +msgid "Edit" +msgstr "" + +#: ausers.py:144 +msgid "User access" +msgstr "" + +#: ausers.py:145 +msgid "Delete" +msgstr "" diff --git a/paramecio/modules/admin2/languages/en-US/LC_MESSAGES/admin2.mo b/paramecio/modules/admin2/languages/en-US/LC_MESSAGES/admin2.mo new file mode 100644 index 0000000000000000000000000000000000000000..4a214e38398343e3b5f74e075858997b15844fab GIT binary patch literal 1482 zcmeH_KTi}v7{*6Mh4T-He~8hPpkvzeJa;0st7 zJEN7+4?$vKXJc&aERC)97HVSQ^Dal=6IeOfcYZs&@4V0R&hFRYz84H*1aT4Z8F2~m z>;NW={)3Di1_!`n;2?McyZ{~tuYeWs21qrgdh1p22-XSM2d;zX!5pMIPeH2t62!$` zVLA=I0cqbhco}>LQvMh4B={XX1^xsZ;J_iqhQVbJ7t@%2fgO)N zNWPzgW2pPN1n(Z?3IHw z2N0yWJE#vfm2|Y(nR(%r^E>z22PcDdY%0$)9m}At!K)&)dE8dmOj0gA z&z0+F@5`1}6!!{#g5_Jb;1d1x8k2F*T`G>}Wj#~~P|zmji7nPL#U;)|nb13*8e7q! zZHutq^(vgtJNp>zh}lFeh6sZ?Yi^ua1#DeN-N)j_rukmVB zoeRbkg{Yz7uvfq)7{zD$!K3vu|DF$~;yelU6@<^_woTwX|63(HmU4Fe*uPmZ(RTY literal 0 HcmV?d00001 diff --git a/paramecio/modules/admin2/languages/en-US/LC_MESSAGES/admin2.po b/paramecio/modules/admin2/languages/en-US/LC_MESSAGES/admin2.po new file mode 100644 index 0000000..f0b2844 --- /dev/null +++ b/paramecio/modules/admin2/languages/en-US/LC_MESSAGES/admin2.po @@ -0,0 +1,107 @@ +# Paramecio admin2 language file +# Copyright (C) 2025 +# This file is distributed under the same license as the Paramecio package. +# Antonio de la Rosa , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-21 00:00+0100\n" +"PO-Revision-Date: 2025-03-21 00:02+0100\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: en_US\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 3.5\n" + +#: templates/layout.phtml:79 +msgid "Applications" +msgstr "Applications" + +#: templates/layout.phtml:103 ausers.py:64 +msgid "Dark theme" +msgstr "Dark theme" + +#: app.py:73 +msgid "Admin" +msgstr "Admin" + +#: app.py:108 +msgid "Login" +msgstr "Login" + +#: app.py:125 +msgid "Signup" +msgstr "Signup" + +#: app.py:136 +msgid "Invalid user and password" +msgstr "Invalid user and password" + +#: app.py:186 +msgid "Code for complete login" +msgstr "Code for complete login" + +#: app.py:186 +msgid "We send to you a code for activate your account using double authentication:" +msgstr "We send to you a code for activate your account using double authentication:" + +#: app.py:263 +msgid "Sorry, cannot create the new user" +msgstr "Sorry, cannot create the new user" + +#: app.py:320 +msgid "Auth check" +msgstr "Auth check" + +#: ausers.py:40 ausers.py:86 +msgid "Admin users" +msgstr "Admin users" + +#: ausers.py:62 +msgid "Without privileges" +msgstr "Without privileges" + +#: ausers.py:62 +msgid "Selected privileges" +msgstr "Selected privileges" + +#: ausers.py:62 +msgid "Administrator" +msgstr "Administrator" + +#: ausers.py:64 +msgid "Light theme" +msgstr "Light theme" + +#: ausers.py:66 +msgid "No" +msgstr "No" + +#: ausers.py:66 +msgid "Yes" +msgstr "Yes" + +#: ausers.py:132 +msgid "User not found" +msgstr "User not found" + +#: ausers.py:137 +msgid "Users permissions" +msgstr "Users permissions" + +#: ausers.py:142 +msgid "Edit" +msgstr "Edit" + +#: ausers.py:144 +msgid "User access" +msgstr "User access" + +#: ausers.py:145 +msgid "Delete" +msgstr "Delete" diff --git a/paramecio/modules/admin2/languages/es-ES/LC_MESSAGES/admin2.mo b/paramecio/modules/admin2/languages/es-ES/LC_MESSAGES/admin2.mo new file mode 100644 index 0000000000000000000000000000000000000000..500c33a2163a3b966e7e9187b8c31b02527d2e7b GIT binary patch literal 1557 zcmYk5zi%8x6vrnJNPH0TgI_{K;(-^Bg=2?t|}u6)17O z1tso}Ab#p8Zm)wsfwJ!id>{M`l=aWS*T8?k%izCY4_tatsVm?E5I<#b`wyIe5`P5o zH^35k4qJIHFCGJ(+kb?REl)63yW&bDO zb?|dg@;m_F1it~B`oJB`k3i8s12M__GAJ#_<7OYAE@4Pa*?%76_&V4Ak-DUow=g7D zlOHJOAeWqr)FQe_zqzDWOBkYgd`TT@J)ammzf&F9hxvaKqSw)RwO&=F$#gW%;#D2T zl#MytR~s&88aYpyn^Yx7rqUINw5k0*#W7D7b)|sp$$Q@e9(kf_fZDv zEaMR7|7GFG)i!UYfhzVB6GBtcL#DvUCptQGHEGn-7N)akrV<>_n|O#2pY<5aSI5PyA0hL;cVD5LWIInDpu^DZQfHSd=VP)H3X>;y>mnpWhsXUd zl3kt}S(I!-y-Ta<>a8SQOIBAXO}pvZ^>igoJ3Sp@GW6PpQqBoGd)gMYE;t#oo-E9} z#NqMQptG~RvvsP!vYd7{oQ+6786H;9iTotqtV(U{9h|ZDf#b*bho2_5PuGduh<&nU z(IxbuOSkt-?0lJg#+DnubgAzc2Tp6tw>pdFY7FJkzFK?Z7G0J%E)$bwC>rfTkIV>D z-&$&8c9fgK!7^Tsr?K0~%OOuRxscV~sk^X-_Ko3ydv3DlnQ)q|C^_u5@O9wXubPaV z&Yr=OS`A@WO=XQQ!3C#IT-a~ThkRiYI8qYSIkMm7VqQ>SET>>#A$Nl;lB_w04s7X( zOR_aj-EjiTYF%9E7IK0kn}*0%Mpq@h+^K%!P{^KUuZD~jQ!{(!d4e~!rEIY=bGv$q jHDxtURYMgY8pK>{)wxqMGdr?fd`, 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-21 00:00+0100\n" +"PO-Revision-Date: 2025-03-21 00:03+0100\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: es_ES\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 3.5\n" + +#: templates/layout.phtml:79 +msgid "Applications" +msgstr "Aplicaciones" + +#: templates/layout.phtml:103 ausers.py:64 +msgid "Dark theme" +msgstr "Tema oscuro" + +#: app.py:73 +msgid "Admin" +msgstr "Admin" + +#: app.py:108 +msgid "Login" +msgstr "Login" + +#: app.py:125 +msgid "Signup" +msgstr "Registrarse" + +#: app.py:136 +msgid "Invalid user and password" +msgstr "Nombre de usuario o contraseña inválida" + +#: app.py:186 +msgid "Code for complete login" +msgstr "Código para completar login" + +#: app.py:186 +msgid "We send to you a code for activate your account using double authentication:" +msgstr "Te enviáremos un código para activar tu cuenta usando doble autenticación:" + +#: app.py:263 +msgid "Sorry, cannot create the new user" +msgstr "Lo siendo, no puedo crear el nuevo usuario." + +#: app.py:320 +msgid "Auth check" +msgstr "Verificar login" + +#: ausers.py:40 ausers.py:86 +msgid "Admin users" +msgstr "Administrar usuarios" + +#: ausers.py:62 +msgid "Without privileges" +msgstr "Sin privilegios" + +#: ausers.py:62 +msgid "Selected privileges" +msgstr "Privilegios seleccionados" + +#: ausers.py:62 +msgid "Administrator" +msgstr "Administrador" + +#: ausers.py:64 +msgid "Light theme" +msgstr "Thema luminoso" + +#: ausers.py:66 +msgid "No" +msgstr "No" + +#: ausers.py:66 +msgid "Yes" +msgstr "Sí" + +#: ausers.py:132 +msgid "User not found" +msgstr "Usuario no encontrado" + +#: ausers.py:137 +msgid "Users permissions" +msgstr "Permisos de usuario" + +#: ausers.py:142 +msgid "Edit" +msgstr "Editar" + +#: ausers.py:144 +msgid "User access" +msgstr "Acceso de usuario" + +#: ausers.py:145 +msgid "Delete" +msgstr "Borrar" diff --git a/paramecio/modules/admin2/templates/access.phtml b/paramecio/modules/admin2/templates/access.phtml index 289213f..c30c154 100644 --- a/paramecio/modules/admin2/templates/access.phtml +++ b/paramecio/modules/admin2/templates/access.phtml @@ -1,7 +1,7 @@ <%inherit file="layout.phtml"/> <%block name="content">

${tlang('User')}: ${user['username'].capitalize()}

-

${tlang('Users')} >> ${tlang('Permissions')}

+

${_('Users')} >> ${_('Permissions')}

${privileges_admin|n} -

${tlang('Users')} >> ${tlang('Permissions')}

+

${_('Users')} >> ${_('Permissions')}

diff --git a/paramecio/modules/admin2/templates/layout.phtml b/paramecio/modules/admin2/templates/layout.phtml index 9a42750..8ee4f45 100644 --- a/paramecio/modules/admin2/templates/layout.phtml +++ b/paramecio/modules/admin2/templates/layout.phtml @@ -76,19 +76,27 @@ lang_selected=session['lang']