kilikfr / translationbundle Goto Github PK
View Code? Open in Web Editor NEWSymfony Tool to help Import/Export (missing) translations
Symfony Tool to help Import/Export (missing) translations
Since CI is enabled (with travis), add phpcsfixer to chack coding standard.
Since branch 0.2, we could add tests.
ExportCommand.php needs tests.
Hi, great bundle! - I found it very useful.
Our translation files were in the app/Resources/translations directory (so none were found)
I just copied them to the Resources/translations/ directory inside our named bundle to find them and all worked as expected. Maybe worth updating the readme just to mention this.
From the docs:
Translation Resource/File Names and Locations¶
Symfony looks for message files (i.e. translations) in the following default locations:
the app/Resources/translations directory;
the app/Resources/<bundle name>/translations directory;
the Resources/translations/ directory inside of any bundle.
When I export a translation like this:
key: "foo\n\nbar"
and then import it again, it is transformed to this (using single quotes):
key: 'foo\n\nbar'
The latter means that \n
is interpreted not as a newline but as a literal slash character followed by the letter n
.
This makes importing painful because we need to edit the Yaml files after importing to fix it.
Can you fix this?
Hi, i'm triying to install with composer in Symfoy 4.4, but says thet version 1.0 requires Symfony/yaml 5.4+, but all dependencies of projects are 4.4.
On Symfony 4 projects, Command lines need to be declared like services, with tags.
Since branch 0.2, we could add tests.
ImportCommand.php needs tests.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.