Comments (4)
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.
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.
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.
Great, thanks!
from polyglot.
Related Issues (20)
- Add a page to see progress per language HOT 3
- Show names of all contributors not only last one HOT 2
- Add language - friulian support HOT 1
- flag friulian-friûl HOT 1
- Have "Export all" link visible to everybody HOT 2
- Please add Asturian HOT 1
- Add a user search function HOT 1
- Add searching/filtering for a string HOT 1
- Add widget to clear search/filter HOT 1
- Glossary: Add headers to text boxes in "new entry" page HOT 2
- Avoid corrupted catkeys due to a new-line as first/last line in the translation HOT 1
- Allow exporting all/finished catkeys of multi-module projects HOT 2
- Dark mode
- Add Canadian and Australian English HOT 1
- Add favicon
- Display overall translation progress whilst translating
- Add button to load more translations
- [REQ] "standalone" Polyglot
- List projects according to last updated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polyglot.