From f871e14307d6b56fbfcb11481f1e75144fe27f1f Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Tue, 1 Sep 2020 00:29:58 +0100 Subject: [PATCH] Add homepage localization options --- resources/js/app.js | 25 -------- resources/lang/en/messages.php | 64 ++++++++++++++++++++ resources/views/breadcrumbs/app.blade.php | 4 +- resources/views/breadcrumbs/footer.blade.php | 4 +- resources/views/breadcrumbs/header.blade.php | 18 +++--- resources/views/home.blade.php | 56 ++++++++--------- 6 files changed, 102 insertions(+), 69 deletions(-) create mode 100644 resources/lang/en/messages.php diff --git a/resources/js/app.js b/resources/js/app.js index b5d260c..9c04e5f 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -43,28 +43,3 @@ $("#comment").keyup(function(){ $("#submitComment").on('click', function(){ $("#newComment").submit(); }); - -window.Vue = require('vue'); - -/** - * The following block of code may be used to automatically register your - * Vue components. It will recursively scan this directory for the Vue - * components and automatically register them with their "basename". - * - * Eg. ./components/ExampleComponent.vue -> - */ - -// const files = require.context('./', true, /\.vue$/i) -// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default)) - -Vue.component('example-component', require('./components/ExampleComponent.vue').default); - -/** - * Next, we will create a fresh Vue application instance and attach it to - * the page. Then, you may begin adding components to this application - * or customize the JavaScript scaffolding to fit your unique needs. - */ - -const app = new Vue({ - el: '#app', -}); diff --git a/resources/lang/en/messages.php b/resources/lang/en/messages.php new file mode 100644 index 0000000..0c28265 --- /dev/null +++ b/resources/lang/en/messages.php @@ -0,0 +1,64 @@ + 'translate-me' + * Also, don't translate, change, or move placeholders (:this-is-a-placeholder) starting with a colon. + * Try to keep the message as close to the original in meaning as possible. These simple rules also apply to other files you're translating, such as: + * auth.php, pagination.php, passwords.php, and validation.php. + * It is VERY important that you "escape" single quotes with a backslash if they're present in your language, like this: I\'m an escaped quote + * + * Additionally, don't change anything in square or curly brackets, and don't remove pipe (|) characters. + * If you see two messages separated by pipe, then usually the left side is singular and the right side is plural, so translate accordingly. + * + * Thank you for translating! + */ + +return [ + + // ============== HOMEPAGE MESSAGES ====================== + + 'home' => 'Home', + 'homepagetxt' => 'Homepage', + 'login' => 'Sign in', + 'logout' => 'Sign out', + 'register' => 'Sign up', + 'dashboard' => 'Dashboard', + 'homepage_welcome' => 'Welcome to our team management center!', + 'homepage_explainer_line1' => 'Here, you can apply for open staff member positions, view your application status, and manage your profile.', + 'homepage_explainer_line2' => 'Sign up with Email to continue.', + 'footer_copy' => 'All rights reserved', + 'global_error' => 'An error occurred', + 'global_success' => 'Success!', + 'txt_learn_more' => 'Learn more', + 'opening_nodetails' => 'There don\'t seem to be any details', + 'opening_nodetails_exp' => 'This opening does not have any details yet.', + 'details_m_title' => 'Opening details', + 'open_positions' => 'Open Positions', + 'last_updated' => 'Last updated', + 'open_position_count' => '{1} There is :count open position!|[2,*] There are :count open positions!', + 'ineligible_days_remaining' => 'Ineligible (:days) day(s) remaining', + 'txt_apply' => 'Apply', // Context: Apply as in applying for a "job", e.g. registering for a job + 'application_closed' => 'Applications Closed', + 'application_closed_intro' => 'Hello there!', + 'application_closed_intro_line2' => << 'Where you\'ll work', + 'join_team' => 'Join The Team', + 'join_team_cta' => 'Join the team today and help out network grow and prosper!', + 'contact_cta' => 'Any questions? Leave a message!', + 'contact_disclaimer' => '*This is not an application form. Any applications sent here will be ignored.', + 'contactlabel_name' => 'Name', + 'contactlabel_email' => 'E-mail', + 'contactlabel_subject' => 'Subject (ex. Site Suggestion)', + 'contactlabel_send' => 'Send', + + + + // ======================== AUTHENTICATION MESSAGES =========================== + + +]; diff --git a/resources/views/breadcrumbs/app.blade.php b/resources/views/breadcrumbs/app.blade.php index 5b1dbf9..a7ea742 100644 --- a/resources/views/breadcrumbs/app.blade.php +++ b/resources/views/breadcrumbs/app.blade.php @@ -5,13 +5,13 @@ @if (session()->has('error')) @elseif (session()->has('success')) @endif diff --git a/resources/views/breadcrumbs/footer.blade.php b/resources/views/breadcrumbs/footer.blade.php index 0e00330..9821e56 100644 --- a/resources/views/breadcrumbs/footer.blade.php +++ b/resources/views/breadcrumbs/footer.blade.php @@ -1,9 +1,9 @@