Merge pull request #736 from BelleNottelling/issue725

Make module labels translatable
This commit is contained in:
John @ S4 authored and GitHub committed 2023-01-22 12:07:17 +02:00
commit 071237d2b4
19 files changed
+43 -43

No files matched your search

+2 -2
View File
@@ -42,14 +42,14 @@ class Admin implements \Box\InjectionAwareInterface
'group' => [
'index' => 700,
'location' => 'activity',
'label' => 'Activity',
'label' => __trans('Activity'),
'class' => 'graphs',
'sprite_class' => 'dark-sprite-icon sprite-graph',
],
'subpages' => [
[
'location' => 'activity',
'label' => 'Event history',
'label' => __trans('Event history'),
'index' => 100,
'uri' => $this->di['url']->adminLink('activity'),
'class' => '',
+4 -4
View File
@@ -42,7 +42,7 @@ class Admin implements \Box\InjectionAwareInterface
'group' => [
'index' => 200,
'location' => 'client',
'label' => 'Clients',
'label' => __trans('Clients'),
'uri' => $this->di['url']->adminLink('client'),
'class' => 'contacts',
'sprite_class' => 'dark-sprite-icon sprite-users',
@@ -50,14 +50,14 @@ class Admin implements \Box\InjectionAwareInterface
'subpages' => [
[
'location' => 'client',
'label' => 'Overview',
'label' => __trans('Overview'),
'uri' => $this->di['url']->adminLink('client'),
'index' => 100,
'class' => '',
],
[
'location' => 'client',
'label' => 'Advanced search',
'label' => __trans('Advanced search'),
'uri' => $this->di['url']->adminLink('client', ['show_filter' => 1]),
'index' => 200,
'class' => '',
@@ -65,7 +65,7 @@ class Admin implements \Box\InjectionAwareInterface
[
'location' => 'activity',
'index' => 900,
'label' => 'Client login history',
'label' => __trans('Client login history'),
'uri' => $this->di['url']->adminLink('client/logins'),
'class' => '',
],
@@ -42,7 +42,7 @@ class Admin implements \Box\InjectionAwareInterface
'subpages' => [
[
'location' => 'extensions',
'label' => 'Cookie consent',
'label' => __trans('Cookie consent'),
'index' => 2000,
'uri' => $this->di['url']->adminLink('cookieconsent'),
'class' => '',
+1 -1
View File
@@ -42,7 +42,7 @@ class Admin implements \Box\InjectionAwareInterface
'subpages' => [
[
'location' => 'extensions',
'label' => 'Custom Pages',
'label' => __trans('Custom Pages'),
'index' => 2000,
'uri' => $this->di['url']->adminLink('custompages'),
'class' => '',
+1 -1
View File
@@ -43,7 +43,7 @@ class Admin implements \Box\InjectionAwareInterface
[
'location' => 'activity',
'index' => 200,
'label' => 'Email history',
'label' => __trans('Email history'),
'uri' => $this->di['url']->adminLink('email/history'),
'class' => '',
],
+1 -1
View File
@@ -42,7 +42,7 @@ class Admin implements \Box\InjectionAwareInterface
'subpages' => [
[
'location' => 'extensions',
'label' => 'Embed and integrate',
'label' => __trans('Embed and integrate'),
'index' => 1500,
'uri' => $this->di['url']->adminLink('embed'),
'class' => '',
+2 -2
View File
@@ -54,13 +54,13 @@ class Admin implements \Box\InjectionAwareInterface
'group' => [
'index' => 1500, // menu sort order
'location' => 'example', // menu group identifier for subitems
'label' => 'Example module', // menu group title
'label' => __trans('Example module'), // menu group title
'class' => 'example', // used for css styling menu item
],
'subpages' => [
[
'location' => 'example', // place this module in extensions group
'label' => 'Example module submenu',
'label' => __trans('Example module submenu'),
'index' => 1500,
'uri' => $this->di['url']->adminLink('example'),
'class' => '',
+3 -3
View File
@@ -42,21 +42,21 @@ class Admin implements \Box\InjectionAwareInterface
'group' => [
'location' => 'extensions',
'index' => 1000,
'label' => 'Extensions',
'label' => __trans('Extensions'),
'class' => 'iPlugin',
'sprite_class' => 'dark-sprite-icon sprite-electroPlug',
],
'subpages' => [
[
'location' => 'extensions',
'label' => 'Overview',
'label' => __trans('Overview'),
'uri' => $this->di['url']->adminLink('extension'),
'index' => 100,
'class' => '',
],
[
'location' => 'extensions',
'label' => 'Languages',
'label' => __trans('Languages'),
'index' => 200,
'uri' => $this->di['url']->adminLink('extension/languages'),
'class' => '',
+8 -8
View File
@@ -42,7 +42,7 @@ class Admin implements \Box\InjectionAwareInterface
'group' => [
'index' => 400,
'location' => 'invoice',
'label' => 'Invoices',
'label' => __trans('Invoices'),
'uri' => 'invoice',
'class' => 'invoices',
'sprite_class' => 'dark-sprite-icon sprite-money',
@@ -50,49 +50,49 @@ class Admin implements \Box\InjectionAwareInterface
'subpages' => [
[
'location' => 'invoice',
'label' => 'Overview',
'label' => __trans('Overview'),
'uri' => $this->di['url']->adminLink('invoice'),
'index' => 100,
'class' => '',
],
[
'location' => 'invoice',
'label' => 'Advanced search',
'label' => __trans('Advanced search'),
'uri' => $this->di['url']->adminLink('invoice', ['show_filter' => 1]),
'index' => 200,
'class' => '',
],
[
'location' => 'invoice',
'label' => 'Subscriptions',
'label' => __trans('Subscriptions'),
'uri' => $this->di['url']->adminLink('invoice/subscriptions'),
'index' => 300,
'class' => '',
],
[
'location' => 'invoice',
'label' => 'Transactions overview',
'label' => __trans('Transactions overview'),
'uri' => $this->di['url']->adminLink('invoice/transactions'),
'index' => 400,
'class' => '',
],
[
'location' => 'invoice',
'label' => 'Transactions search',
'label' => __trans('Transactions search'),
'uri' => $this->di['url']->adminLink('invoice/transactions', ['show_filter' => 1]),
'index' => 500,
'class' => '',
],
[
'location' => 'system',
'label' => 'Tax rules',
'label' => __trans('Tax rules'),
'uri' => $this->di['url']->adminLink('invoice/tax'),
'index' => 180,
'class' => '',
],
[
'location' => 'system',
'label' => 'Payment gateways',
'label' => __trans('Payment gateways'),
'uri' => $this->di['url']->adminLink('invoice/gateways'),
'index' => 160,
'class' => '',
+2 -2
View File
@@ -42,7 +42,7 @@ class Admin implements \Box\InjectionAwareInterface
'group' => [
'index' => 501,
'location' => 'kb',
'label' => 'Knowledge base',
'label' => __trans('Knowledge base'),
'uri' => $this->di['url']->adminLink('kb'),
'class' => 'info',
'sprite_class' => 'dark-sprite-icon sprite-docs',
@@ -51,7 +51,7 @@ class Admin implements \Box\InjectionAwareInterface
[
'location' => 'kb',
'index' => 800,
'label' => 'Knowledge base',
'label' => __trans('Knowledge base'),
'uri' => $this->di['url']->adminLink('kb'),
'class' => '',
],
+1 -1
View File
@@ -43,7 +43,7 @@ class Admin implements \Box\InjectionAwareInterface
[
'location' => 'extensions',
'index' => 4000,
'label' => 'Mass mailer',
'label' => __trans('Mass mailer'),
'uri' => $this->di['url']->adminLink('massmailer'),
'class' => '',
],
+1 -1
View File
@@ -43,7 +43,7 @@ class Admin implements \Box\InjectionAwareInterface
[
'location' => 'support',
'index' => 900,
'label' => 'Announcements',
'label' => __trans('Announcements'),
'uri' => $this->di['url']->adminLink('news'),
'class' => '',
],
+3 -3
View File
@@ -42,7 +42,7 @@ class Admin implements \Box\InjectionAwareInterface
'group' => [
'index' => 300,
'location' => 'order',
'label' => 'Orders',
'label' => __trans('Orders'),
'uri' => $this->di['url']->adminLink('order'),
'class' => 'orders',
'sprite_class' => 'dark-sprite-icon sprite-basket',
@@ -51,14 +51,14 @@ class Admin implements \Box\InjectionAwareInterface
[
'location' => 'order',
'index' => 100,
'label' => 'Overview',
'label' => __trans('Overview'),
'uri' => $this->di['url']->adminLink('order'),
'class' => '',
],
[
'location' => 'order',
'index' => 200,
'label' => 'Advanced search',
'label' => __trans('Advanced search'),
'uri' => $this->di['url']->adminLink('order', ['show_filter' => 1]),
'class' => '',
],
+3 -3
View File
@@ -51,21 +51,21 @@ class Admin implements \Box\InjectionAwareInterface
[
'location' => 'products',
'index' => 110,
'label' => 'Products & services',
'label' => __trans('Products & services'),
'uri' => $this->di['url']->adminLink('product'),
'class' => '',
],
[
'location' => 'products',
'index' => 120,
'label' => 'Product addons',
'label' => __trans('Product addons'),
'uri' => $this->di['url']->adminLink('product/addons'),
'class' => '',
],
[
'location' => 'products',
'index' => 130,
'label' => 'Product promotions',
'label' => __trans('Product promotions'),
'uri' => $this->di['url']->adminLink('product/promos'),
'class' => '',
],
@@ -43,7 +43,7 @@ class Admin implements \Box\InjectionAwareInterface
[
'location' => 'system',
'index' => 150,
'label' => 'Domain registration',
'label' => __trans('Domain registration'),
'uri' => $this->di['url']->adminLink('servicedomain'),
'class' => '',
],
@@ -43,7 +43,7 @@ class Admin implements \Box\InjectionAwareInterface
[
'location' => 'system',
'index' => 140,
'label' => 'Hosting plans and servers',
'label' => __trans('Hosting plans and servers'),
'uri' => $this->di['url']->adminLink('servicehosting'),
'class' => '',
],
+1 -1
View File
@@ -45,7 +45,7 @@ class Admin implements InjectionAwareInterface
[
'location' => 'activity',
'index' => 400,
'label' => 'Staff login history',
'label' => __trans('Staff login history'),
'uri' => $this->di['url']->adminLink('staff/logins'),
'class' => '',
],
+5 -5
View File
@@ -42,35 +42,35 @@ class Admin implements \Box\InjectionAwareInterface
'group' => [
'location' => 'support',
'index' => 500,
'label' => 'Support',
'label' => __trans('Support'),
'class' => 'support',
'sprite_class' => 'dark-sprite-icon sprite-dialog',
],
'subpages' => [
[
'location' => 'support',
'label' => 'Client tickets',
'label' => __trans('Client tickets'),
'uri' => $this->di['url']->adminLink('support', ['status' => 'open']),
'index' => 100,
'class' => '',
],
[
'location' => 'support',
'label' => 'Advanced ticket search',
'label' => __trans('Advanced ticket search'),
'uri' => $this->di['url']->adminLink('support', ['show_filter' => 1]),
'index' => 200,
'class' => '',
],
[
'location' => 'support',
'label' => 'Public tickets',
'label' => __trans('Public tickets'),
'uri' => $this->di['url']->adminLink('support/public-tickets', ['status' => 'open']),
'index' => 300,
'class' => '',
],
[
'location' => 'support',
'label' => 'Canned responses',
'label' => __trans('Canned responses'),
'uri' => $this->di['url']->adminLink('support/canned-responses'),
'index' => 400,
'class' => '',
+2 -2
View File
@@ -42,14 +42,14 @@ class Admin implements \Box\InjectionAwareInterface
'group' => [
'index' => 600,
'location' => 'system',
'label' => 'Configuration',
'label' => __trans('Configuration'),
'class' => 'settings',
'sprite_class' => 'dark-sprite-icon sprite-cog3',
],
'subpages' => [
[
'location' => 'system',
'label' => 'Settings',
'label' => __trans('Settings'),
'index' => 100,
'uri' => $this->di['url']->adminLink('system'),
'class' => '',