-
Notifications
You must be signed in to change notification settings - Fork 293
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
Definition of source-language #78
Comments
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. |
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"> |
Thank you @ingedgarmorales |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On the generated xliff file of an extract, the source-language is always
source-language="en"
.I'm developing my app in pt_BR (so it should be the source-language, right?), my config.yml:
So, if i extract using:
I get respectively (example):
So, 2 points:
source-language
, there should be antarget-language
(as in the en example)?I believe that there should be a new configuration parameter, as nor
default_locale
orfallback
have the meaning for a "Strings are in X locale".As each bundle can be written in different "source-languages" maybe the option should be defined when the extraction happens?
The text was updated successfully, but these errors were encountered: