Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions resources/templates/_elements/toolbar.twig
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
{% from "_includes/forms" import text -%}

{% do view.registerTranslations('app', [
"Sort by {attribute}",
"Score",
"Structure",
"Display in a table",
"Display hierarchically",
"Display as thumbnails",
]) %}

{% hook 'cp.elements.toolbar' %}

Expand Down
4 changes: 0 additions & 4 deletions resources/templates/_includes/permissions.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{% requireEdition CraftTeam %}

{% do view.registerTranslations('app', [
"Select All",
"Deselect All",
]) %}

{% do view.registerAssetBundle("craft\\web\\assets\\userpermissions\\UserPermissionsAsset") %}

Expand Down
4 changes: 0 additions & 4 deletions resources/templates/_layouts/basecp.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
{% set bodyClass = (bodyClass ?? [])|explodeClass|push('mobile') -%}
{% endif %}

{% do view.registerTranslations('app', [
"Show",
"Hide",
]) %}

{% set localeData = craft.i18n.locale %}
{% set orientation = localeData.getOrientation() %}
Expand Down
6 changes: 1 addition & 5 deletions resources/templates/_special/image_editor.twig
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{% import "_includes/forms" as forms %}
{% set orientation = craft.i18n.locale.getOrientation() -%}
{% do view.registerTranslations('app', [
'Original',
'Square',
'Unconstrained',
]) %}

