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 0000000..4a214e3 Binary files /dev/null and b/paramecio/modules/admin2/languages/en-US/LC_MESSAGES/admin2.mo differ 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 0000000..500c33a Binary files /dev/null and b/paramecio/modules/admin2/languages/es-ES/LC_MESSAGES/admin2.mo differ diff --git a/paramecio/modules/admin2/languages/es-ES/LC_MESSAGES/admin2.po b/paramecio/modules/admin2/languages/es-ES/LC_MESSAGES/admin2.po new file mode 100644 index 0000000..da2667d --- /dev/null +++ b/paramecio/modules/admin2/languages/es-ES/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: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']