Problem/Motivation

If I exclude a field from translation in the Auto Translation Settings, the field remains empty in the translation. If I exclude e.g. a surname from translation, it should have its original value in the translation. For example, if translated, a common German surname like Bauer would become Farmer in the translation, Vogel would become Bird etc. Therefore, I exclude it, but then it remains empty.

Steps to reproduce

Exclude a field in the Auto translation settings and translate its node. The field will be empty, even if the original is not.

Proposed resolution

I made a patch which solved that problem for me. Please take a look.

Comments

martin mayer created an issue. See original summary.

martin mayer’s picture

Issue summary: View changes

  • bigbabert committed debeb008 on 1.0.x
    Issue #3538175 by martin mayer: Excluded fields remain empty in the...
bigbabert’s picture

Version: 1.4.29 » 1.4.30
Status: Active » Fixed
bigbabert’s picture

Hi @martin mayer,

i've re-used the elseif statement from your patch and added the get of settings in the centralized function getExcludedFields. Have a look to the new release 1.4.30 to verify that it works as expected.

Best regards

bigbabert’s picture

Status: Fixed » Closed (fixed)
martin mayer’s picture

Hi @bigbabert
I testet it and it works fine. Your solution is much more systematic than my idea. Thank you very much!