-
AuthorPosts
-
December 19, 2018 at 6:34 pm #1047311
Hi,
I am using a WordPress translation plugin called Translatepress. It allows you to translate a page through a single interface, which makes it easy because my current project has a lot of pages +50. I don’t want a translation plugin that requires you to create multiple pages for each translation, because in this project I have 5 different languages to be translated. So I want to reduce the workload and translate everything from one place.
However now I ran into a problem. The project contains downloadable PDF files and the PDF files should be different for each language selected. Since TranslatePress only translates the texts that are visible on the page, and not the PDF files, how can I go about this project so that the texts and the PDF links would change according to the language selected, while using TranslatePress or some similar interface translation plugin?
Thank you in advance!
December 19, 2018 at 7:30 pm #1047340Hey,
Thanks for contacting us!
We do not have experience with the plugin you are using. Have you contacted plugin authors and asked if there is a way to use different links per language?
Cheers!
YigitDecember 20, 2018 at 4:23 pm #1047773Hi,
Thanks for your reply. I reached out to them and basically, the above-mentioned task is possible, but only by using a shortcode. It should be added in the post / page where the link to the PDF exists.
An example of this is shown down below:[trp_language language="en_US"] <img src="https://example.com/image_en.png" /> [/trp_language] [trp_language language="fr_FR"] <img src="https://example.com/image_fr.png" /> [/trp_language]
So I have a PDF button and I want to add this code as the link to the PDF button so that when a user clicks on the button, it should open the corresponding PDF file based on the language selected. Do you have any idea on how I could make this work or how I could integrate this code with the PDF link option in Enfold?
December 23, 2018 at 4:44 am #1048739Hi,
Thanks for posting the example. What type of a link are you using to the pdfs? If they are manual then you should be able to add that directly to the link. If possible then please provide us with an example on a live site.
Best regards,
RikardJuly 12, 2022 at 3:41 am #1358015This reply has been marked as private.July 12, 2022 at 4:13 am #1358019Hi,
As I understand the topic, this user was using a plugin that had some shortcode which could be used to wrap elements and would show or hide them based on the language, if you are using a plugin that offers a similar shortcode, try adding the button shortcode inside of the translation shortcode, for example:[trp_language language="en_US"] [av_button label='Button' icon_select='no' icon='ue800' font='entypo-fontello' link='manually,https://example.com/doc_us.pdf' link_target='' size='small' position='center' label_display='' title_attr='' color_options='' color='theme-color' custom_bg='#444444' custom_font='#ffffff' btn_color_bg='theme-color' btn_custom_grad_direction='vertical' btn_custom_grad_1='#000000' btn_custom_grad_2='#ffffff' btn_custom_grad_3='' btn_custom_grad_opacity='0.7' btn_custom_bg='#444444' btn_color_bg_hover='theme-color-highlight' btn_custom_bg_hover='#444444' btn_color_font='theme-color' btn_custom_font='#ffffff' btn_color_font_hover='white' btn_custom_font_hover='#ffffff' border='' border_width='' border_width_sync='true' border_color='' border_radius='' border_radius_sync='true' box_shadow='' box_shadow_style='0px,0px,0px,0px' box_shadow_color='' animation='' animation_duration='' animation_custom_bg_color='' animation_z_index_curtain='100' hover_opacity='' sonar_effect_effect='' sonar_effect_color='' sonar_effect_duration='1' sonar_effect_scale='' sonar_effect_opac='0.5' css_position='' css_position_location=',,,' css_position_z_index='' av-medium-css_position='' av-medium-css_position_location=',,,' av-medium-css_position_z_index='' av-small-css_position='' av-small-css_position_location=',,,' av-small-css_position_z_index='' av-mini-css_position='' av-mini-css_position_location=',,,' av-mini-css_position_z_index='' id='' custom_class='' template_class='' av_uid='' sc_version='1.0' admin_preview_bg=''] [/trp_language] [trp_language language="fr_FR"] [av_button label='Button' icon_select='no' icon='ue800' font='entypo-fontello' link='manually,https://example.com/doc_fr.pdf' link_target='' size='small' position='center' label_display='' title_attr='' color_options='' color='theme-color' custom_bg='#444444' custom_font='#ffffff' btn_color_bg='theme-color' btn_custom_grad_direction='vertical' btn_custom_grad_1='#000000' btn_custom_grad_2='#ffffff' btn_custom_grad_3='' btn_custom_grad_opacity='0.7' btn_custom_bg='#444444' btn_color_bg_hover='theme-color-highlight' btn_custom_bg_hover='#444444' btn_color_font='theme-color' btn_custom_font='#ffffff' btn_color_font_hover='white' btn_custom_font_hover='#ffffff' border='' border_width='' border_width_sync='true' border_color='' border_radius='' border_radius_sync='true' box_shadow='' box_shadow_style='0px,0px,0px,0px' box_shadow_color='' animation='' animation_duration='' animation_custom_bg_color='' animation_z_index_curtain='100' hover_opacity='' sonar_effect_effect='' sonar_effect_color='' sonar_effect_duration='1' sonar_effect_scale='' sonar_effect_opac='0.5' css_position='' css_position_location=',,,' css_position_z_index='' av-medium-css_position='' av-medium-css_position_location=',,,' av-medium-css_position_z_index='' av-small-css_position='' av-small-css_position_location=',,,' av-small-css_position_z_index='' av-mini-css_position='' av-mini-css_position_location=',,,' av-mini-css_position_z_index='' id='' custom_class='' template_class='' av_uid='' sc_version='1.0' admin_preview_bg=''] [/trp_language]
Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.