Skip to content

Commit

Permalink
Bugfixes and translatet en/de
Browse files Browse the repository at this point in the history
  • Loading branch information
conpassione committed Oct 17, 2024
1 parent 65cc4f6 commit fffddf4
Show file tree
Hide file tree
Showing 20 changed files with 465 additions and 52 deletions.
7 changes: 6 additions & 1 deletion Configuration/Icons.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider;

return [
'tx-conpassione-kennellist' => [
'tx-conpassione-kennel' => [
'provider' => SvgIconProvider::class,
'source' => 'EXT:cpkm/Resources/Public/Icons/Kennel.svg',
],
Expand All @@ -15,6 +15,11 @@
'source' => 'EXT:cpkm/Resources/Public/Icons/Pedigree.svg',
],

'tx-conpassione-litter' => [
'provider' => SvgIconProvider::class,
'source' => 'EXT:cpkm/Resources/Public/Icons/Litter.svg',
],

/* 'tx-myext-bitmapicon' => [
'provider' => BitmapIconProvider::class,
'source' => 'EXT:my_extension/Resources/Public/Icons/mybitmap.png',
Expand Down
20 changes: 14 additions & 6 deletions Configuration/TCA/Overrides/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,26 @@

// zusätzliche Icons für Folder-Seiten
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = [
'label' => 'Kennels',
'icon' => 'tx-conpassione-kennellist',
'value' => 'kennellist'
'label' => 'LLL:EXT:cpkm/Resources/Private/Language/locallang_db.xlf:pages.label.kennel',
'icon' => 'tx-conpassione-kennel',
'value' => 'kennel'
];

$GLOBALS['TCA']['pages']['ctrl']['typeicon_classes']['contains-kennellist'] = 'tx-conpassione-kennellist';
$GLOBALS['TCA']['pages']['ctrl']['typeicon_classes']['contains-kennel'] = 'tx-conpassione-kennel';

// zusätzliche Icons für Folder-Seiten
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = [
'label' => 'Pedigree',
'label' => 'LLL:EXT:cpkm/Resources/Private/Language/locallang_db.xlf:pages.label.pedigree',
'icon' => 'tx-conpassione-pedigree',
'value' => 'pedigree'
];
$GLOBALS['TCA']['pages']['ctrl']['typeicon_classes']['contains-pedigree'] = 'tx-conpassione-pedigree';

// zusätzliche Icons für Folder-Seiten
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = [
'label' => 'LLL:EXT:cpkm/Resources/Private/Language/locallang_db.xlf:pages.label.litter',
'icon' => 'tx-conpassione-litter',
'value' => 'litter'
];
$GLOBALS['TCA']['pages']['ctrl']['typeicon_classes']['contains-litter'] = 'tx-conpassione-litter';

});
2 changes: 1 addition & 1 deletion Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'tt_content',
'CType',
'kennel',
'Wurfverwaltung',
'LLL:EXT:cpkm/Resources/Private/Language/locallang_db.xlf:extname',
'before:default'
);
});
Expand Down
9 changes: 5 additions & 4 deletions ContentBlocks/RecordTypes/Kennel/Assets/Icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ContentBlocks/RecordTypes/Kennel/language/de.labels.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<target>Adresse des Züchters</target>
</trans-unit>
<trans-unit id="k_first_name.label" resname="k_first_name.label">
<source>Name</source>
<source>First Name</source>
<target>Vorname</target>
</trans-unit>
<trans-unit id="k_last_name.label" resname="k_last_name.label">
Expand Down
4 changes: 2 additions & 2 deletions ContentBlocks/RecordTypes/Kennel/language/labels.xlf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file datatype="plaintext" original="Labels.xlf" source-language="en" date="2024-10-15T09:53:33+00:00" product-name="conpassione/kennel">
<file datatype="plaintext" original="labels.xlf" source-language="en" date="2024-10-17T14:13:37+00:00" product-name="conpassione/kennel">
<header/>
<body>
<trans-unit id="title" resname="title">
Expand Down Expand Up @@ -37,7 +37,7 @@
<source>Breeders address</source>
</trans-unit>
<trans-unit id="k_first_name.label" resname="k_first_name.label">
<source>Name</source>
<source>First Name</source>
</trans-unit>
<trans-unit id="k_last_name.label" resname="k_last_name.label">
<source>Last name</source>
Expand Down
39 changes: 29 additions & 10 deletions ContentBlocks/RecordTypes/Litter/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions ContentBlocks/RecordTypes/Litter/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ languageAware: false
labelField:
- l_date
- l_name
- l_kennel
- l_status
sortField:
- identifier: l_date
order: asc
Expand Down
56 changes: 56 additions & 0 deletions ContentBlocks/RecordTypes/Litter/language/de.labels.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,62 @@
<source>Litter</source>
<target>Wurf</target>
</trans-unit>
<trans-unit id="l_kennel.label" resname="l_kennel.label">
<source>Kennel</source>
<target>Zuchtstätte</target>
</trans-unit>
<trans-unit id="l_name.label" resname="l_name.label">
<source>Litter</source>
<target>Wurf</target>
</trans-unit>
<trans-unit id="l_date.label" resname="l_date.label">
<source>Day of Birth</source>
<target>Tag der Geburt</target>
</trans-unit>
<trans-unit id="l_status.label" resname="l_status.label">
<source>Status</source>
<target>Status</target>
</trans-unit>
<trans-unit id="l_status.items.1.label" resname="l_status.items.1.label">
<source>Mating report</source>
<target>Deckmeldung</target>
</trans-unit>
<trans-unit id="l_status.items.2.label" resname="l_status.items.2.label">
<source>Litter report</source>
<target>Wurfmeldung</target>
</trans-unit>
<trans-unit id="l_status.items.3.label" resname="l_status.items.3.label">
<source>not pregnant</source>
<target>nicht schwanger</target>
</trans-unit>
<trans-unit id="l_father.label" resname="l_father.label">
<source>Father</source>
<target>Vater</target>
</trans-unit>
<trans-unit id="l_mother.label" resname="l_mother.label">
<source>Mother</source>
<target>Mutter</target>
</trans-unit>
<trans-unit id="l_females.label" resname="l_females.label">
<source>Females</source>
<target>Hündinnen</target>
</trans-unit>
<trans-unit id="l_males.label" resname="l_males.label">
<source>Males</source>
<target>Rüden</target>
</trans-unit>
<trans-unit id="tabs.infotab" resname="tabs.infotab">
<source>Infos</source>
<target>Infos</target>
</trans-unit>
<trans-unit id="l_images.label" resname="l_images.label">
<source>Images</source>
<target>Bilder</target>
</trans-unit>
<trans-unit id="l_comment.label" resname="l_comment.label">
<source>Comment</source>
<target>Kommentar</target>
</trans-unit>
</body>
</file>
</xliff>
44 changes: 43 additions & 1 deletion ContentBlocks/RecordTypes/Litter/language/labels.xlf
Original file line number Diff line number Diff line change
@@ -1,11 +1,53 @@
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file datatype="plaintext" original="Labels.xlf" source-language="en" date="2024-10-15T09:53:33+00:00" product-name="conpassione/kennel">
<file datatype="plaintext" original="labels.xlf" source-language="en" date="2024-10-17T14:13:37+00:00" product-name="conpassione/litter">
<header/>
<body>
<trans-unit id="title" resname="title">
<source>Litter</source>
</trans-unit>
<trans-unit id="l_kennel.label" resname="l_kennel.label">
<source>Kennel</source>
</trans-unit>
<trans-unit id="l_name.label" resname="l_name.label">
<source>Litter</source>
</trans-unit>
<trans-unit id="l_date.label" resname="l_date.label">
<source>Day of Birth</source>
</trans-unit>
<trans-unit id="l_status.label" resname="l_status.label">
<source>Status</source>
</trans-unit>
<trans-unit id="l_status.items.1.label" resname="l_status.items.1.label">
<source>Mating report</source>
</trans-unit>
<trans-unit id="l_status.items.2.label" resname="l_status.items.2.label">
<source>Litter report</source>
</trans-unit>
<trans-unit id="l_status.items.3.label" resname="l_status.items.3.label">
<source>not pregnant</source>
</trans-unit>
<trans-unit id="l_father.label" resname="l_father.label">
<source>Father</source>
</trans-unit>
<trans-unit id="l_mother.label" resname="l_mother.label">
<source>Mother</source>
</trans-unit>
<trans-unit id="l_females.label" resname="l_females.label">
<source>Females</source>
</trans-unit>
<trans-unit id="l_males.label" resname="l_males.label">
<source>Males</source>
</trans-unit>
<trans-unit id="tabs.infotab" resname="tabs.infotab">
<source>Infos</source>
</trans-unit>
<trans-unit id="l_images.label" resname="l_images.label">
<source>Images</source>
</trans-unit>
<trans-unit id="l_comment.label" resname="l_comment.label">
<source>Comment</source>
</trans-unit>
</body>
</file>
</xliff>
20 changes: 13 additions & 7 deletions ContentBlocks/RecordTypes/Pedigree/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ContentBlocks/RecordTypes/Pedigree/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ labelField:
- p_name
- p_birth_date
- p_sex
- p_kennel
sortField:
- identifier: p_name
order: asc
Expand Down
Loading

0 comments on commit fffddf4

Please sign in to comment.