.. include:: /Includes.rst.txt .. _command_language_generate: ========================= Language Generate command ========================= The command :bash:`content-blocks:language:generate` updates the Labels.xlf content for the specified Content Block. Already set labels in both the Labels.xlf file and in the EditorInterface.yaml are considered. The Labels.xlf file has precedence over inline labels in the YAML definition. Optional keys like descriptions or labels for existing fields will only be be generated if they have been set manually. Custom translations, which don't belong to the automatic language keys, will be kept and appended to the end. Arguments ========= .. confval:: content-block :name: language-generate-content-block :Required: true (false if :bash:`--extension` provided) :Type: string The Content Block to generate the xlf for. Options ======= .. confval:: print :name: language-generate-print :Shortcut: p :Type: bool Print Labels.xlf to terminal instead of writing to file system. .. confval:: extension :name: language-generate-extension :Shortcut: e :Type: string Write Labels.xlf to all Content Blocks within the given extension. Write up-to-date Labels.xlf file for Content Block example/example. .. code-block:: bash vendor/bin/typo3 content-blocks:language:generate example/example Update all Labels.xlf files within the extension "site_package". .. code-block:: bash vendor/bin/typo3 content-blocks:language:generate example/example --extension="site_package" Print up-to-date Labels.xlf content for Content Block example/example. .. code-block:: bash vendor/bin/typo3 content-blocks:language:generate example/example --print Example output: .. code-block:: xml
My demo title This is just a demo/demo Existing field override My Slug My Slug Description my_collection text my_collection text external_table external_table_2 related_content My translation