digitalfabrik / integreat-cms

Simplified content management back end for the Integreat App - a multilingual information platform for newcomers
https://digitalfabrik.github.io/integreat-cms/
Apache License 2.0
56 stars 35 forks source link

errors in Google Translation #3161

Open osmers opened 2 weeks ago

osmers commented 2 weeks ago

Describe the Bug

For the last few weeks, Google translations in the system came back with added extra spaces before and after the word where none were needed when a "do-not-translate"-tag was involved.

Edit: In some instances Google also decides to "delete" the word that is not marked but the same as the marked word. That can be tried with this text here: https://admin.integreat-app.de/testumgebung/pages/de/42409/edit/

Steps to Reproduce

  1. Go to https://admin.integreat-app.de/musterstadt/pages/de/42797/edit/
  2. Check words marked in red (no extra spaces)
  3. Change to another language (e.g. Italian https://admin.integreat-app.de/musterstadt/pages/it/42797/edit/)
  4. See added spaced before and after the German words

Expected Behavior

The marked words should appear without added spaces

Actual Behavior

Spacecs are added before and after the marked words

Additional Information

osmers commented 2 weeks ago

@svenseeberg you can try translating this text https://admin.integreat-app.de/testumgebung/pages/de/42409/edit/ with google and you will notice that it simply cuts the words that is used twice (Integrationsbeauftragte) and uses only the German one.