<wpml-config>
    <!--
        Read by WPML and by Polylang. Listings, categories, locations and tags
        are translated; directories, maps, plans, form templates and claims are
        site settings every language shares (a listing's `_directory_id` and plan
        point at one post, whatever its language).

        The form's own fields (`_w2dc_<slug>`) depend on the site's form
        template, so they are not listed here: the plugin adds them at run time
        (core/src/I18n/Multilingual.php - text fields translated, the rest
        copied).
    -->
    <custom-types>
        <custom-type translate="1">w2dc_listing</custom-type>
        <custom-type translate="0">w2dc_directory</custom-type>
        <custom-type translate="0">w2dc_map</custom-type>
        <custom-type translate="0">w2dc_plan</custom-type>
        <custom-type translate="0">w2dc_form_template</custom-type>
        <custom-type translate="0">w2dc_claim</custom-type>
    </custom-types>
    <taxonomies>
        <taxonomy translate="1">w2dc-category</taxonomy>
        <taxonomy translate="1">w2dc-location</taxonomy>
        <taxonomy translate="1">w2dc-tag</taxonomy>
    </taxonomies>
    <custom-fields>
        <!-- Where the listing is. The plugin rebuilds a translation's map
             markers from these (and re-points them at its own location terms). -->
        <custom-field action="copy">_w2dc_lat</custom-field>
        <custom-field action="copy">_w2dc_lng</custom-field>
        <custom-field action="copy">_w2dc_manual_coords</custom-field>
        <custom-field action="copy">_w2dc_taxonomy_location_id</custom-field>
        <custom-field action="copy">_w2dc_location_row_id</custom-field>
        <custom-field action="copy">_w2dc_location_markers</custom-field>
        <custom-field action="copy">_w2dc_map_zoom</custom-field>
        <!-- The address text may be localised by the translator. -->
        <custom-field action="copy-once">_w2dc_address_line_1</custom-field>
        <custom-field action="copy-once">_w2dc_address_line_2</custom-field>
        <custom-field action="copy-once">_w2dc_zip</custom-field>
        <!-- Status, dates and plan: a translation lives and expires with its original. -->
        <custom-field action="copy">_w2dc_listing_status</custom-field>
        <custom-field action="copy">_listing_status</custom-field>
        <custom-field action="copy">_w2dc_expiration_date</custom-field>
        <custom-field action="copy">_expiration_date</custom-field>
        <custom-field action="copy">_w2dc_expiration_override</custom-field>
        <custom-field action="copy">_w2dc_order_date</custom-field>
        <custom-field action="copy">_order_date</custom-field>
        <custom-field action="copy">_w2dc_listing_created</custom-field>
        <custom-field action="copy">_listing_created</custom-field>
        <custom-field action="copy">_w2dc_listing_plan</custom-field>
        <custom-field action="copy">_w2dc_order_id</custom-field>
        <custom-field action="copy">_w2dc_package_used</custom-field>
        <custom-field action="copy">_directory_id</custom-field>
        <custom-field action="copy">_w2dc_primary_category</custom-field>
        <custom-field action="copy">_w2dc_primary_location</custom-field>
        <custom-field action="copy">_w2dc_template_id</custom-field>
        <custom-field action="copy">_w2dc_listing_original_author</custom-field>
        <!-- Contact and media. -->
        <custom-field action="copy">_w2dc_contact_email</custom-field>
        <custom-field action="copy">_w2dc_attached_image</custom-field>
        <custom-field action="copy">_w2dc_logo_image_id</custom-field>
        <custom-field action="copy">_w2dc_attached_video</custom-field>
        <!-- Image and video captions, per listing: a translation starts from
             the original's and then keeps its own. -->
        <custom-field action="copy-once">_w2dc_media_captions</custom-field>
        <!-- Ratings belong to the listing, not to one language. -->
        <custom-field action="copy">_avg_rating</custom-field>
        <custom-field action="copy">_w2rr_ratings_count</custom-field>
        <!-- Per-post bookkeeping, never carried over. -->
        <custom-field action="ignore">_w2dc_history</custom-field>
        <custom-field action="ignore">_w2dc_log_last_status</custom-field>
        <custom-field action="ignore">_w2dc_log_last_exp</custom-field>
        <custom-field action="ignore">_w2dc_log_created</custom-field>
        <custom-field action="ignore">_w2dc_activation_token</custom-field>
    </custom-fields>
</wpml-config>
