Skip to content

Commit

Permalink
Add translation messages for gate
Browse files Browse the repository at this point in the history
  • Loading branch information
Repflez committed May 16, 2018
1 parent ef509d0 commit a59e4aa
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 24 deletions.
41 changes: 41 additions & 0 deletions resources/lang/en/gate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php
/*
* Translation file for gate
*/

return [
'welcome' => [
'controls' => [
'back' => 'Back',
'close' => 'Close',
'next' => 'Next',
],
'intro' => [
'title' => 'Welcome to :name!',
'message' => ':name lets you share your in-game experiences with people from all over the world.',
],
'about' => [
'title' => 'About :name',
'message1' => ':name is a recreation of Miiverse made by fans for fans.',
'message2' => 'Since this is a recreation, it may not have the same features as the defunct Miiverse and we\'re working on making them available as soon as possible.',
],
'config' => [
'title' => 'Configuring your :name Account',
'message' => 'We need some data from you before you can start using :name.',
'display_name' => 'Display Name',
'nnid' => 'Nintendo Network ID',

This comment has been minimized.

Copy link
@pikabelzy

pikabelzy Nov 30, 2020

'Display Name', maybe make it say Username

'nnid_label' => 'We use your Nintendo Network ID to fetch your Mii image.',
],
'finish' => [
'title' => 'Have fun in :name!',
'start' => 'Start',
],
],

'welcome_guest' => [
'title' => ':name is a gaming community that connects people from all over the world using Mii characters.<br>Use :name to share your gaming experiences and meet people from around the world.',
'message' => 'You will need a Nintendo Network ID in order to create posts or create a profile. Select Link ID to link a new or existing ID.',
'link' => 'Link ID',
'exit' => 'Exit',
],
];
38 changes: 19 additions & 19 deletions resources/views/ctr/gate/welcome.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,67 +5,67 @@
<div class="window-page">
<div class="window welcome-window">
<div class="window-title">
<h1 class="window-title-inner">Welcome to {{ config('general.name') }}!</h1>
<h1 class="window-title-inner">{{ __('gate.welcome.intro.title', { name: config('general.name') }) }}</h1>
</div>
<div class="window-body">
<div class="window-body-inner message">
<p>{{ config('general.name') }} lets you share your in-game experiences with people from all over the world.</p>
<p>{{ __('gate.welcome.intro.message', { name: config('general.name') }) }}</p>
</div>
</div>
</div>
</div>
<a href="#" class="fixed-bottom-button left exit-button welcome-exit-button" data-sound="SE_CTR_COMMON_SYSAPPLET_END">Close</a>
<a href="#" class="fixed-bottom-button right next-button slide-button" data-slide="#welcome-feature">Next</a>
<a href="#" class="fixed-bottom-button left exit-button welcome-exit-button" data-sound="SE_CTR_COMMON_SYSAPPLET_END">{{ __('gate.welcome.controls.close') }}</a>
<a href="#" class="fixed-bottom-button right next-button slide-button" data-slide="#welcome-feature">{{ __('gate.welcome.controls.next') }}</a>
</div>
<div id="welcome-feature" class="slide-page" data-slide-number="11" style="display: none;">
<div class="window-page">
<div class="window welcome-window">
<div class="window-title">
<h1 class="window-title-inner">About {{ config('general.name') }}</h1>
<h1 class="window-title-inner">{{ __('gate.welcome.about.title', { name: config('general.name') }) }}</h1>
</div>
<div class="window-body">
<div class="window-body-inner message">
<p class="p1">{{ config('general.name') }} is a recreation of Miiverse made by fans for fans.</p>
<p>Since this is a recreation, it may not have the same features as the defunct Miiverse and we're working on making them available as soon as possible.</p>
<p class="p1">{{ __('gate.welcome.about.message1', { name: config('general.name') }) }}</p>
<p>{{ __('gate.welcome.about.message2') }}</p>
</div>
</div>
</div>
</div>
<a href="#" class="fixed-bottom-button left back-button slide-button accesskey-B" data-slide="#welcome-3ds_start" data-sound="SE_OLV_CANCEL">Back</a>
<a href="#" class="fixed-bottom-button right next-button slide-button" data-slide="#welcome-luminous_user_data">Next</a>
<a href="#" class="fixed-bottom-button left back-button slide-button accesskey-B" data-slide="#welcome-3ds_start" data-sound="SE_OLV_CANCEL">{{ __('gate.welcome.controls.back') }}</a>
<a href="#" class="fixed-bottom-button right next-button slide-button" data-slide="#welcome-luminous_user_data">{{ __('gate.welcome.controls.next') }}</a>
</div>
<div id="welcome-luminous_user_data" class="slide-page" data-slide-number="10" style="display: none;">
<div class="window-page">
<div class="window welcome-window with-button">
<div class="window-title">
<h1 class="window-title-inner">Configuring your {{ config('general.name') }} Account</h1>
<h1 class="window-title-inner">{{ __('gate.welcome.config.title', { name: config('general.name') }) }}</h1>
</div>
<div class="window-body-user_data">
<div class="window-body-inner message">
<p>We need some data from you before you can start using {{ config('general.name') }}.</p>
<p>{{ __('gate.welcome.config.message', { name: config('general.name') }) }}</p>
</div>
</div>
<div class="window-bottom-input">
<form action="/" method="post" accept-charset="utf-8" id="user_data" data-check-url="{{ route('gate.check') }}">
<input type="text" id="welcome_username" name="welcome_username" placeholder="Display Name"><br>
<input type="text" id="welcome_nnid" name="welcome_nnid" placeholder="Nintendo Network ID"><br>
<label for="welcome_nnid">We use your Nintendo Network ID to fetch your Mii image.</label>
<form action="{{ route('gate.check') }}" method="post" accept-charset="utf-8" id="user_data" data-check-url="{{ route('gate.check') }}">
<input type="text" id="welcome_username" name="welcome_username" placeholder="{{ __('gate.welcome.config.display_name') }}"><br>
<input type="text" id="welcome_nnid" name="welcome_nnid" placeholder="{{ __('gate.welcome.config.nnid') }}"><br>
<label for="welcome_nnid">{{ __('gate.welcome.config.nnid_label') }}</label>
</form>
</div>
</div>
</div>
<a href="#" class="fixed-bottom-button left back-button slide-button accesskey-B" data-slide="#welcome-feature" data-sound="SE_OLV_CANCEL">Back</a>
<a href="#" class="fixed-bottom-button right next-button welcome-luminous_user_data-button" data-slide="#welcome-finish">Next</a>
<a href="#" class="fixed-bottom-button left back-button slide-button accesskey-B" data-slide="#welcome-feature" data-sound="SE_OLV_CANCEL">{{ __('gate.welcome.controls.back') }}</a>
<a href="#" class="fixed-bottom-button right next-button welcome-luminous_user_data-button" data-slide="#welcome-finish">{{ __('gate.welcome.controls.next') }}</a>
</div>
<div id="welcome-finish" class="slide-page" data-bgm="BGM_CAVE_SYOKAI2" data-slide-number="9" style="display: none;">
<div class="window-page">
<div class="window welcome-window">
<div class="window-title">
<h1 class="window-title-inner">Have fun in {{ config('general.name') }}!</h1>
<h1 class="window-title-inner">{{ __('gate.welcome.finish.title', { name: config('general.name') }) }}</h1>
</div>
<div class="window-body">
<div class="window-body-inner message">
<a href="{{ route('title.init') }}" class="fixed-bottom-button right next-button welcome-finish-button" data-activate-url="/welcome/activate?update_with_default=0" data-replace="1">Start</a>
<a href="{{ route('title.init') }}" class="fixed-bottom-button right next-button welcome-finish-button" data-activate-url="/welcome/activate?update_with_default=0" data-replace="1">{{ __('gate.welcome.finish.start') }}</a>
</div>
</div>
</div>
Expand Down
9 changes: 4 additions & 5 deletions resources/views/ctr/gate/welcome_guest.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
<div class="window-page">
<div class="window welcome-window">
<div class="window-title">
<p>{{ config('general.name') }} is a gaming community that connects people from all over the world using Mii characters.
Use {{ config('general.name') }} to share your gaming experiences and meet people from around the world.</p>
<p>{{ __('gate.welcome_guest.title', { name: config('general.name') }) }}</p>
</div>
<div class="window-body">
<div class="window-body-inner message">
<p>You will need a Nintendo Network ID in order to create posts or create a profile. Select Link ID to link a new or existing ID.</p>
<a href="#" class="black-button register">Link ID</a>
<a href="#" class="more-button" data-sound="SE_CTR_COMMON_SYSAPPLET_END">Exit</a>
<p>{{ __('gate.welcome_guest.message') }}</p>
<a href="#" class="black-button register">{{ __('gate.welcome_guest.link') }}</a>
<a href="#" class="more-button" data-sound="SE_CTR_COMMON_SYSAPPLET_END">{{ __('gate.welcome_guest.exit') }}</a>
</div>
</div>
</div>
Expand Down

0 comments on commit a59e4aa

Please sign in to comment.