diff --git a/app/Models/Enums/MallItemPricingEnum.php b/app/Models/Enums/MallItemPricingEnum.php index eeaa6ea..d470050 100644 --- a/app/Models/Enums/MallItemPricingEnum.php +++ b/app/Models/Enums/MallItemPricingEnum.php @@ -7,11 +7,19 @@ enum MallItemPricingEnum: string case CASH = 'CASH'; case MILEAGE = 'MILEAGE'; - public function description(): string + public function name(): string { return match($this) { self::CASH => __('mall/main.currency.cash'), self::MILEAGE => __('mall/main.currency.mileage') }; } + + public function longName(): string + { + return match($this) { + self::CASH => __('mall/main.currency.cash_long'), + self::MILEAGE => __('mall/main.currency.mileage_long') + }; + } } diff --git a/lang/en/app/main.php b/lang/en/app/main.php index 2556434..4ab0054 100644 --- a/lang/en/app/main.php +++ b/lang/en/app/main.php @@ -10,10 +10,10 @@ 'header.register_steps_3' => '3. Download & play for free', 'header.welcome' => 'Welcome, :name!', - 'header.cash_balance' => 'You have :cash Dragon Coins', + 'header.cash_balance' => 'You have :cash :cashName', 'header.nav.buy_coins' => 'Buy DC', - 'header.nav.administration' => 'User information', + 'header.nav.administration' => 'Account Information', 'header.nav.logout' => 'Logout', 'nav.home' => 'Start', diff --git a/lang/en/app/user/administration.php b/lang/en/app/user/administration.php new file mode 100644 index 0000000..c575921 --- /dev/null +++ b/lang/en/app/user/administration.php @@ -0,0 +1,29 @@ + 'Your Account', + 'subtitle' => 'Account Information', + + 'username' => 'Username', + 'email' => 'Email', + 'cash-topup' => '(top up)', + 'delete-code' => 'Character deletion code', + 'delete-code-not-available' => 'not yet specified', + + 'btn-topup' => 'Buy Dragon Coins', + 'btn-topup-desc' => 'Top up your account with Dragon Coins', + 'btn-characters' => 'Characters', + 'btn-characters-desc' => 'Character list', + 'btn-recruit' => 'Friends', + 'btn-recruit-desc' => 'Recruit friends and see the status of newly recruited friends', + 'btn-email-change' => 'Email', + 'btn-email-change-desc' => 'Change email address', + 'btn-password-change' => 'Password', + 'btn-password-change-desc' => 'Change password', + 'btn-storage-password' => 'Storekeeper', + 'btn-storage-password-desc' => 'Request Storekeeper password', + 'btn-display-code' => 'Display code', + 'btn-display-code-desc' => 'Character deletion code', + 'btn-delete-account' => 'Delete account', + 'btn-delete-account-desc' => 'Delete account', +]; diff --git a/lang/ro/app/main.php b/lang/ro/app/main.php index da52aa2..c217021 100644 --- a/lang/ro/app/main.php +++ b/lang/ro/app/main.php @@ -10,7 +10,7 @@ 'header.register_steps_3' => '3. Descarcă și joacă pe gratis', 'header.welcome' => 'Bun venit, :name!', - 'header.cash_balance' => 'Ai :cash Monede Dragon', + 'header.cash_balance' => 'Ai :cash :cashName', 'header.nav.buy_coins' => 'Încarcă MD', 'header.nav.administration' => 'Datele utilizatorului', diff --git a/lang/ro/app/user/administration.php b/lang/ro/app/user/administration.php new file mode 100644 index 0000000..319f7a6 --- /dev/null +++ b/lang/ro/app/user/administration.php @@ -0,0 +1,29 @@ + 'Contul tău', + 'subtitle' => 'Datele utilizatorului', + + 'username' => 'Nume de utilizator', + 'email' => 'Email', + 'cash-topup' => '(top up)', + 'delete-code' => 'Cod de ștergere personaj', + 'delete-code-not-available' => 'încă nespecificat', + + 'btn-topup' => 'Încarcă MD', + 'btn-topup-desc' => 'Îmbunătățește-ți contul folosind Monede Dragon', + 'btn-characters' => 'Personaje', + 'btn-characters-desc' => 'Lista personajelor', + 'btn-recruit' => 'Prieteni', + 'btn-recruit-desc' => 'Recrutează prieteni și vezi statusul noilor prieteni recrutați', + 'btn-email-change' => 'Email', + 'btn-email-change-desc' => 'Schimbă adresa de email', + 'btn-password-change' => 'Parola', + 'btn-password-change-desc' => 'Schimbă parola contului tău', + 'btn-storage-password' => 'Parolă Depozit', + 'btn-storage-password-desc' => 'Cere parola de la Depozit', + 'btn-display-code' => 'Parolă ștergere', + 'btn-display-code-desc' => 'Obține codul pentru ştergerea personajelor', + 'btn-delete-account' => 'Șterge contul', + 'btn-delete-account-desc' => 'Șterge-ți contul', +]; diff --git a/lang/ro/mall/main.php b/lang/ro/mall/main.php new file mode 100644 index 0000000..c0518b5 --- /dev/null +++ b/lang/ro/mall/main.php @@ -0,0 +1,21 @@ + 'Magazinul de item-uri', + + 'currency.cash' => 'MD', + 'currency.cash_long' => 'Monede Dragon', + 'currency.mileage' => 'JD', + 'currency.mileage_long' => 'Jetoane Dragon', + + 'nav.home' => 'Acasă', + 'nav.search_placeholder' => 'Caută', + 'nav.help_tooltip' => 'Mergi la pagina de ajutor', + + 'nav.buy_coins_tooltip' => 'Obține Monede Dragon', + 'nav.buy_coins_btn' => "Obține\nMonede Dragon", + + 'nav.user_data_tooltip' => 'Date utilizator', + + 'nav.stored_items' => 'Obiecte depozitate: :storageCount', +]; diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index fa67352..f4b0ae8 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -212,7 +212,7 @@ function () { @else
{{ $item->old_price }} {{ $item->pricing->description() }}
+{{ $item->old_price }} {{ $item->pricing->name() }}
@endif- {{ $item->quantity }} pcs: {{ $item->price }} {{ $item->pricing->description() }} + {{ $item->quantity }} pcs: {{ $item->price }} {{ $item->pricing->name() }}
@else -{{ $item->quantity }} pcs. only: {{ $item->price }} {{ $item->pricing->description() }}
+{{ $item->quantity }} pcs. only: {{ $item->price }} {{ $item->pricing->name() }}
Details @endifÎmbunătățește-ți contul folosind Monede Dragon
Lista caracterelor
Recruteaza prieteni si vezi statusul noilor prieteni recrutati
Schimbă adresa de email
Schimbă parola
Cere parola de la Depozit
Codul pentru ştergerea personajelor
Anularea contului
{{ __('app/user/administration.btn-topup-desc') }}
+{{ __('app/user/administration.btn-characters-desc') }}
+{{ __('app/user/administration.btn-desc') }}
+{{ __('app/user/administration.btn-email-change-desc') }}
+{{ __('app/user/administration.btn-password-change-desc') }}
+{{ __('app/user/administration.btn-storage-password-desc') }}
+{{ __('app/user/administration.btn-display-code-desc') }}
+{{ __('app/user/administration.btn-delete-account-desc') }}
+