{{ tag('h1', {
class: 'visually-hidden',
text: 'Edit Image'|t('app'),
Expand Down
4 changes: 0 additions & 4 deletions resources/templates/_special/install/index.twig
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{% extends "_layouts/basecp" %}
{% set title = "Install Craft CMS"|t('app') %}

{% do view.registerTranslations('app', [
"All done!",
"Go to Craft CMS",
]) %}

{% block body %}
<div class="beginbtncontainer">
Expand Down
4 changes: 0 additions & 4 deletions resources/templates/_special/licensing-issues.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
{% set bodyClass = 'licensing-issues' %}
{% set title = 'License purchase required.'|t('app') %}

{% do view.registerTranslations('app', [
'Continue to the control panel',
'Continue to the control panel in {num, number} {num, plural, =1{second} other{seconds}}',
]) %}

{% block body %}
<div id="licensing-issues" class="pane">
Expand Down
6 changes: 0 additions & 6 deletions resources/templates/assets/_previews/image.twig
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@
</div>

{% do view.registerAssetBundle("craft\\web\\assets\\focalpoint\\FocalPointAsset") %}
{% do view.registerTranslations('app', [
'Enable focal point',
'Disable focal point',
'Saved',
'Saving…',
]) %}

{% if enableFocalPoint %}
{% js %}
Expand Down
4 changes: 0 additions & 4 deletions resources/templates/graphql/schemas/_edit.twig
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@

{% from _self import permissionList %}

{% do view.registerTranslations('app', [
"Select All",
"Deselect All",
]) %}

{% do view.registerAssetBundle("craft\\web\\assets\\userpermissions\\UserPermissionsAsset") %}

Expand Down
6 changes: 0 additions & 6 deletions resources/templates/graphql/tokens/_index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
{% set tokens = craft.app.gql.tokens %}

{% do view.registerAssetBundle('craft\\web\\assets\\admintable\\AdminTableAsset') -%}
{% do view.registerTranslations('app', [
'No GraphQL tokens exist yet.',
'Never',
'Last Used',
'Expires',
]) %}

{% block actionButton %}
<a class="btn submit add icon" href="{{ url('graphql/tokens/new') }}">{{ "New token"|t('app') }}</a>
Expand Down
9 changes: 0 additions & 9 deletions resources/templates/settings/assets/transforms/_index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@

{% do view.registerAssetBundle('craft\\web\\assets\\admintable\\AdminTableAsset') -%}

{% do view.registerTranslations('app', [
"Name",
"Handle",
"Mode",
"Dimensions",
"Interlace",
"Format",
"No image transforms exist yet.",
]) %}

{% if readOnly %}
{% set contentNotice = readOnlyNotice() %}
Expand Down
6 changes: 0 additions & 6 deletions resources/templates/settings/assets/volumes/_index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@

{% do view.registerAssetBundle('craft\\web\\assets\\admintable\\AdminTableAsset') -%}

{% do view.registerTranslations('app', [
"Name",
"Handle",
"Type",
"No volumes exist yet."
]) %}

{% if readOnly %}
{% set contentNotice = readOnlyNotice() %}
Expand Down
3 changes: 0 additions & 3 deletions resources/templates/settings/email/_index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@

{% import '_includes/forms.twig' as forms %}

{% do view.registerTranslations('app', [
"Email sent successfully! Check your inbox.",
]) %}


{% if settings is not defined %}
Expand Down
11 changes: 1 addition & 10 deletions resources/templates/settings/entry-types/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,7 @@

{% do view.registerAssetBundle('craft\\web\\assets\\admintable\\AdminTableAsset') -%}

{% do view.registerTranslations('app', [
'Are you sure you want to delete “{name}” and all entries of that type?',
'Description',
'Entry Type',
'Handle',
'No entry types exist yet.',
'No results.',
'No usages',
'Used by',
]) %}


{% set title = 'Entry Types'|t('app') %}

Expand Down
11 changes: 1 addition & 10 deletions resources/templates/settings/fields/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,7 @@

{% do view.registerAssetBundle('craft\\web\\assets\\admintable\\AdminTableAsset') -%}

{% do view.registerTranslations('app', [
'Handle',
'Name',
'No fields exist yet.',
'No results.',
'No usages',
'This field’s values are used as search keywords.',
'Type',
'Used by',
]) %}


{% set crumbs = [
{ label: "Settings"|t('app'), url: url('settings') }
Expand Down
6 changes: 0 additions & 6 deletions resources/templates/settings/filesystems/_index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@

{% do view.registerAssetBundle('craft\\web\\assets\\admintable\\AdminTableAsset') -%}

{% do view.registerTranslations('app', [
"Name",
"Handle",
"Type",
"No filesystems exist yet."
]) %}

{% block actionButton %}
{% if not readOnly %}
Expand Down
16 changes: 1 addition & 15 deletions resources/templates/settings/routes.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,7 @@
{ label: "Settings"|t('app'), url: url('settings') }
] %}

{% do view.registerTranslations('app', [
"Add a token",
"Are you sure you want to delete this route?",
"Couldn’t save new route order.",
"Couldn’t save route.",
"Create a new route",
"Edit Route",
"Global",
"If the URI looks like this",
"Load this template",
"New route order saved.",
"Route deleted.",
"Route Saved.",
"The URI can’t begin with the {setting} config setting.",
]) %}


{% set actionMenuItems = [
{
Expand Down
12 changes: 1 addition & 11 deletions resources/templates/settings/sections/_index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,7 @@

{% do view.registerAssetBundle('craft\\web\\assets\\admintable\\AdminTableAsset') -%}

{% do view.registerTranslations('app', [
"Are you sure you want to delete “{name}” and all its entries?",
"Edit entry type",
"Edit entry types ({count})",
"Edit entry types",
"Entry Types",
"Handle",
"Name",
"No sections exist yet.",
"Type",
]) %}


{% set crumbs = [
{ label: "Settings"|t('app'), url: url('settings') }
Expand Down
5 changes: 0 additions & 5 deletions resources/templates/settings/users/groups/_index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@

{% do view.registerAssetBundle('craft\\web\\assets\\admintable\\AdminTableAsset') -%}

{% do view.registerTranslations('app', [
"Name",
"Handle",
"No groups exist yet.",
]) %}

{% set groups = craft.userGroups.getAllGroups() %}

Expand Down
1 change: 0 additions & 1 deletion src/Support/Facades/HtmlStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* @method static void scriptWithVars(callable $fn, array $vars, \CraftCms\Cms\View\Enums\Position $position = 3, array $options = [], string|null $key = null)
* @method static void html(string $html, \CraftCms\Cms\View\Enums\Position $position = 3, string|null $key = null)
* @method static void jsImport(string $key, string $value)
* @method static void translations(array $messages, string $category = 'app')
* @method static void icons(array $icons)
* @method static void metaTag(array $attributes, string|null $key = null)
* @method static void linkTag(array $attributes, string|null $key = null)
Expand Down
1 change: 1 addition & 0 deletions src/Support/Facades/I18N.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* @method static \Illuminate\Support\Collection getEditableLocaleIds()
* @method static string translate(\Stringable|string $message, array $parameters = [], string|null $category = null, string|null $locale = null)
* @method static void addCategorySources(\Yiisoft\Translator\CategorySource ...$categories)
* @method static array getAllTranslationsForLocale(string $locale)
* @method static string prep(string $message, array $params = [], ?string $category = null, ?string $locale = null)
*
* @see \CraftCms\Cms\Translation\I18N
Expand Down
Loading
Loading