Git Product home page Git Product logo

Comments (3)

ingedgarmorales avatar ingedgarmorales commented on June 24, 2024 1

Hi There,

You only need to add the parameter 'source_language' in your config.yml

jms_translation:
    source_language: "%locale%"
    configs:
        app:
            dirs: [%kernel.root_dir%, %kernel.root_dir%/../src]
            output_dir: %kernel.root_dir%/Resources/translations
            ignored_domains: [routes]
            excluded_names: ["*TestCase.php", "*Test.php", "*.php"]
            excluded_dirs: [cache, data, logs]

For example:

jms_translation:
    source_language: "es_ES"

output:

<file date="2016-06-11T06:53:19Z" source-language="es_ES" target-language="it_IT" datatype="plaintext" original="not.available">

and

jms_translation:
    source_language: "de_DE"

output:

<file date="2016-06-11T06:53:19Z" source-language="de_DE" target-language="it_IT" datatype="plaintext" original="not.available">

from jmstranslationbundle.

Nyholm avatar Nyholm commented on June 24, 2024 1

Thank you @ingedgarmorales

from jmstranslationbundle.

tobias-nawa avatar tobias-nawa commented on June 24, 2024

This is still a problem for me. I'm writing my strings in german an the source-language in the xliff files is always "en". And that's a problem for my translation tool Matecat.

from jmstranslationbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.