Use CSV files to provide translation labels to TYPO3
Installs: 29 318
Open Issues: 0
- typo3/cms-core: ^12.2 || ^11.5 || ^10.4 || ^9.5
This package is auto-updated.
Last update: 2023-05-21 13:50:03 UTC
This utility extension extends the language handling of TYPO3 to be able to use a simple CSV file format to specify language labels. While the XLIFF file format is a widely used standard and is more powerful, CSV files can be a pragmatic approach for language files that only contain a handful of entries.
This extension does not remove or disable XLIFF files, it merely provides another file format to choose from. We at sitegeist use the CSV file format to define language labels for Fluid Components.
Install the extension either from TER or via composer:
composer require sitegeist/csv-labels
"id","description","default","de" "Actions","","Actions","Aktionen" "ConfirmDelete","Message in the delete user dialog","Should the following user be deleted?","Soll der folgende Nutzer gelöscht werden?"
- The column
idrepresents the label identifier
- The column
descriptionrepresents the label description (for documentation purposes)
- All other columns are treated as a translation for the locale from the header line
- The csv files use
,as delimiter and
"as text delimiters (default configuration of fgetcsv)
<!-- either explicitly --> <f:translate key="EXT:my_extension/Resources/Private/Language/locallang.csv:Actions" /> <!-- or as a fallback, in case the xlf file doesn't exist --> <f:translate key="EXT:my_extension/Resources/Private/Language/locallang.xlf:Actions" /> <!-- this means that it can also be used in extbase context without the full path --> <f:translate key="Actions" />
Authors & Sponsors
- Simon Praetorius - firstname.lastname@example.org
- All contributors
The development and the public-releases of this package is generously sponsored by my employer https://sitegeist.de.