Skip to content

Commit

Permalink
Translatable config
Browse files Browse the repository at this point in the history
  • Loading branch information
adrolli committed Aug 3, 2024
1 parent bcc36ff commit 4b0b0a7
Show file tree
Hide file tree
Showing 89 changed files with 94 additions and 669 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
],
"license": "MIT",
"require": {
"laravel-lang/lang": "^15.5",
"laravel/framework": "^11.0",
"laravel/tinker": "^2.8",
"moox/audit": "*",
"moox/builder": "*",
"moox/expiry": "*",
"moox/jobs": "*",
"moox/login-link": "*",
"moox/notifications": "*",
Expand All @@ -33,9 +35,8 @@
"moox/press": "*",
"moox/security": "*",
"moox/sync": "*",
"moox/user": "*",
"moox/expiry": "*",
"moox/trainings": "*",
"moox/user": "*",
"moox/user-device": "*",
"moox/user-session": "*",
"wikimedia/composer-merge-plugin": "^2.1"
Expand Down
41 changes: 28 additions & 13 deletions config/expiry.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
<?php

/*
|--------------------------------------------------------------------------
| Moox Configuration
|--------------------------------------------------------------------------
|
| This configuration file uses translatable strings. If you want to
| translate the strings, you can do so in the language files
| published from moox_core. Example:
|
| 'trans//core::common.all',
| loads from common.php
| outputs 'All'
|
*/

return [

/*
|--------------------------------------------------------------------------
| Expiry - Navigation Sort
| Navigation Sort
|--------------------------------------------------------------------------
|
| This value is the sort order of the navigation item in the
Expand All @@ -17,7 +32,7 @@

/*
|--------------------------------------------------------------------------
| Expiry - Tabs
| Tabs
|--------------------------------------------------------------------------
|
| Define the tabs for the Expiry table. They are optional, but
Expand All @@ -28,37 +43,37 @@

'tabs' => [
'all' => [
'label' => 'All',
'label' => 'trans//core::common.all',
'field' => 'expiry_job',
'value' => '',
'icon' => 'gmdi-filter-list',
],
'documents' => [
'label' => 'Documents',
'label' => 'trans//core::common.documents',
'field' => 'expiry_job',
'value' => 'Documents',
'icon' => 'gmdi-text-snippet',
],
'articles' => [
'label' => 'Articles',
'label' => 'trans//core::common.articles',
'field' => 'expiry_job',
'value' => 'Articles',
'icon' => 'gmdi-account-circle',
],
'tasks' => [
'label' => 'Tasks',
'label' => 'trans//core::common.tasks',
'field' => 'expiry_job',
'value' => 'Tasks',
'icon' => 'gmdi-no-accounts',
],
'no-user' => [
'label' => 'No Assignee',
'label' => 'trans//core::expiry.no_assignee',
'field' => 'status',
'value' => 'No Assignee',
'icon' => 'gmdi-no-accounts',
],
'no-date' => [
'label' => 'No Expiry Date',
'label' => 'trans//core::expiry.no_expiry_date',
'field' => 'status',
'value' => 'No Expiry Date',
'icon' => 'gmdi-no-accounts',
Expand All @@ -67,7 +82,7 @@

/*
|--------------------------------------------------------------------------
| Expiry - Url Patterns
| Url Patterns
|--------------------------------------------------------------------------
|
| Define the url patterns for the Expiry table. They are optional, but
Expand All @@ -88,7 +103,7 @@

/*
|--------------------------------------------------------------------------
| Expiry - User Model and default user to notify
| User Model and default user to notify
|--------------------------------------------------------------------------
|
| Bring your own user model, or use the default one
Expand All @@ -101,7 +116,7 @@

/*
|--------------------------------------------------------------------------
| Expiry - Disable actions
| Disable actions
|--------------------------------------------------------------------------
|
| You can disable some action buttons in the admin panel.
Expand All @@ -116,7 +131,7 @@

/*
|--------------------------------------------------------------------------
| Expiry - Jobs
| Jobs
|--------------------------------------------------------------------------
|
| These jobs are used to collect expiries and send summaries.
Expand All @@ -131,7 +146,7 @@

/*
|--------------------------------------------------------------------------
| Expiry - API
| API
|--------------------------------------------------------------------------
|
| Enable or disable the API.
Expand Down
8 changes: 0 additions & 8 deletions packages/core/resources/lang/af/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/ar/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/az/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/be/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/bg/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/bn/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/bs/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/ca/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/cs/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/cy/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/da/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/de/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/de_CH/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/el/translations.php

This file was deleted.

11 changes: 11 additions & 0 deletions packages/core/resources/lang/en/common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
'title' => 'Title',
'slug' => 'Slug',
'item' => 'Item',
'all' => 'All',
'documents' => 'Documents',
'articles' => 'Articles',
'tasks' => 'Tasks',
];
6 changes: 6 additions & 0 deletions packages/core/resources/lang/en/expiry.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return [
'no_assignee' => 'No assignee',
'no_expiry_date' => 'No expiry date',
];
8 changes: 0 additions & 8 deletions packages/core/resources/lang/en/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/es/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/et/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/eu/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/fa/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/fi/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/fil/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/fr/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/gl/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/gu/translations.php

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/resources/lang/he/translations.php

This file was deleted.

Loading

0 comments on commit 4b0b0a7

Please sign in to comment.