···371371372372 public function toMetaDescription()
373373 {
374374- $stack = [trans('forum.title')];
374374+ $stack = [osu_trans('forum.title')];
375375 foreach ($this->forum_parents as $forumId => $forumData) {
376376 $stack[] = $forumData[0];
377377 }
+2-2
app/Models/Store/Order.php
···413413 // TODO: Payment processors should set a context variable flagging the user check to be skipped.
414414 // This is currently only fine because the Orders controller requires auth.
415415 if ($user !== null && $this->user_id === $user->getKey() && !$this->canUserCancel()) {
416416- throw new InvariantException(trans('store.order.cancel_not_allowed'));
416416+ throw new InvariantException(osu_trans('store.order.cancel_not_allowed'));
417417 }
418418419419 $this->status = 'cancelled';
···465465466466 // TODO: better validation handling.
467467 if ($params['product'] === null) {
468468- return trans('model_validation/store/product.not_available');
468468+ return osu_trans('model_validation/store/product.not_available');
469469 }
470470471471 $this->saveOrExplode();
···11-<?php
22-33-define('LARAVEL_START', microtime(true));
44-55-// fixes some laravel features.
66-require_once __DIR__.'/../app/framework_helper_overrides.php';
77-88-/*
99-|--------------------------------------------------------------------------
1010-| Register The Composer Auto Loader
1111-|--------------------------------------------------------------------------
1212-|
1313-| Composer provides a convenient, automatically generated class loader
1414-| for our application. We just need to utilize it! We'll require it
1515-| into the script here so that we do not have to worry about the
1616-| loading of any our classes "manually". Feels great to relax.
1717-|
1818-*/
1919-2020-require __DIR__.'/../vendor/autoload.php';
+24-26
public/index.php
···11<?php
2233-/**
44- * Laravel - A PHP Framework For Web Artisans.
55- *
66- * @author Taylor Otwell <taylor@laravel.com>
77- */
33+use Illuminate\Contracts\Http\Kernel;
44+use Illuminate\Http\Request;
55+66+define('LARAVEL_START', microtime(true));
8798/*
109|--------------------------------------------------------------------------
1111-| Register The Auto Loader
1010+| Check If The Application Is Under Maintenance
1211|--------------------------------------------------------------------------
1312|
1414-| Composer provides a convenient, automatically generated class loader for
1515-| our application. We just need to utilize it! We'll simply require it
1616-| into the script here so that we don't have to worry about manual
1717-| loading any of our classes later on. It feels nice to relax.
1313+| If the application is in maintenance / demo mode via the "down" command
1414+| we will load this file so that any pre-rendered content can be shown
1515+| instead of starting the framework, which could cause an exception.
1816|
1917*/
20182121-require __DIR__.'/../bootstrap/autoload.php';
1919+if (file_exists(__DIR__.'/../storage/framework/maintenance.php')) {
2020+ require __DIR__.'/../storage/framework/maintenance.php';
2121+}
22222323/*
2424|--------------------------------------------------------------------------
2525-| Turn On The Lights
2525+| Register The Auto Loader
2626|--------------------------------------------------------------------------
2727|
2828-| We need to illuminate PHP development, so let us turn on the lights.
2929-| This bootstraps the framework and gets it ready for use, then it
3030-| will load up this application so that we can run it and send
3131-| the responses back to the browser and delight our users.
2828+| Composer provides a convenient, automatically generated class loader for
2929+| this application. We just need to utilize it! We'll simply require it
3030+| into the script here so we don't need to manually load our classes.
3231|
3332*/
34333535-$app = require_once __DIR__.'/../bootstrap/app.php';
3434+require __DIR__.'/../vendor/autoload.php';
36353736/*
3837|--------------------------------------------------------------------------
3938| Run The Application
4039|--------------------------------------------------------------------------
4140|
4242-| Once we have the application, we can simply call the run method,
4343-| which will execute the request and send the response back to
4444-| the client's browser allowing them to enjoy the creative
4545-| and wonderful application we have prepared for them.
4141+| Once we have the application, we can handle the incoming request using
4242+| the application's HTTP kernel. Then, we will send the response back
4343+| to this client's browser, allowing them to enjoy our application.
4644|
4745*/
48464949-$kernel = $app->make('Illuminate\Contracts\Http\Kernel');
4747+$app = require_once __DIR__.'/../bootstrap/app.php';
50485151-$response = $kernel->handle(
5252- $request = Illuminate\Http\Request::capture()
5353-);
4949+$kernel = $app->make(Kernel::class);
54505555-$response->send();
5151+$response = tap($kernel->handle(
5252+ $request = Request::capture()
5353+))->send();
56545755$kernel->terminate($request, $response);
···22 Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
33 See the LICENCE file in the repository root for full licence text.
44--}}
55-@extends('master', ['titlePrepend' => trans('layout.header.admin.contests')])
55+@extends('master', ['titlePrepend' => osu_trans('layout.header.admin.contests')])
667788@section('content')
+1-1
resources/views/admin/contests/show.blade.php
···22 Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
33 See the LICENCE file in the repository root for full licence text.
44--}}
55-@extends('master', ['titlePrepend' => trans('layout.header.admin.contest').' / '.$contest->name])
55+@extends('master', ['titlePrepend' => osu_trans('layout.header.admin.contest').' / '.$contest->name])
6677@section('content')
88 @include('objects.css-override', ['mapping' => [
···22 Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
33 See the LICENCE file in the repository root for full licence text.
44--}}
55-@extends('master', ['titlePrepend' => trans('admin.logs.index.title')])
55+@extends('master', ['titlePrepend' => osu_trans('admin.logs.index.title')])
6677@section('content')
88 @include('admin/_header')
···22 Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
33 See the LICENCE file in the repository root for full licence text.
44--}}
55-{!! trans('mail.common.hello', ['user' => $user->username]) !!}
55+{!! osu_trans('mail.common.hello', ['user' => $user->username]) !!}
6677-{!! trans('mail.user_password_updated.confirmation') !!}
77+{!! osu_trans('mail.user_password_updated.confirmation') !!}
8899-{!! trans('mail.common.report') !!}
99+{!! osu_trans('mail.common.report') !!}
10101111@include('emails._signature')
···22 Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
33 See the LICENCE file in the repository root for full licence text.
44--}}
55-@extends('master', ['titlePrepend' => trans('follows.comment.page_title')])
55+@extends('master', ['titlePrepend' => osu_trans('follows.comment.page_title')])
6677@section('content')
88 <div class="js-react--follows-comment osu-layout osu-layout--full"></div>
+3-3
resources/views/follows/forum_topic.blade.php
···22 Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
33 See the LICENCE file in the repository root for full licence text.
44--}}
55-@extends('master', ['titlePrepend' => trans('forum.topic_watches.index.title_compact')])
55+@extends('master', ['titlePrepend' => osu_trans('forum.topic_watches.index.title_compact')])
6677@section('content')
88 @include('home._user_header_default', ['themeOverride' => 'settings'])
···1313 <div class="grid-items">
1414 <div class="counter-box counter-box--info">
1515 <div class="counter-box__title">
1616- {{ trans('forum.topic_watches.index.box.total') }}
1616+ {{ osu_trans('forum.topic_watches.index.box.total') }}
1717 </div>
1818 <div class="counter-box__count">
1919 {{ i18n_number_format($counts['total']) }}
···22222323 <div class="counter-box counter-box--info">
2424 <div class="counter-box__title">
2525- {{ trans('forum.topic_watches.index.box.unread') }}
2525+ {{ osu_trans('forum.topic_watches.index.box.unread') }}
2626 </div>
2727 <div class="counter-box__count">
2828 {{ i18n_number_format($counts['unread']) }}
···22 Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
33 See the LICENCE file in the repository root for full licence text.
44--}}
55-@extends('master', ['titlePrepend' => trans('follows.mapping.page_title')])
55+@extends('master', ['titlePrepend' => osu_trans('follows.mapping.page_title')])
6677@section('content')
88 <div class="js-react--follows-mapping osu-layout osu-layout--full"></div>
···22 Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
33 See the LICENCE file in the repository root for full licence text.
44--}}
55-@extends('master', ['titlePrepend' => trans('friends.title_compact')])
55+@extends('master', ['titlePrepend' => osu_trans('friends.title_compact')])
6677@section('content')
88 <div class="js-react--friends-index osu-layout osu-layout--full"></div>
···22 Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
33 See the LICENCE file in the repository root for full licence text.
44--}}
55-@extends('store/layout', ['titlePrepend' => trans('store.invoice.title_compact')])
55+@extends('store/layout', ['titlePrepend' => osu_trans('store.invoice.title_compact')])
6677@section('content')
88 @include('store.header')