sulu / SuluArticleBundle

Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system
MIT License
57 stars 77 forks source link

Add xliff export for articles #508

Closed wachterjohannes closed 4 years ago

wachterjohannes commented 4 years ago
Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets none
Related issues/PRs https://github.com/sulu/sulu/pull/5494
License MIT

What's in this PR?

This PR add a command to export the articles as xliff export. In a following PR it will be possible to import the translated file again.

Why?

It should be possible to use the exported file to translate the articles with a tool or a translation agency.

Example Usage

$ bin/adminconsole sulu:article:export export.xliff en

Article Language Export
=======================

Options
Target: export.xliff
Locale: en
Format: 1.2.xliff
---------------

Continue with this options?(y/n) y
Continue!
Loading Data…
 30/30 [============================] 100%
Render Xliff…

To Do

alexander-schranz commented 4 years ago

@wachterjohannes currently the sulu_route.content_type.page_tree_route is not handled. It does not implement the export interface. So articles using the page_tree_route are not correctly exported or imported.

wachterjohannes commented 4 years ago

@alexander-schranz they have implemented it thrue the SimpleContentType which is exportable by default

alexander-schranz commented 4 years ago

@wachterjohannes its not tagged to be exportable as xliff can you create a PR for fixing this?

wachterjohannes commented 4 years ago

@alexander-schranz have done https://github.com/sulu/sulu/pull/5494