Skip to content

Commit

Permalink
[5.x] Allow 'Statamic/Pro/Free' to be written using locale-specific c…
Browse files Browse the repository at this point in the history
…haracters (#10045)

Co-authored-by: Jason Varga <[email protected]>
  • Loading branch information
peimn and jasonvarga authored May 13, 2024
1 parent 2d90b26 commit b65a7f1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion resources/js/components/FavoriteCreator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default {
data() {
return {
name: document.title.replace(` ${this.$config.get('direction', 'ltr') === 'ltr' ? '' : ''} Statamic`, ''),
name: document.title.replace(` ${this.$config.get('direction', 'ltr') === 'ltr' ? '' : ''} ${__('Statamic')}`, ''),
currentUrl: this.$config.get('urlPath')
}
},
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/entries/PublishForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ export default {
this.isWorkingCopy = true;
if (this.isBase) {
const arrow = this.direction === 'ltr' ? '' : '';
document.title = `${this.title} ${arrow} ${this.breadcrumbs[1].text} ${arrow} ${this.breadcrumbs[0].text} ${arrow} Statamic`;
document.title = `${this.title} ${arrow} ${this.breadcrumbs[1].text} ${arrow} ${this.breadcrumbs[0].text} ${arrow} ${__('Statamic')}`;
}
if (!this.revisionsEnabled) this.permalink = response.data.data.permalink;
if (!this.isCreating && !this.isAutosave) this.$toast.success(__('Saved'));
Expand Down
2 changes: 1 addition & 1 deletion resources/views/licensing.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<tr>
<td class="w-64 font-bold">
<span class="little-dot {{ $statamic->valid() ? 'bg-green-600' : 'bg-red-500' }} rtl:ml-2 ltr:mr-2"></span>
Statamic @if ($statamic->pro())<span class="text-pink">Pro</span>@else Free @endif
{{ __('Statamic') }} @if ($statamic->pro())<span class="text-pink">{{ __('Pro') }}</span>@else {{ __('Free') }} @endif
</td>
<td>{{ $statamic->version() }}</td>
<td class="rtl:text-left ltr:text-right text-red-500">{{ $statamic->invalidReason() }}</td>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/partials/global-header.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<img src="{{ $customLogo }}" alt="{{ config('statamic.cp.custom_cms_name') }}" class="white-label-logo">
@else
@cp_svg('statamic-wordmark', 'w-24')
@if (Statamic::pro())<span class="font-bold text-4xs align-top">PRO</span>@endif
@if (Statamic::pro())<span class="font-bold text-4xs align-top uppercase">{{ __('Pro') }}</span>@endif
@endif
</div>
</a>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/partials/head.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width">
<meta name="robots" content="noindex,nofollow">

<title>@yield('title', $title ?? __('Here')) {{ Statamic::cpDirection() === 'ltr' ? '' : '' }} {{ Statamic::pro() ? config('statamic.cp.custom_cms_name', 'Statamic') : 'Statamic' }}</title>
<title>@yield('title', $title ?? __('Here')) {{ Statamic::cpDirection() === 'ltr' ? '' : '' }} {{ __(Statamic::pro() ? config('statamic.cp.custom_cms_name', 'Statamic') : 'Statamic') }}</title>

@if (Statamic::pro() && config('statamic.cp.custom_favicon_url'))
@include('statamic::partials.favicon', ['favicon_url' => config('statamic.cp.custom_favicon_url')])
Expand Down
2 changes: 1 addition & 1 deletion resources/views/updater/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class="btn-primary btn-lg">{{ __('Try again') }}</a>
<div class="card p-0 mt-2">
<table class="data-table">
<tr>
<td class="w-64"><a href="{{ route('statamic.cp.updater.product', 'statamic') }}" class="text-blue font-bold">Statamic</a></td>
<td class="w-64"><a href="{{ route('statamic.cp.updater.product', 'statamic') }}" class="text-blue font-bold">{{ __('Statamic') }}</a></td>
<td>{{ $statamic->currentVersion() }}</td>
@if ($count = $statamic->availableUpdatesCount())
<td class="rtl:text-left ltr:text-right"><span class="badge-sm bg-green-600 btn-xs">{{ trans_choice('1 update|:count updates', $count) }}</span></td>
Expand Down

0 comments on commit b65a7f1

Please sign in to comment.