Comments (3)
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.
Thank you @ingedgarmorales
from jmstranslationbundle.
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)
- Requirement of nikic/php-parser does not match packgist page HOT 1
- Twig 3 support HOT 3
- Symfony 5 dependencies update HOT 4
- New major release HOT 1
- 1.5 => simplexml_load_file() expects parameter 1 to be a valid path, object given HOT 8
- ExtractTranslationCommand unlink() expects parameter 1 to be a valid path, object given HOT 1
- jms/translation-bundle (1.5.2) HOT 4
- XliffLoader depends on state of libxml_disable_entity_loader HOT 2
- strtolower() expects parameter 1 to be string, object given HOT 3
- KNP/DoctrineBehavior - Translation Entities error on translation:extract command
- Notice: Undefined property: PhpParser\Node\Expr\Closure::$items
- Support for intl-icu translation files HOT 3
- Notice: Trying to get property 'key' of non-object
- All Form Constraint options are extracted without checking if it's a message or not
- Error ArrayStructureDumper
- Command conflict with framework bundle
- Compatibility with Symfony6 HOT 5
- String interpolation deprecation notices with PHP 8.2 HOT 2
- Is this a known error ? HOT 2
- Doctrine/Annotations as required dependency HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jmstranslationbundle.