GithubHelp home page GithubHelp logo

kilikfr / translationbundle Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 8.0 73 KB

Symfony Tool to help Import/Export (missing) translations

PHP 98.13% Shell 1.87%
export-translations missing-translations symfony translation

translationbundle's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

translationbundle's Issues

Default Location app/Resources/translations

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.

Newlines in translations not correctly imported

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?

Not installing in symfony 4.4

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.

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.