Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

## [Unreleased]

### Added
- The `comments.added` and `comments.deleted` texts, in English and Spanish, for the flash messages of the framework's `DemoWeb` comment controller. They were called but never defined, so the page showed the key names (#216).

### Changed
- The translations in `shared/resources/lang/{en,es}` are split by topic, as the `DemoWeb` and `DemoApi` module templates of quantum/framework 3.1.2 expect: `pages`, `auth`, `account`, `posts`, `comments`, `actions` and `lang`. The texts are unchanged. `common` keeps the keys the framework reads by name: `activate_account`, `reset_password`, `otp`, `pagination` and the field labels the validator reads as `common.<field>`. The email views in `shared/views/email` use the new keys, for example `auth.activate` instead of `common.activate`. A module generated by framework 3.1.2 or newer needs these files; modules generated earlier call the old `common` keys (#216).

## [3.1.1] - 2026-11-03

### Added
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"type": "project",
"require": {
"php": "^8.1",
"quantum/framework": "^3.1",
"quantum/framework": "3.1.*@dev",
Comment thread
armanist marked this conversation as resolved.
Resolved
"fakerphp/faker": "^1.15",
"bluemmb/faker-picsum-photos-provider": "^2.0",
"ottaviano/faker-gravatar": "^0.3.0",
Expand Down
6 changes: 6 additions & 0 deletions shared/resources/lang/en/account.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return [
'account_settings' => 'Account Settings',
'profile' => 'Profile',
];
14 changes: 14 additions & 0 deletions shared/resources/lang/en/actions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

return [
'send' => 'Send',
'reset' => 'Reset',
'cancel' => 'Cancel',
'save' => 'Save',
'delete' => 'Delete',
'edit' => 'Edit',
'yes' => 'Yes',
'created_successfully' => 'Created successfully',
'updated_successfully' => 'Updated successfully',
'deleted_successfully' => 'Deleted successfully',
];
19 changes: 19 additions & 0 deletions shared/resources/lang/en/auth.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

return [
'signin' => 'Sign In',
'signup' => 'Sign Up',
'signout' => 'Sign Out',
'activate' => 'Activate',
'activation_email_content' => 'Activate your account by clicking the button below',
'account_activated' => 'Account is activated',
'remember_me' => 'Remember Me',
'forget_password' => 'Forgot password?',
'reset_password_email_content' => 'Reset your password by clicking the button below',
'check_email' => 'Check your email to reset your password',
'check_email_signup' => 'Registration was successful, please check your email',
'successfully_signed_up' => 'Successfully signed up',
'verification_code' => 'Verification Code',
'two_fa' => '2 Factor Authentication',
'resend_otp' => 'Resend otp',
];
11 changes: 11 additions & 0 deletions shared/resources/lang/en/comments.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
'submit_comment' => 'Comment',
'title' => 'Comments',
'login_to_comment' => 'Login to comment',
'leave_a_comment' => 'Leave a comment',
'no_comments' => 'No comments',
'added' => 'Comment added',
'deleted' => 'Comment deleted',
];
88 changes: 0 additions & 88 deletions shared/resources/lang/en/common.php
Original file line number Diff line number Diff line change
@@ -1,112 +1,24 @@
<?php

return [

// ───── About framework ───────────────────────────────────
'description' => 'Very fast and extremely simple, next generation PHP MVC framework with modular structure.',
'about_framework' => 'Quantum is a free, open-source PHP web framework under MIT license, specially designed to develop very fast web applications with modular structure. With Quantum it’s easy to start any kind of project immediately, whether it\'s regular websites or complex API based service, at the same time it allows to keep the code clean, organized through all the development process.',
'version' => 'Version',
'current_version' => 'Current version is: {%1}',
'cli_commands' => 'Quantum CLI Commands',

// ───── Star on GitHub ─────────────────────────────────────
'star' => [
'message' => 'Would you like to show some love by starring Quantum on GitHub?',
'button' => 'Star on GitHub',
'badge_alt' => 'GitHub stars',
],

// ───── Navigation ─────────────────────────────────────────
'home' => 'Home',
'about' => 'About',
'installation' => 'Installation',
'learn_more' => 'Learn More',

// ───── Project creation / commands ───────────────────────
'create_project' => 'Create new project',
'run_server' => 'Run the project',

// ───── Auth / User Management ─────────────────────────────
'captcha' => 'Captcha',
'signin' => 'Sign In',
'signup' => 'Sign Up',
'activate' => 'Activate',
'activation_email_content' => 'Activate your account by clicking the button below',
'activate_account' => 'Activate account',
'account_activated' => 'Account is activated',
'signout' => 'Sign Out',
'remember_me' => 'Remember Me',
'forget_password' => 'Forgot password?',
'reset_password' => 'Reset password',
'reset_password_email_content' => 'Reset your password by clicking the button below',
'repeat_password' => 'Repeat password',
'check_email_signup' => 'Registration was successful, please check your email',
'check_email' => 'Check your email to reset your password',
'successfully_signed_up' => 'Successfully signed up',

// ───── User fields ─────────────────────────────────────────
'email' => 'Email',
'token' => 'Token',
'password' => 'Password',
'verification_code' => 'Verification Code',
'new_password' => 'New password',
'firstname' => 'First name',
'lastname' => 'Last name',

// ───── Buttons ────────────────────────────────────────────
'send' => 'Send',
'reset' => 'Reset',
'cancel' => 'Cancel',
'save' => 'Save',
'delete' => 'Delete',
'edit' => 'Edit',
'yes' => 'Yes',

// ───── Account settings ───────────────────────────────────
'account_settings' => 'Account Settings',
'profile' => 'Profile',
'current_password' => 'Current Password',
'confirm_password' => 'Confirm Password',

// ───── Posts ──────────────────────────────────────────────
'posts' => 'Posts',
'my_posts' => 'My Posts',
'new_post' => 'New Post',
'title' => 'Title',
'content' => 'Content',
'image' => 'image',
'post' => 'post',

'created_successfully' => 'Created successfully',
'updated_successfully' => 'Updated successfully',
'deleted_successfully' => 'Deleted successfully',
'update_post' => 'Update Post',
'confirm_delete' => 'Are you sure you want to delete the {%1} ?',
'post_not_found' => 'Post not found',
'no_posts' => 'No posts found',
'try_creating' => 'Try creating a new one',

// ───── Pagination ─────────────────────────────────────────
'pagination' => [
'next' => 'Next &raquo;',
'prev' => '&laquo; Prev',
],

// ───── Comments ───────────────────────────────────────────
'comments' => [
'submit_comment' => 'Comment',
'title' => 'Comments',
'login_to_comment' => 'Login to comment',
'leave_a_comment' => 'Leave a comment',
'no_comments' => 'No comments',
],

// ───── 2FA / OTP ──────────────────────────────────────────
'otp' => 'One Time Password',
'two_fa' => '2 Factor Authentication',
'resend_otp' => 'Resend otp',

// ───── Languages ──────────────────────────────────────────
'en' => 'English',
'es' => 'Spanish',
];
6 changes: 6 additions & 0 deletions shared/resources/lang/en/lang.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return [
'en' => 'English',
'es' => 'Spanish',
];
20 changes: 20 additions & 0 deletions shared/resources/lang/en/pages.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

return [
'description' => 'Very fast and extremely simple, next generation PHP MVC framework with modular structure.',
'about_framework' => 'Quantum is a free, open-source PHP web framework under MIT license, specially designed to develop very fast web applications with modular structure. With Quantum it’s easy to start any kind of project immediately, whether it\'s regular websites or complex API based service, at the same time it allows to keep the code clean, organized through all the development process.',
'version' => 'Version',
'current_version' => 'Current version is: {%1}',
'cli_commands' => 'Quantum CLI Commands',
'star' => [
'message' => 'Would you like to show some love by starring Quantum on GitHub?',
'button' => 'Star on GitHub',
'badge_alt' => 'GitHub stars',
],
'home' => 'Home',
'about' => 'About',
'installation' => 'Installation',
'learn_more' => 'Learn More',
'create_project' => 'Create new project',
'run_server' => 'Run the project',
];
13 changes: 13 additions & 0 deletions shared/resources/lang/en/posts.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

return [
'posts' => 'Posts',
'my_posts' => 'My Posts',
'new_post' => 'New Post',
'update_post' => 'Update Post',
'post' => 'post',
'post_not_found' => 'Post not found',
'no_posts' => 'No posts found',
'try_creating' => 'Try creating a new one',
'confirm_delete' => 'Are you sure you want to delete the {%1} ?',
];
6 changes: 6 additions & 0 deletions shared/resources/lang/es/account.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return [
'account_settings' => 'Configuración de la cuenta',
'profile' => 'Perfil',
];
14 changes: 14 additions & 0 deletions shared/resources/lang/es/actions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

return [
'send' => 'Enviar',
'reset' => 'Restablecer',
'cancel' => 'Cancelar',
'save' => 'Guardar',
'delete' => 'Eliminar',
'edit' => 'Editar',
'yes' => 'Sí',
'created_successfully' => 'Creado exitosamente',
'updated_successfully' => 'Actualizado exitosamente',
'deleted_successfully' => 'Eliminado exitosamente',
];
19 changes: 19 additions & 0 deletions shared/resources/lang/es/auth.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

return [
'signin' => 'Iniciar sesión',
'signup' => 'Registrarse',
'signout' => 'Cerrar sesión',
'activate' => 'Activar',
'activation_email_content' => 'Activa tu cuenta haciendo clic en el botón de abajo',
'account_activated' => 'La cuenta ha sido activada',
'remember_me' => 'Recuérdame',
'forget_password' => '¿Olvidaste tu contraseña?',
'reset_password_email_content' => 'Restablece tu contraseña haciendo clic en el botón de abajo',
'check_email' => 'Revisa tu correo electrónico para restablecer tu contraseña',
'check_email_signup' => 'Registro exitoso, por favor revisa tu correo electrónico',
'successfully_signed_up' => 'Registrado con éxito',
'verification_code' => 'Código de verificación',
'two_fa' => 'Autenticación de dos factores',
'resend_otp' => 'Reenviar OTP',
];
11 changes: 11 additions & 0 deletions shared/resources/lang/es/comments.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
'submit_comment' => 'Comentar',
'title' => 'Comentarios',
'login_to_comment' => 'Inicia sesión para comentar',
'leave_a_comment' => 'Deja un comentario',
'no_comments' => 'Sin comentarios',
'added' => 'Comentario añadido',
'deleted' => 'Comentario eliminado',
];
88 changes: 0 additions & 88 deletions shared/resources/lang/es/common.php
Original file line number Diff line number Diff line change
@@ -1,112 +1,24 @@
<?php

