Coder Social home page Coder Social logo

Comments (4)

KapiX avatar KapiX commented on June 29, 2024

If the key had trailing spaces, but this was removed, Polyglot doesn't detect the change and leaves the spaces in the key.

Perhaps ORM is trimming the parameters.

Same issue if the key text remains the same except for a capitalisation change on one of the letters.

Right, I have case-insensitive collation set on the database so of course STRCMP would ignore case. SQL is fun. :)

I will look more closely into this over next few days.

From README:

Non escaped newline (\n) and tab (\t) characters in keys

Do you mean there is an actual new line in the file?

from polyglot.

adamfowleruk avatar adamfowleruk commented on June 29, 2024

No, all the newlines and tabs were escaped in my example. PulkoMandy suggested I look for unescaped ones, so that's where my investigation started.

I may alter my catkeys testing programme to do auto fixes for these things perhaps...

Thanks for taking a look! I know someone wants the Portuguese translation.

from polyglot.

KapiX avatar KapiX commented on June 29, 2024

Turns out ignoring trailing whitespace when comparing strings is another MySQL, and not ORM, feature.

I have addressed this issue by trying to detect case and whitespace changes, and instead of dropping these differing strings with their translations, they are just updated and translations marked as incomplete.

The fix is already deployed.

@humdingerb can you update relevant help pages with that info? :)

from polyglot.

adamfowleruk avatar adamfowleruk commented on June 29, 2024

Great, thanks!

from polyglot.

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.