Skip to content

Commit

Permalink
Language
Browse files Browse the repository at this point in the history
  • Loading branch information
ebeauchamps committed Jun 16, 2024
1 parent bd4f374 commit 39c18f0
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 43 deletions.
33 changes: 16 additions & 17 deletions resources/lang/en/multi-taxonomies.php
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
<?php
return [
'display' => [
'Configuration of type' => 'Configuration of type',
'select origin' => 'select origin',
'Config First Taxonomy' => 'Config First Taxonomy',
'select taxonomy' => 'select taxonomy',
'Primary key' => 'Primary key',
'Configuration of type' => 'Resource setting',
'select origin' => 'Resource origin',
'Config First Taxonomy' => 'First Taxonomy Config',
'First taxonomy' => 'First Taxonomy',
'Primary key' => 'Taxonomy key',
'Label column' => 'Label column',
'Config second Taxonomy' => 'Config second Taxonomy',
'Config second Taxonomy' => 'Second Taxonomy Config',
'Second Taxonomy' => 'Second Taxonomy',
'Foreign key' => 'Foreign key',

],
'instructions' => [
'Write the name of the main field (primary key) of the taxonomy on which the second taxonomy depends' => 'Write the primary key of the taxonomy upon which the second taxonomy is dependent',
'Section where you configure the type of source for the resources' => 'Section where you configure the type of source for the resources',
'Select the origin of the resource where the data for the dynamic selects will be obtained' => 'Select the origin of the resource where the data for the dynamic selects will be obtained',
'Section where you can configure the type of source of the resources' => 'Configuration section for selecting the resource origin/type',
'Section where you configure the data of the first taxonomy' => 'Configuration section for setting up the data of the first taxonomy',
'Select the first taxonomy' => 'Select the first taxonomy',
'Write the handle of the column that serves as the primary key' => 'Write the handle of the column that serves as the primary key',
'Write the handle of the column that is the text of the options in the first taxonomy' => 'Specify the handle of the column that serves as the text for the options in the first taxonomy',
'Section where you configure the data of the second taxonomy' => 'Configuration section for setting up the data of the second taxonomy',
'Select the second taxonomy' => 'Select the second taxonomy',
'Write the handle of the column that serves as the primary key' => 'Write the handle of the column that serves as the primary key',
'Write the handle of the column that is the text of the options in the second taxonomy' => 'Write the handle of the column that serves as the text for the options in the second taxonomy',
'Select the dependent taxonomy (second taxonomy)' => 'Select the dependent taxonomy (second taxonomy)',
'Section where you configure the data for the first taxonomy' => 'Section where you configure the data for the first taxonomy',
'Select the first (primary) taxonomy' => 'Select the first (primary) taxonomy',
'Write the handle of the column that serves as the primary key for the first taxonomy' => 'Specify the handle of the column that serves as the primary key for the first taxonomy',
'Write the handle of the column that is the text for the options in the first taxonomy' => 'Specify the handle of the column that is the text for the options in the first taxonomy',
'Section where you configure the data for the second taxonomy' => 'Section where you configure the data for the second taxonomy',
'Select the second (dependent) taxonomy' => 'Select the second (dependent) taxonomy',
'Write the name of the main field (primary key) of the taxonomy on which the second taxonomy depends' => 'Specify the name of the main field (primary key) of the taxonomy on which the second taxonomy depends',
'Write the handle of the column that serves as the primary key for the second taxonomy' => 'Specify the handle of the column that serves as the primary key for the second taxonomy',
'Write the handle of the column that is the text for the options in the second taxonomy' => 'Specify the handle of the column that is the text for the options in the second taxonomy',
],
'Welcome' => 'Welcome',
];
29 changes: 14 additions & 15 deletions resources/lang/fr/multi-taxonomies.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,27 @@
'display' => [
'Configuration of type' => 'Configuration des ressources',
'select origin' => 'Origine de la ressource',
'Config First Taxonomy' => 'Configuration taxonomie primaire',
'select taxonomy' => 'Première taxonomie',
'Primary key' => 'Clef taxonomie principale',
'Config First Taxonomy' => 'Configuration première taxonomie',
'First taxonomy' => 'Première taxonomie',
'Primary key' => 'Clef de la taxonomie',
'Label column' => 'Champ texte',
'Config second Taxonomy' => 'Configuration taxonomie secondaire',
'Config second Taxonomy' => 'Configuration seconde taxonomie',
'Second Taxonomy' => 'Seconde taxonomie',
'Foreign key' => 'Clef externe',

],
'instructions' => [
'Write the name of the main field (primary key) of the taxonomy on which the second taxonomy depends' => 'Saisissez le nom du champ primaire (clé primaire) de la taxonomie dont dépend la deuxième taxonomie.',
'Section where you configure the type of source for the resources' => 'Section de configuration du type de source des ressources.',
'Select the origin of the resource where the data for the dynamic selects will be obtained' => 'Sélectionnez la ressource à partir de laquelle les données pour les sélections dynamiques seront obtenues.',
'Section where you can configure the type of source of the resources' => 'Section où vous pouvez configurer le type de source des ressources.',
'Section where you configure the data of the first taxonomy' => 'Section où on configure les données de la première taxonomie.',
'Select the first taxonomy' => 'Sélectionnez la première taxonomie.',
'Write the handle of the column that serves as the primary key' => 'Saisissez l\'identifiant de la colonne qui est la clef primaire.',
'Write the handle of the column that is the text of the options in the first taxonomy' => 'Saisissez l\'identifiant de la colonne qui est le texte des options dans la première taxonomie.',
'Section where you configure the data of the second taxonomy' => 'Section où on configure les données de la deuxième taxonomie.',
'Select the second taxonomy' => 'Sélectionnez la seconde taxonomie.',
'Write the handle of the column that serves as the primary key' => 'Saisissez l\'identifiant de la colonne qui est la clef primaire.',
'Write the handle of the column that is the text of the options in the second taxonomy' => 'Saisissez l\'identifiant de la colonne qui est le texte des options dans la seconde taxonomie.',
'Select the dependent taxonomy (second taxonomy)' => 'Sélectionnez la taxonomie dépendante (seconde taxonomie).',
'Section where you configure the data for the first taxonomy' => 'Section de configuration des données de la première taxonomie.',
'Select the first (primary) taxonomy' => 'Sélectionnez la première taxonomie.',
'Write the handle of the column that serves as the primary key for the first taxonomy' => 'Saisissez l\'identifiant de la colonne qui est la clef primaire de la première taxonomie.',
'Write the handle of the column that is the text for the options in the first taxonomy' => 'Saisissez l\'identifiant de la colonne qui est le texte des options dans la première taxonomie.',
'Section where you configure the data for the second taxonomy' => 'Section de configuration des données de la seconde taxonomie.',
'Select the second (dependent) taxonomy' => 'Sélectionnez la seconde taxonomie.',
'Write the name of the main field (primary key) of the taxonomy on which the second taxonomy depends' => 'Saisissez le nom du champ primaire (clé primaire) de la taxonomie dont dépend la seconde taxonomie.',
'Write the handle of the column that serves as the primary key for the second taxonomy' => 'Saisissez l\'identifiant de la colonne qui est la clef primaire de la seconde taxonomie.',
'Write the handle of the column that is the text for the options in the second taxonomy' => 'Saisissez l\'identifiant de la colonne qui est le texte des options dans la seconde taxonomie.',
],
'Welcome' => 'Bienvenu',
];
22 changes: 11 additions & 11 deletions src/Fieldtypes/MultiTaxonomiesFieldtype.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class MultiTaxonomiesFieldtype extends Fieldtype
'information' =>
[
'display' => 'Configuration of type',
'instructions' => 'Section where you can configure the type of source of the resources',
'instructions' => 'Section where you configure the type of source for the resources',
'type' => 'section',
'width' => 100,
'if' => [
Expand All @@ -34,17 +34,17 @@ class MultiTaxonomiesFieldtype extends Fieldtype
'section_first_taxonomy' =>
[
'display' => 'Config First Taxonomy',
'instructions' => 'Section where you configure the data of the first taxonomy',
'instructions' => 'Section where you configure the data for the first taxonomy',
'type' => 'section',
'width' => 100,
'if' => [
'mode' => 'equals taxonomy',
],
],
'taxonomies_one'=> [
'display' => 'select taxonomy',
'display' => 'First Taxonomy',
'type' => 'taxonomies',
'instructions' => 'Select the first taxonomy',
'instructions' => 'Select the first (primary) taxonomy',
'max_items' => 1,
'if' => [
'mode' => 'equals taxonomy',
Expand All @@ -55,7 +55,7 @@ class MultiTaxonomiesFieldtype extends Fieldtype
'taxonomies_one_field_key' => [
'display' => 'Primary key',
'type' => 'text',
'instructions' => 'Write the handle of the column that serves as the primary key',
'instructions' => 'Write the handle of the column that serves as the primary key for the first taxonomy',
'default' => 'slug',
'required' => true,
'width' => 33
Expand All @@ -64,14 +64,14 @@ class MultiTaxonomiesFieldtype extends Fieldtype
'taxonomies_one_field_label' => [
'display' => 'Label column',
'type' => 'text',
'instructions' => 'Write the handle of the column that is the text of the options in the first taxonomy',
'instructions' => 'Write the handle of the column that is the text for the options in the first taxonomy',
'required' => true,
'width' => 33
],
'section_second_taxonomy' =>
[
'display' => 'Config second Taxonomy',
'instructions' => 'Section where you configure the data of the second taxonomy',
'display' => 'Config Second Taxonomy',
'instructions' => 'Section where you configure the data for the second taxonomy',
'type' => 'section',
'width' => 100,
'if' => [
Expand All @@ -81,7 +81,7 @@ class MultiTaxonomiesFieldtype extends Fieldtype
'taxonomies_depend' => [
'display' => 'Second Taxonomy',
'type' => 'taxonomies',
'instructions' => 'Select the dependent taxonomy (second taxonomy)',
'instructions' => 'Select the second (dependent) taxonomy',
'max_items' => 1,
'if' => [
'mode' => 'equals taxonomy',
Expand All @@ -100,14 +100,14 @@ class MultiTaxonomiesFieldtype extends Fieldtype
'taxonomies_depend_field_key' => [
'display' => 'Primary key',
'type' => 'text',
'instructions' => 'Write the handle of the column that serves as the primary key',
'instructions' => 'Write the handle of the column that serves as the primary key for the second taxonomy',
'required' => true,
'width' => 25
],
'taxonomies_depend_field_label' => [
'display' => 'Label column',
'type' => 'text',
'instructions' => 'Write the handle of the column that is the text of the options in the second taxonomy',
'instructions' => 'Write the handle of the column that is the text for the options in the second taxonomy',
'required' => true,
'width' => 25
],
Expand Down

0 comments on commit 39c18f0

Please # to comment.