Files
opensourcepos/app/Language/bg/Login.php
objecttothis dec736ad6c Bugfix: Fix problems with migration UI in login (#4589)
* refactor(login): rename methods and keys to camelCase, add initialization keys

- Rename snake_case methods to camelCase in MY_Migration and callers:
  is_latest() → isLatest(), migrate_to_ci4() → migrateToCI4(),
  get_latest_migration() → getLatestMigration(),
  get_current_version() → getCurrentVersion()
- Rename snake_case array keys to camelCase in Login controller:
  has_errors → hasErrors, is_new_install → isNewInstall,
  is_latest → isLatest, latest_version → latestVersion,
  gcaptcha_enabled → gcaptchaEnabled
- Add initialization_required, initialization_message, initialize keys
  to all language files to support new install flow messaging

Signed-off-by: Travis Garrison <travis@chiraqbookstore.com>

* refactor(login): move auth validation before migration, reorder language keys alphabetically

- Validate credentials with login_check rule before attempting migration
- Return 401 with invalid credentials message on validation failure
- Alphabetically reorder and align language file keys across all locales
- Add new migration status keys: migrating_database, migration_complete,
  migration_complete_login, migration_complete_migrate
- Remove deprecated keys: migration_needed, migration_initializing,
  migration_running, migration_required

Signed-off-by: Travis Garrison <travis@chiraqbookstore.com>

---------

Signed-off-by: Travis Garrison <travis@chiraqbookstore.com>
Co-authored-by: Travis Garrison <travis@chiraqbookstore.com>
2026-07-07 10:35:25 +04:00

31 lines
1.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
return [
"gcaptcha" => "Не съм робот.",
"go" => "Go",
"initialization_message" => "",
"initialization_required" => "",
"initialize" => "",
"invalid_gcaptcha" => "Invalid I'm not a robot.",
"invalid_installation" => "The installation is not correct, check your php.ini file.",
"invalid_username_and_password" => "Invalid Username or Password.",
"login" => "Login",
"logout" => "",
"migrating_database" => "Мигриране на базата данни",
"migration_auth_message" => "",
"migration_complete" => "",
"migration_complete_login" => "",
"migration_complete_migrate" => "Базата данни е мигрирана успешно!",
"migration_complete_redirect" => "",
"migration_error_connection" => "",
"migration_failed" => "",
"migration_initializing" => "",
"migration_needed" => "",
"migration_required" => "",
"migration_running" => "",
"password" => "Password",
"required_username" => "",
"username" => "Username",
"welcome" => ""
];