Disable WPML translation for tribe_events

Home Forums Calendar Products Events Calendar PRO Disable WPML translation for tribe_events

  • This topic has 3 replies, 3 voices, and was last updated 7 years ago by dezemberundjuli.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1260667
    dezemberundjuli
    Participant
    #1260719
    dezemberundjuli
    Participant

    That did the trick for me:

    Create a wpml-config.xml in your theme folder and add parameters as you need. For me ‘custom types’ and ‘categories’:

    <wpml-config>
        <custom-fields>
            <custom-field action="translate">title</custom-field>
            <custom-field action="translate">description</custom-field>
            <custom-field action="translate">keywords</custom-field>
            <custom-field action="ignore">_edit_last</custom-field>
            <custom-field action="ignore">_edit_lock</custom-field>
            <custom-field action="ignore">_wp_page_template</custom-field>
            <custom-field action="ignore">_wp_attachment_metadata</custom-field>
            <custom-field action="ignore">original_post_id</custom-field>
            <custom-field action="ignore">_wpml_original_post_id</custom-field>
            <custom-field action="ignore">_wp_old_slug</custom-field>
            <custom-field action="ignore">_icl_translator_note</custom-field>
            <custom-field action="ignore">_alp_processed</custom-field>
            <custom-field action="ignore">_pingme</custom-field>
            <custom-field action="ignore">_encloseme</custom-field>
            <custom-field action="ignore">_icl_lang_duplicate_of</custom-field>
            <custom-field action="ignore">_thumbnail_id</custom-field>
            <custom-field action="ignore">_wp_attached_file</custom-field>
        </custom-fields>
        <custom-types>
            <custom-type translate="0">tribe_venue</custom-type>
            <custom-type translate="0">tribe_organizer</custom-type>
            <custom-type translate="0">tribe_events</custom-type>
            <custom-type translate="0">tribe_rsvp_tickets</custom-type>
            <custom-type translate="0">ticket-meta-fieldset</custom-type>
        </custom-types>
        <taxonomies>
            <taxonomy translate="0">tribe_events_cat</taxonomy>
        </taxonomies>
        <language-switcher-settings>
            <key name="link_empty">0</key>
            <key name="statics">
                <key name="footer">
                    <key name="show">0</key>
                    <key name="display_flags">1</key>
                    <key name="display_names_in_current_lang">1</key>
                    <key name="display_names_in_native_lang">1</key>
                    <key name="display_link_for_current_lang">1</key>
                    <key name="font_current_normal">#444444</key>
                    <key name="font_current_hover">#000000</key>
                    <key name="background_current_normal">#ffffff</key>
                    <key name="background_current_hover">#eeeeee</key>
                    <key name="font_other_normal">#444444</key>
                    <key name="font_other_hover">#000000</key>
                    <key name="background_other_normal">#ffffff</key>
                    <key name="background_other_hover">#eeeeee</key>
                    <key name="border">#cdcdcd</key>
                </key>
                <key name="post_translations">
                    <key name="show">0</key>
                    <key name="display_flags">0</key>
                    <key name="display_names_in_current_lang">1</key>
                    <key name="display_names_in_native_lang">1</key>
                    <key name="display_link_for_current_lang">0</key>
                    <key name="display_before_content">1</key>
                    <key name="display_after_content">0</key>
                    <key name="availability_text">This post is also available in: %s</key>
                </key>
                <key name="shortcode_actions">
                    <key name="display_flags">0</key>
                    <key name="display_names_in_current_lang">1</key>
                    <key name="display_names_in_native_lang">1</key>
                    <key name="display_link_for_current_lang">1</key>
                </key>
            </key>
        </language-switcher-settings>
    </wpml-config>
    

    Beste regards

    #1260726
    Geoff
    Member

    Nice work! So glad to hear you landed on a solution and I really appreciate you sharing the answer — I’m sure others will find this super useful as well. 🙂

    I’ll go ahead and close this thread but let us know if any other questions come up and we’d be happy to help as best we can.

    Cheers!
    Geoff

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Disable WPML translation for tribe_events’ is closed to new replies.