• Resolved Marco

    (@michelyweb)


    Hi there,

    we translate the page with free version of TranslatePress plugin.
    Now if we fill a form the link on the translated form (slug for example /de/my-form), the download link is prefixed with “/de/” and the link is not working. Removing the “/de/” language piece from the url the pdf gets downloaded.

    How can we solve this?
    Will it work with translating forms with TranslatePress or do we need to change the translation plugin?

    Ideas highly appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jake Jackson

    (@blue-liquid-designs)

    Hey there,

    Thanks for reporting this issue! We don’t currently have support for the TranslatePress add-on, but if you’d just like to ensure the PDFs generate when accessed using one of the translated URLs (i.e /de/) you can drop this code in your active theme’s functions.php file:

    add_action( 'gfpdf_pre_view_or_download_pdf', function() {
    	add_filter( 'trp_stop_translating_page', '__return_true' );
    } );

    The PDF won’t be translated, but it will generate and download like it would if you accessed it without the language slug in the URL.

    Thread Starter Marco

    (@michelyweb)

    Thank you @blue-liquid-designs for the answer.
    Which translation plugin is supported? At this point i can use another one.

    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    We don’t currently have official support for any of the existing Translation plugins available. It is on our todo list, but isn’t scheduled to be developed for at least 6 months (estimate only).

    • This reply was modified 4 years, 8 months ago by Jake Jackson.
    Thread Starter Marco

    (@michelyweb)

    Ouch ??
    Thanks for the answer

    • This reply was modified 4 years, 8 months ago by Marco.
    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    As an alternative, you can create custom PDF templates in the languages of your choice.

    Thread Starter Marco

    (@michelyweb)

    Thank you @blue-liquid-designs for the support.
    That’s a valid solution for now i think.
    ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Link to pdf on translated page not working’ is closed to new replies.