feat: refactor message handling to use MessageName constants for improved internationalisation support

This commit is contained in:
siujamo
2026-03-24 12:23:13 +08:00
parent 776ddd28c1
commit 08c18fea90
33 changed files with 391 additions and 152 deletions
+20 -2
View File
@@ -19,10 +19,28 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
tree.multiple-roots=
user.not-found=User with ID [{0}] not found.
security.context-user-not-found=Cannot retrieve user information from security context.
role.not-exists=Role does not exist in database.
captcha.generate-failed=
auth.provider.password-not-configured=Username or password is incorrect.
auth.provider.bad-credentials=Username or password is incorrect.
auth.provider.failed=Authentication failed, please try again later.
auth.login.failed=Cannot perform login due to server error.
auth.login.captcha-incorrect=Captcha is incorrect.
auth.login.captcha-not-found=Captcha not found.
authority.not-found=Authority with ID [{0}] not found.
authority.code-used=Authority code [{0}] is already in use.
asset.upload-failed=Failed to upload file: {0}
asset.delete-forbidden=You are not able to delete an asset that is not uploaded by you.
asset.invalid-prefix=Prefix must not be empty and must not start with '/' or '..'.
asset.not-empty = File cannot be empty.
authority.deleted = Authority [{0}] deleted.
user.password-reset-success = Password has been reset.
user.deleted = User [{0}] deleted.
user.deleted = User [{0}] deleted.
role.not-found=Role with ID {0} not found.
role.deleted=Role [{0}] deleted.
request.role.name.not-empty=Name of the role cannot be empty.