Git Product home page Git Product logo

Comments (8)

goetas avatar goetas commented on September 3, 2024

solved already in #533

from jmstranslationbundle.

picks44 avatar picks44 commented on September 3, 2024

Cool @goetas thanks, is it already available in a release or shall I wait to upgrade the package?

from jmstranslationbundle.

goetas avatar goetas commented on September 3, 2024

from jmstranslationbundle.

picks44 avatar picks44 commented on September 3, 2024

OK, now I have this error on the same command (with package updated to 1.5.1). Any clue @goetas ?

08:19:49 ERROR     [console] Error thrown while running command "translation:ext
ract en --config=iwid --output-format=xliff". Message: "hash() expects parameter
 2 to be string, integer given" ["exception" => TypeError { …},"command" => "tra
nslation:extract en --config=iwid --output-format=xliff","message" => "hash() ex
pects parameter 2 to be string, integer given"]

from jmstranslationbundle.

goetas avatar goetas commented on September 3, 2024

from jmstranslationbundle.

picks44 avatar picks44 commented on September 3, 2024

@goetas The closest TK that I have that looks like an integer is "615 xxx xxx x"... it is a placeholder in a form.

from jmstranslationbundle.

franmomu avatar franmomu commented on September 3, 2024

can you please try to add a string casting in the second parameter of the hash function? in https://github.com/schmittjoh/JMSTranslationBundle/blob/master/Translation/Dumper/XliffDumper.php#L121, like this:

$unit->setAttribute('id', hash('sha1', (string) $id));

And see if there are more errors please?

from jmstranslationbundle.

picks44 avatar picks44 commented on September 3, 2024

Tested and validated, thanks guys!

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.