ナビゲーションをスキップ

Open

Reported for: Gravity Forms Multilingual 1.8.2

Topic Tags: Compatibility

Overview of the issue

When using WPML with Gravity Forms, the Image Choice and Multiple Choice fields are not translated correctly. Choices’ labels and values from the Multiple Choice field are not available in the translation editor, and the “Image Choice” field may still appear in the original language even after translation.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open the …/wp-content/plugins/gravityforms-multilingual/inc/gfml-tm-api.class.php file.
  • Look for line 301.
  • Replace:
    case 'select':
    case 'multiselect':
    case 'checkbox':
    
  • With:
    case 'select':
    case 'multiselect':
    case 'checkbox':
    case 'image_choice':	// WPML workaround for compsupp-7756
    case 'multi_choice':
    
  • Then, look for line 523.
  • Replace:
    private function has_option_input_field_post_custom( GF_Field $field ) {
    	switch ( $field->inputType ) {
    		case 'checkbox':
    
  • With:
    private function has_option_input_field_post_custom( GF_Field $field ) {
    	switch ( $field->inputType ) {
    		case 'checkbox':
    		case 'image_choice':	// WPML workaround for compsupp-7756
    		case 'multi_choice':
    
    
  • Go to the Gravity Forms edit screen, make a minor modification to the image choice field (e.g., change a label slightly), and save the form.
  • Go to WPML > Translation Management page and send the form to translation
  • Translate the form.

8件の返信 へ “Gravity Forms - Image Choice And Multiple Choice Fields Are Not Translated”

  1. Hi,

    The workaround you provided worked ok. But what happens when gravity forms multilingual plugin is updated? Won’t the changes be lost?

    is there a permanent solution for this?

    Thank you

    • Hello Mike,
      Our developers are already aware of this issue, and it may be fix in the next GFML release. However, if that’s not the case and the workaround is overwritten, you may need to apply the patch again until a definitive solution is published.
      We will keep this page updated.

    • Hi Pieder,

      This will be included in the next Gravity Forms Multilingual release. However, I don’t have an ETA at the moment.

  2. This stills seems to be an issue?

    Using:
    – WPML Multilingual CMS 4.7.4
    – Gravity Forms 2.9.8
    – Gravity Forms Multilingual 1.8.2

    • Hi there,

      This issue has been reported for the current version of Gravity Forms Multilingual (1.8.2) and should be resolved in the next release. For now, please follow the instructions on this page.

      If it persists even with the workaround or you need help, feel free to open a support ticket on our forum.

  3. Hi there!

    Thanks for this patch, it seems to fix Multiple Choice fields not appearing for translation under the correct domain, and subsequently I can then see them output correctly on the front end.

    Do you have an ETA for the next release of Gravity Forms Multilingual?

    • Thanks for reaching out! We’re glad to hear the patch resolved the issue.

      Regarding the ETA for the next release, we don’t have a confirmed date at the moment. However, we’ll make sure to update this page as soon as there’s any progress.

返信を投稿

トピックに沿って他の人を尊重してください。この投稿に関連しない問題について助けが必要な場合は、サポートフォーラムを使用してチャットを開始するかチケットを送信してください。

以下のタグを使用できます:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>