return [

// ───── About framework ───────────────────────────────────
'description' => 'Framework MVC en PHP de nueva generación, muy rápido y extremadamente simple, con una estructura modular.',
'about_framework' => 'Quantum es un framework web PHP gratuito y de código abierto bajo la licencia MIT, diseñado especialmente para desarrollar aplicaciones web muy rápidas con una estructura modular. Con Quantum es fácil iniciar de inmediato cualquier tipo de proyecto, ya sean sitios web tradicionales o servicios complejos basados en API, y al mismo tiempo permite mantener el código limpio y organizado durante todo el proceso de desarrollo.',
'version' => 'Versión',
'current_version' => 'La versión actual es: {%1}',
'cli_commands' => 'Comandos CLI de Quantum',

// ───── Star on GitHub ─────────────────────────────────────
'star' => [
'message' => '¿Te gustaría mostrar tu apoyo dando una estrella a Quantum en GitHub?',
'button' => 'Dar una estrella en GitHub',
'badge_alt' => 'Estrellas en GitHub',
],

// ───── Navigation ─────────────────────────────────────────
'home' => 'Inicio',
'about' => 'Acerca de',
'installation' => 'Instalación',
'learn_more' => 'Aprender más',

// ───── Project creation / commands ───────────────────────
'create_project' => 'Crear nuevo proyecto',
'run_server' => 'Ejecutar el proyecto',

// ───── Auth / User Management ─────────────────────────────
'captcha' => 'Captcha',
'signin' => 'Iniciar sesión',
'signup' => 'Registrarse',
'activate' => 'Activar',
'activation_email_content' => 'Activa tu cuenta haciendo clic en el botón de abajo',
'activate_account' => 'Activar cuenta',
'account_activated' => 'La cuenta ha sido activada',
'signout' => 'Cerrar sesión',
'remember_me' => 'Recuérdame',
'forget_password' => '¿Olvidaste tu contraseña?',
'reset_password' => 'Restablecer contraseña',
'reset_password_email_content' => 'Restablece tu contraseña haciendo clic en el botón de abajo',
'repeat_password' => 'Repetir contraseña',
'check_email_signup' => 'Registro exitoso, por favor revisa tu correo electrónico',
'check_email' => 'Revisa tu correo electrónico para restablecer tu contraseña',
'successfully_signed_up' => 'Registrado con éxito',

// ───── User fields ─────────────────────────────────────────
'email' => 'Correo electrónico',
'token' => 'Token',
'password' => 'Contraseña',
'verification_code' => 'Código de verificación',
'new_password' => 'Nueva contraseña',
'firstname' => 'Nombre',
'lastname' => 'Apellido',

// ───── Buttons ────────────────────────────────────────────
'send' => 'Enviar',
'reset' => 'Restablecer',
'cancel' => 'Cancelar',
'save' => 'Guardar',
'delete' => 'Eliminar',
'edit' => 'Editar',
'yes' => 'Sí',

// ───── Account settings ───────────────────────────────────
'account_settings' => 'Configuración de la cuenta',
'profile' => 'Perfil',
'current_password' => 'Contraseña actual',
'confirm_password' => 'Confirmar contraseña',

// ───── Posts ──────────────────────────────────────────────
'posts' => 'Publicaciones',
'my_posts' => 'Mis publicaciones',
'new_post' => 'Nueva publicación',
'title' => 'Título',
'content' => 'Contenido',
'image' => 'Imagen',
'post' => 'Publicación',

'created_successfully' => 'Creado exitosamente',
'updated_successfully' => 'Actualizado exitosamente',
'deleted_successfully' => 'Eliminado exitosamente',
'update_post' => 'Actualizar publicación',
'confirm_delete' => '¿Estás seguro de que deseas eliminar el {%1} ?',
'post_not_found' => 'Publicación no encontrada',
'no_posts' => 'No se encontraron publicaciones',
'try_creating' => 'Intenta crear una nueva',

// ───── Pagination ─────────────────────────────────────────
'pagination' => [
'next' => 'Siguiente &raquo;',
'prev' => '&laquo; Anterior',
],

// ───── Comments ───────────────────────────────────────────
'comments' => [
'submit_comment' => 'Comentar',
'title' => 'Comentarios',
'login_to_comment' => 'Inicia sesión para comentar',
'leave_a_comment' => 'Deja un comentario',
'no_comments' => 'Sin comentarios',
],

// ───── 2FA / OTP ──────────────────────────────────────────
'otp' => 'Contraseña de un solo uso',
'two_fa' => 'Autenticación de dos factores',
'resend_otp' => 'Reenviar OTP',

// ───── Languages ──────────────────────────────────────────
'en' => 'Inglés',
'es' => 'Español',
];
Loading
Loading