Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add XLIFF 2.0 support #692

Closed
Haehnchen opened this issue Mar 5, 2016 · 3 comments
Closed

Add XLIFF 2.0 support #692

Haehnchen opened this issue Mar 5, 2016 · 3 comments
Labels

Comments

@Haehnchen
Copy link
Owner

http://symfony.com/blog/new-in-symfony-2-8-translator-improvements

specification
http://docs.oasis-open.org/xliff/xliff-core/v2.0/xliff-core-v2.0.html

new

<xliff xmlns="urn:oasis:names:tc:xliff:document:2.0"
       version="2.0" srcLang="en-US" trgLang="ja-JP">
    <file id="f1" original="Graphic Example.psd">
        <skeleton href="Graphic Example.psd.skl"/>
        <group id="1">
            <unit id="1">
                <segment>
                    <source>foo</source>
                    <target>XLIFF 文書を編集、または処理 するアプリケーションです。</target>
                </segment>
            </unit>
        </group>
    </file>
</xliff>

supported

<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
    <file source-language="en" datatype="plaintext" original="file.ext">
        <body>
            <trans-unit id="1">
                <source>Symfony is great xliff</source>
                <target>J'aime Symfony</target>
            </trans-unit>
        </body>
    </file>
</xliff>
Haehnchen added a commit that referenced this issue Mar 6, 2016
@Haehnchen Haehnchen added the fixed label Mar 6, 2016
@rvanlaak
Copy link

rvanlaak commented Mar 9, 2016

Big 👍 this probably allows us to do https://docs.weblate.org/en/latest/admin/continuous.html

@Haehnchen
Copy link
Owner Author

thx for link, a sweet service

@rvanlaak
Copy link

rvanlaak commented Mar 9, 2016

I am still trying to find out how to implement the Continuous Translation with XLIFF, PHPStorm and Symfony. Seems there still are some incompatibilities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants