Download the PHP package netresearch/nr-textdb without Composer
On this page you can find all versions of the php package netresearch/nr-textdb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download netresearch/nr-textdb
More information about netresearch/nr-textdb
Files in netresearch/nr-textdb
Package nr-textdb
Short Description Allows you to edit the translations in the back end
License AGPL-3.0-or-later
Informations about the package nr-textdb
Nr TextDB
Installation
Require the package.
- Datenorder anlegen -- Übersetzung für Datenordner anlegen (aktiviert Sprachumschalter im TCA)
- Beschreibung der TCA-Komponenten hinzufügen
Configuration
You can set the PID for your translations in the extension configuration. You can also switch off the "create if missing feature" if you want.
Export and Import
The TextDB offer the ability to import and export translations.
Import
General
To Import translations they have to be placed in a xlf file which name should be in the following format.
For en
name the file textdb_[name].xlf
for all other languages use e.g. de.textdb_[name].xlf
and replace de
by the
two-letter iso code of your desired language you will import the translations for.
File content
the content of the file you like to import should look like.
File content for language EN.
File content for all other languages.
How to import
- Open the TextDB Backend module
- Click on the import button
- Choose a file to import which meet the criteria above
- Click the import button
If you wish to replace existing entries click at the "overwrite existing" checkbox.
Export
It is also possible to Export a view of translations to import it in an other TYPO3 or to edit it an reimport it on the same instance.
To be able to export open the TextDB backend module in the list view and choose a Component or Type. To start the export click the "export with current filter" button below the list. This will export all entries with the current filtert and for all languages. The export will not respect the pagination.
Migration ViewHelper
- In order to migrate LLL file templates to textDB entries the extension provides a
textdb:translate
viewhelper - It implements the same interface like the
f:translate
viewhelper - so to migrate your translation try the following steps
- Include the textdb viewhelper to your template e.g.
xmlns:textdb="http://typo3.org/ns/Netresearch/NrTextdb/ViewHelpers"
- replace
f:translate
calls in your template withtextdb:translate
calls - go to your controller and set the required component e.g.
TranslateViewHelper::$component = 'my-component';
- call your templates/views etc. in frontend
- the
textdb:translate
viewhelper will load the current translation 0 as well as the language with uid 1 - it will load the translations from LLL files and insert them to the textDB
- After completed proceed as follows
- reset your template and code changes
- replace your
f:translate
calls withtextdb:textdb
calls by using the following regex with e.g. notepad++
`
Testing & Development
-
We use GrumPHP to comply with coding standards, perform unit testing, and ensure code coverage
- In addition, we use Rector to automatically perform migrations, comply with coding standards, and simplify and improve the code.
Known Issues
@TODO: Add Configuration Manual
All versions of nr-textdb with dependencies
ext-simplexml Version *
ext-libxml Version *
typo3/cms-core Version ^12.4
typo3/cms-backend Version ^12.4
typo3/cms-extbase Version ^12.4
typo3/cms-extensionmanager Version ^12.4