<wpml-config>
    <custom-types>
        <custom-type translate="1">at_biz_dir</custom-type>
        <custom-type translate="0">atbdp_orders</custom-type>
        <custom-type translate="0">listing-announcement</custom-type>
    </custom-types>

    <taxonomies>
        <taxonomy translate="1">at_biz_dir-location</taxonomy>
        <taxonomy translate="1">at_biz_dir-category</taxonomy>
        <taxonomy translate="1">at_biz_dir-tags</taxonomy>
        <taxonomy translate="1">atbdp_listing_types</taxonomy>
    </taxonomies>

    <!--
        Ensure each directory type term keeps the same "default" flag across all
        languages so there is always a default directory type per language.
        This mirrors WPML’s suggested configuration:

        <custom-term-fields>
          <custom-term-field action="copy">_default</custom-term-field>
        </custom-term-fields>
    -->
    <custom-term-fields>
        <custom-term-field action="copy">_default</custom-term-field>
    </custom-term-fields>

    <admin-texts>
        <key name="atbdp_option">
            <!-- All Listings -->
            <key name="all_listing_title"/>
            <key name="listings_filter_button_text"/>
            <key name="listings_reset_text"/>
            <key name="listings_apply_text"/>
            <key name="sort_by_text"/>
            <key name="view_as_text"/>

            <!-- Single Listings -->
            <key name="pending_confirmation_msg"/>
            <key name="publish_confirmation_msg"/>

            <!-- Listing Currency -->
            <key name="g_currency"/>

            <!-- Search Listing -->
            <key name="search_title"/>
            <key name="search_subtitle"/>
            <key name="search_listing_text"/>
            <key name="search_more_filters"/>
            <key name="search_reset_text"/>
            <key name="search_apply_filter"/>

            <!-- Search Result -->
            <key name="search_result_filter_button_text"/>
            <key name="sresult_reset_text"/>
            <key name="sresult_apply_text"/>
            <key name="search_viewas_text"/>
            <key name="search_sortby_text"/>

            <!-- Registration Form -->
            <key name="reg_username"/>
            <key name="reg_password"/>
            <key name="reg_email"/>
            <key name="registration_privacy_label"/>
            <key name="registration_privacy_label_link"/>
            <key name="regi_terms_label"/>
            <key name="reg_signup"/>
            <key name="login_text"/>
            <key name="log_linkingmsg"/>

            <!-- Login Form -->
            <key name="log_username"/>
            <key name="log_password"/>
            <key name="log_rememberme"/>
            <key name="log_button"/>
            <key name="reg_text"/>
            <key name="reg_linktxt"/>
            <key name="recpass_text"/>
            <key name="recpass_desc"/>
            <key name="recpass_username"/>
            <key name="recpass_placeholder"/>
            <key name="recpass_button"/>

            <!-- Dashboard -->
            <key name="my_profile_tab_text"/>
            <key name="fav_listings_tab_text"/>
            <key name="announcement_tab_text"/>
            <key name="my_listing_tab_text"/>
            <key name="become_author_button_text"/>

            <!-- All Authors -->
            <key name="all_authors_button_text"/>

            <!-- Email General -->
            <key name="email_from_name"/>

            <!-- Email Templates -->
            <key name="email_sub_new_listing"/>
            <key name="email_tmpl_new_listing"/>
            <key name="email_sub_pub_listing"/>
            <key name="email_tmpl_pub_listing"/>
            <key name="email_sub_edit_listing"/>
            <key name="email_tmpl_edit_listing"/>
            <key name="email_sub_to_expire_listing"/>
            <key name="email_tmpl_to_expire_listing"/>
            <key name="email_sub_expired_listing"/>
            <key name="email_tmpl_expired_listing"/>
            <key name="email_sub_to_renewal_listing"/>
            <key name="email_tmpl_to_renewal_listing"/>
            <key name="email_sub_renewed_listing"/>
            <key name="email_tmpl_renewed_listing"/>
            <key name="email_sub_deleted_listing"/>
            <key name="email_tmpl_deleted_listing"/>
            <key name="email_sub_new_order"/>
            <key name="email_tmpl_new_order"/>
            <key name="email_sub_offline_new_order"/>
            <key name="email_tmpl_offline_new_order"/>
            <key name="email_sub_completed_order"/>
            <key name="email_tmpl_completed_order"/>
            <key name="email_sub_listing_contact_email"/>
            <key name="tmpl_listing_contact_email"/>
            <key name="sub_registration_confirmation"/>
            <key name="email_tmpl_registration_confirmation"/>
            
            <!-- Monetization -->
            <key name="payment_currency"/>
            <key name="bank_transfer_title"/>
            <key name="bank_transfer_description"/>
            <key name="bank_transfer_instruction"/>
            <key name="featured_listing_title"/>
            <key name="featured_listing_desc"/>
            
            <!-- Badge Management -->
            <key name="new_badge_text"/>
            <key name="popular_badge_text"/>
            <key name="feature_badge_text"/>
            
            <!-- SEO -->
            <key name="add_listing_page_meta_title"/>
            <key name="add_listing_page_meta_desc"/>
            <key name="all_listing_meta_title"/>
            <key name="all_listing_meta_desc"/>
            <key name="dashboard_meta_title"/>
            <key name="dashboard_meta_desc"/>
            <key name="author_profile_meta_title"/>
            <key name="author_page_meta_desc"/>
            <key name="category_meta_title"/>
            <key name="single_category_meta_title"/>
            <key name="single_category_meta_desc"/>
            <key name="all_locations_meta_title"/>
            <key name="all_locations_meta_desc"/>
            <key name="single_locations_meta_title"/>
            <key name="single_locations_meta_desc"/>
            <key name="registration_meta_title"/>
            <key name="registration_meta_desc"/>
            <key name="login_meta_title"/>
            <key name="login_meta_desc"/>
            <key name="homepage_meta_desc"/>
            <key name="search_result_meta_desc"/>
            
            <!-- Claim Listing extension -->
            <key name="claim_widget_title"/>
            <key name="claim_widget_description"/>
            <key name="claim_now"/>
            <key name="email_sub_new_claim"/>
            <key name="email_tmpl_new_claim"/>
            <key name="email_sub_approved_claim"/>
            <key name="email_tmpl_approved_claim"/>
            <key name="email_sub_declined_claim"/>
            <key name="email_tmpl_declined_claim"/>
        </key>
    </admin-texts>

    <custom-fields>
        <custom-field action="translate">_tagline</custom-field>
        <custom-field action="translate">_price</custom-field>
        <custom-field action="copy">_price_range</custom-field>
        <custom-field action="copy">_atbdp_post_views_count</custom-field>
        <custom-field action="translate">_excerpt</custom-field>
        <custom-field action="copy">_tax_input[at_biz_dir-location][]</custom-field>
        <custom-field action="copy">_tax_input[at_biz_dir-tags][]</custom-field>
        <custom-field action="copy">_admin_category_select[]</custom-field>
        <custom-field action="copy">_hide_contact_info</custom-field>
        <custom-field action="copy">_address</custom-field>
        <custom-field action="copy">_manual_lat</custom-field>
        <custom-field action="copy">_manual_lng</custom-field>
        <custom-field action="copy">_hide_map</custom-field>
        <custom-field action="translate">_zip</custom-field>
        <custom-field action="translate">_phone</custom-field>
        <custom-field action="translate">_phone2</custom-field>
        <custom-field action="translate">_fax</custom-field>
        <custom-field action="copy">_email</custom-field>
        <custom-field action="copy">_website</custom-field>
        <custom-field action="copy">_videourl</custom-field>
        <custom-field action="copy">_fm_plans</custom-field>
        <custom-field action="copy">_claimed_by_admin</custom-field>
        <custom-field action="copy">_expiry_date</custom-field>
        <custom-field action="copy">_featured</custom-field>
        <custom-field action="copy">_listing_status</custom-field>
        <custom-field action="copy">_listing_prv_img</custom-field>
        <custom-field action="ignore">_directory_type</custom-field>
        <custom-field action="copy">_atbd_listing_pricing</custom-field>
        <custom-field action="copy">_social</custom-field>
        <custom-field action="copy">_map</custom-field>
        <custom-field action="copy">_hide_contact_owner</custom-field>
        <custom-field action="copy">_listing_img</custom-field>
        <custom-field action="copy">_never_expire</custom-field>
        <custom-field action="copy">_listing_id</custom-field>
        <custom-field action="copy">_amount</custom-field>
        <custom-field action="copy">_payment_gateway</custom-field>
        <custom-field action="copy">_payment_status</custom-field>
        <custom-field action="copy">_transaction_id</custom-field>
        <custom-field action="copy">_listing_type</custom-field>
        <custom-field action="copy">_admin_category_select</custom-field>
    </custom-fields>

    <gutenberg-blocks>
        <gutenberg-block type="directorist/search-listing" translate="1">
            <key>search_bar_title</key>
            <key>search_bar_sub_title</key>
            <key>more_filters_text</key>
            <key>reset_filters_text</key>
            <key>apply_filters_text</key>
        </gutenberg-block>

        <gutenberg-block type="directorist/all-listing" translate="1">
            <key>header_title</key>
        </gutenberg-block>

        <gutenberg-block type="directorist/search-result" translate="1">
            <key>header_title</key>
        </gutenberg-block>

        <gutenberg-block type="directorist/category" translate="1">
            <key>header_title</key>
        </gutenberg-block>

        <gutenberg-block type="directorist/location" translate="1">
            <key>header_title</key>
        </gutenberg-block>

        <gutenberg-block type="directorist/tag" translate="1">
            <key>header_title</key>
        </gutenberg-block>

        <gutenberg-block type="directorist/account-button" translate="1">
            <key>title</key>
            <key>text</key>
        </gutenberg-block>

        <gutenberg-block type="directorist/search-modal" translate="1">
            <key>title</key>
            <key>text</key>
        </gutenberg-block>
    </gutenberg-blocks>

    <elementor-widgets>
        <widget name="directorist_all_listing">
            <fields>
                <field>header_title</field>
            </fields>
        </widget>
        <widget name="directorist_search_listing">
            <fields>
                <field>title</field>
                <field>subtitle</field>
                <field>search_btn_text</field>
                <field>more_filter_btn_text</field>
                <field>more_filter_reset_btn_text</field>
                <field>more_filter_search_btn_text</field>
            </fields>
        </widget>
        <widget name="directorist_search_result">
            <fields>
                <field>header_title</field>
            </fields>
        </widget>
        <widget name="directorist_category">
            <fields>
                <field>header_title</field>
            </fields>
        </widget>
        <widget name="directorist_location">
            <fields>
                <field>header_title</field>
            </fields>
        </widget>
        <widget name="directorist_tag">
            <fields>
                <field>header_title</field>
            </fields>
        </widget>
        <widget name="directorist_user_login">
            <fields>
                <field>signin_username_label</field>
                <field>signin_button_label</field>
                <field>recovery_password_label</field>
                <field>recovery_password_description</field>
                <field>recovery_password_email_label</field>
                <field>recovery_password_email_placeholder</field>
                <field>recovery_password_button_label</field>
                <field>signup_label</field>
                <field>signup_linking_text</field>
                <field>author_role_label</field>
                <field>user_role_label</field>
                <field>username_label</field>
                <field>password_label</field>
                <field>email_label</field>
                <field>website_label</field>
                <field>firstname_label</field>
                <field>lastname_label</field>
                <field>bio_label</field>
                <field>privacy_label</field>
                <field>privacy_linking_text</field>
                <field>terms_label</field>
                <field>terms_linking_text</field>
                <field>signup_button_label</field>
                <field>signin_message</field>
                <field>signin_linking_text</field>
                <field>active_form</field>
            </fields>
        </widget>
    </elementor-widgets>
</wpml-config>