Here is a list of all the configuration files that need to updated and reviewed.

  • YAML form settings config: yamlform.settings DONE
  • YAML form config entity: yamlform.yamlform.*: DONE
  • YAML form options config entity:yamlform.yamlform_options.*: DONE
  • YAML form email handler: yamlform.handler.email: DONE
  • YAML form field: field.field_settings.yamlform DONE

Comments

pmusaraj created an issue. See original summary.

jrockowitz’s picture

I kind of felt this was a phase 2 feature because I am not sure what the best approach is.

For example, should the I just pass all strings through the translate function or do I allow the YAML form and YAML form options config entities to be translated.

I do almost no work using translations, so I think someone might have to step in and help build out this feature.

BTW, if passing all strings though the t() function could be a partial/temp solution, I could probably do it.

pmusaraj’s picture

I am not entirely sure what the "best" solution is, but my guess is that passing all visible strings (labels, not values, for examples) through t() should suffice... although, yes, there are config entities that have text that gets displayed or sent via email and that might need something different...

jrockowitz’s picture

You bring up a valid point about email, it starts to seem like the entire YAML form has to be translated. A better work around might to be to create a duplicate form for the translation and direct the user to the correct form based on the user's current language.

jrockowitz’s picture

I did a quick test and my configuration entities (ie YAML form and YAML form options) are not translatable when I assumed they would be. I will look into this issue and try to figure out the best approach for translating the input labels, descriptions, and options.

jrockowitz’s picture

Okay so my config schema was not translatable, basically everything was strings instead of labels and text when application. https://www.drupal.org/node/1905070

I am going to update the main ticket and start fixing things. There is a lot of config files that need to be reviewed so this going to take some time.

jrockowitz’s picture

Title: Translating field labels » Allow configuration settings and entities to be translated.
Issue summary: View changes

  • jrockowitz committed 246f63d on 8.x-1.x
    git commit -m 'Issue #2664856: Allow configuration settings and entities...

  • jrockowitz committed 7bbe318 on 8.x-1.x
    Issue #2664856: Allow configuration settings and entities to be...

  • jrockowitz committed 83d0aa7 on 8.x-1.x
    Issue #2664856: Allow configuration settings and entities to be...
jrockowitz’s picture

Issue summary: View changes

  • jrockowitz committed 1d097fd on 8.x-1.x
    Issue #2664856: Allow configuration settings and entities to be...

  • jrockowitz committed 6bd3563 on 8.x-1.x
    Issue #2664856: Allow configuration settings and entities to be...

  • jrockowitz committed ac385c0 on 8.x-1.x
    Issue #2664856: Allow configuration settings and entities to be...
jrockowitz’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.