<?xml version="1.0" encoding="UTF-8"?>
<wpml-config>
	<custom-types>
		<!-- Library tabs: one post per language, linked by WPML or Polylang. -->
		<custom-type translate="1">prodtabs_tab</custom-type>
	</custom-types>

	<custom-fields>
		<!-- Product: tab structure (order, type, visibility, library ids, anchors). Same value in every language. -->
		<custom-field action="copy">_prodtabs_layout</custom-field>
		<!-- Product: titles and contents of the product's own tabs, by stable tab key. -->
		<custom-field action="translate">_prodtabs_texts</custom-field>
		<!-- Library tab: title shown in the shop. -->
		<custom-field action="translate" style="line" label="Tab title in the shop">_prodtabs_shop_title</custom-field>
		<!-- Library tab: products it is added to on its own. Same value in every language. -->
		<custom-field action="copy">_prodtabs_scope</custom-field>
		<!-- Import marks and sources: never translated. -->
		<custom-field action="ignore">_prodtabs_yikes_import</custom-field>
		<custom-field action="ignore">_prodtabs_yikes_backup</custom-field>
		<custom-field action="ignore">_prodtabs_yikes_id</custom-field>
	</custom-fields>

	<custom-fields-texts>
		<key name="_prodtabs_texts">
			<key name="*">
				<key name="title" />
				<key name="content" />
			</key>
		</key>
	</custom-fields-texts>

	<shortcodes>
		<!-- [prodtabs product="…" shared="…"]: WPML points the ids to the language of the page when it shows it (ProdTabs
		     shows the original while that translation is not published). No text to translate in the shortcode. -->
		<shortcode>
			<tag ignore-content="1">prodtabs</tag>
			<attributes>
				<attribute type="post-ids" sub-type="product">product</attribute>
				<attribute type="post-ids" sub-type="prodtabs_tab">shared</attribute>
			</attributes>
		</shortcode>
	</shortcodes>

	<admin-texts>
		<key name="prodtabs_settings">
			<key name="natives">
				<key name="description">
					<key name="title" />
				</key>
				<key name="additional_information">
					<key name="title" />
				</key>
				<key name="reviews">
					<key name="title" />
				</key>
			</key>
		</key>
	</admin-texts>
</wpml-config>
