Skip to content

Commit

Permalink
Merge pull request #11834 from TPGPL/pack-author-i18n
Browse files Browse the repository at this point in the history
Add missing localisation to beatmap pack listing
  • Loading branch information
notbakaneko authored Feb 5, 2025
2 parents 03a6365 + b7188dc commit c09e8b9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
6 changes: 0 additions & 6 deletions resources/css/bem/beatmap-pack.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@
z-index: 1;
}

&__author {
&--bold {
font-weight: 600;
}
}

&__body {
background-color: @osu-colour-b3;
}
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en/beatmappacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
],

'show' => [
'created_by' => 'by :author',
'download' => 'Download',
'item' => [
'cleared' => 'cleared',
Expand Down
3 changes: 1 addition & 2 deletions resources/views/packs/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
<div class="beatmap-pack__name">{{ $pack->name }}</div>
<div class="beatmap-pack__details">
<span class="beatmap-pack__date">{{ json_date($pack->date) }}</span>
<span class="beatmap-pack__author">by </span>
<span class="beatmap-pack__author beatmap-pack__author--bold">{{ $pack->author }}</span>
<span>{!! osu_trans('beatmappacks.show.created_by', ['author' => tag('strong', content: e($pack->author))]) !!}</span>
</div>
</a>
<div class="beatmap-pack__body js-accordion__item-body"></div>
Expand Down
3 changes: 1 addition & 2 deletions resources/views/packs/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
<div class="beatmap-pack__name">{{ $pack->name }}</div>
<div class="beatmap-pack__details">
<span class="beatmap-pack__date">{{ json_date($pack->date) }}</span>
<span class="beatmap-pack__author">by </span>
<span class="beatmap-pack__author beatmap-pack__author--bold">{{ $pack->author }}</span>
<span>{!! osu_trans('beatmappacks.show.created_by', ['author' => tag('strong', content: e($pack->author))]) !!}</span>
</div>
</a>

Expand Down

0 comments on commit c09e8b9

Please sign in to comment.