Changeset 3799529
- Timestamp:
- 11/13/2026 01:46:03 AM (3 days ago)
- Location:
- prodtabs
- Files:
-
- 20 edited
- 1 copied
-
tags/0.4.8 (copied) (copied from prodtabs/trunk )
-
tags/0.4.8/assets/css/admin.css (modified) (1 diff)
-
tags/0.4.8/assets/js/admin-product.js (modified) (1 diff)
-
tags/0.4.8/includes/class-admin-hub.php (modified) (3 diffs)
-
tags/0.4.8/includes/class-admin-product.php (modified) (4 diffs)
-
tags/0.4.8/includes/class-cache-purge.php (modified) (1 diff)
-
tags/0.4.8/includes/class-multilingual.php (modified) (4 diffs)
-
tags/0.4.8/includes/class-product-tabs.php (modified) (3 diffs)
-
tags/0.4.8/languages/prodtabs.pot (modified) (33 diffs)
-
tags/0.4.8/prodtabs.php (modified) (2 diffs)
-
tags/0.4.8/readme.txt (modified) (4 diffs)
-
trunk/assets/css/admin.css (modified) (1 diff)
-
trunk/assets/js/admin-product.js (modified) (1 diff)
-
trunk/includes/class-admin-hub.php (modified) (3 diffs)
-
trunk/includes/class-admin-product.php (modified) (4 diffs)
-
trunk/includes/class-cache-purge.php (modified) (1 diff)
-
trunk/includes/class-multilingual.php (modified) (4 diffs)
-
trunk/includes/class-product-tabs.php (modified) (3 diffs)
-
trunk/languages/prodtabs.pot (modified) (33 diffs)
-
trunk/prodtabs.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
prodtabs/tags/0.4.8/assets/css/admin.css
r3767626 r3799529 6 6 content: "\f163"; 7 7 font-family: dashicons; 8 } 9 10 /* Tabs of the product not translated in its language. */ 11 #woocommerce-product-data ul.wc-tabs li.prodtabs_options .prodtabs-tab-alert { 12 width: 16px; 13 height: 16px; 14 margin-inline-start: 4px; 15 color: #996800; 16 font-size: 16px; 17 vertical-align: text-bottom; 8 18 } 9 19 -
prodtabs/tags/0.4.8/assets/js/admin-product.js
r3762148 r3799529 414 414 } 415 415 416 /* Tabs not translated yet: icon next to the panel entry ----------------------------------------------- */ 417 418 if ( settings.untranslated ) { 419 $( '#woocommerce-product-data ul.wc-tabs li.prodtabs_options > a' ).append( 420 $( '<span class="prodtabs-tab-alert dashicons dashicons-warning" aria-hidden="true"></span>' ).attr( 'title', settings.untranslated ), 421 $( '<span class="screen-reader-text"></span>' ).text( settings.untranslated ) 422 ); 423 } 424 416 425 /* Saving -------------------------------------------------------------------------------------------------- */ 417 426 -
prodtabs/tags/0.4.8/includes/class-admin-hub.php
r3767626 r3799529 161 161 162 162 /** 163 * Tabs not translated yet, by language (Polylang and WPML): tabs of a product whose translation has no text of its 164 * own, and shared tabs without a published translation. Counted when the overview opens, on the first 163 * Tabs not translated yet, by language (Polylang and WPML): tabs of a product that a translation shows with a text 164 * of the original, its own title or content missing (Product_Tabs::with_fallback()), and shared tabs without a 165 * published translation. Counted when the overview opens, on the first 165 166 * SCAN_LIMIT products of the default language that have tabs. 166 167 * … … 200 201 break 2; 201 202 } 202 $ keys= array();203 $local = array(); 203 204 foreach ( (array) get_post_meta( $id, Tabs::META_LAYOUT, true ) as $entry ) { 204 205 if ( is_array( $entry ) && 'local' === ( $entry['type'] ?? '' ) && ! empty( $entry['visible'] ) && isset( $entry['key'] ) ) { 205 $ keys[] = (string) $entry['key'];206 $local[] = $entry; 206 207 } 207 208 } 208 if ( ! $ keys) {209 if ( ! $local ) { 209 210 continue; 210 211 } 212 $source = get_post_meta( $id, Tabs::META_TEXTS, true ); 213 $source = is_array( $source ) ? $source : array(); 211 214 foreach ( Multilingual::translation_ids( $id, 'product' ) as $translation ) { 212 215 $lang = Multilingual::post_language( $translation ); … … 214 217 continue; 215 218 } 216 $texts = get_post_meta( $translation, Tabs::META_TEXTS, true ); 217 $missing = count( array_diff( $keys, array_keys( is_array( $texts ) ? $texts : array() ) ) ); 219 // Tabs the shop shows with a text of the original filling a missing title or content. 220 $missing = 0; 221 foreach ( Tabs::join( $local, get_post_meta( $translation, Tabs::META_TEXTS, true ) ) as $entry ) { 222 $shown = Product_Tabs::with_fallback( $entry, $source ); 223 $missing += empty( $shown['translated'] ) && ! Product_Tabs::missing( 'title', $shown['title'] ) && ! Product_Tabs::missing( 'content', $shown['content'] ) ? 1 : 0; 224 } 218 225 if ( $missing ) { 219 226 $counts[ $lang ] = ( $counts[ $lang ] ?? 0 ) + $missing; -
prodtabs/tags/0.4.8/includes/class-admin-product.php
r3762148 r3799529 68 68 wp_enqueue_script( 'prodtabs-admin-product', PRODTABS_URL . 'assets/js/admin-product.js', $deps, Plugin::asset_version( 'assets/js/admin-product.js' ), true ); 69 69 Display::copy_script(); 70 $untranslated = get_the_ID() ? self::untranslated( (int) get_the_ID() ) : 0; 70 71 wp_localize_script( 71 72 'prodtabs-admin-product', 72 73 'prodtabsProduct', 73 74 array( 74 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 75 'nonce' => wp_create_nonce( self::NONCE_AJAX ), 76 'productId' => (int) get_the_ID(), 77 'i18n' => array( 75 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 76 'nonce' => wp_create_nonce( self::NONCE_AJAX ), 77 'productId' => (int) get_the_ID(), 78 /* translators: %d: number of tabs. */ 79 'untranslated' => $untranslated ? sprintf( _n( '%d tab not translated yet', '%d tabs not translated yet', $untranslated, 'prodtabs' ), $untranslated ) : '', 80 'i18n' => array( 78 81 /* translators: %s: tab title. */ 79 82 'moveUp' => __( 'Move “%s” up', 'prodtabs' ), … … 209 212 210 213 /** 214 * Visible tabs of a product that the shop shows untranslated in its language: tabs of its own with a text of the 215 * source or of a shared tab filling a missing title or content, and shared tabs without a published translation in 216 * it. A tab of its own with texts in other languages only is left out: the shop does not show it in this one. 217 * Flagged next to the panel entry. 218 * 219 * @param int $product_id Product id. 220 */ 221 private static function untranslated( int $product_id ): int { 222 $lang = Multilingual::post_language( $product_id ); 223 $product = '' !== $lang ? wc_get_product( $product_id ) : null; 224 if ( ! $product ) { 225 return 0; 226 } 227 $source = self::source_texts( $product_id ); 228 $count = 0; 229 foreach ( Product_Tabs::with_auto( Product_Tabs::get( $product_id ), $product ) as $entry ) { 230 if ( empty( $entry['visible'] ) ) { 231 continue; 232 } 233 if ( 'local' === $entry['type'] ? 'fallback' === self::fallback_state( $entry, $source ) : ( 'library' === $entry['type'] && self::library_untranslated( (int) $entry['library_id'], $lang ) ) ) { 234 ++$count; 235 } 236 } 237 return $count; 238 } 239 240 /** 241 * How the shop shows a tab of the product in its language (Product_Tabs::with_fallback()): 'fallback' when a text of 242 * the source or of a shared tab fills a missing title or content; 'incomplete' when the shop leaves the tab out 243 * because its title or its content is still missing, a fallback or not; 'other' when the tab has no text in this 244 * language and nothing to fall back on (texts in other languages only), and the shop leaves it out; '' otherwise 245 * (its own texts, or a tab without any text saved yet, such as a new one). 246 * 247 * @param array $entry Local entry. 248 * @param array $source Texts of the source product, by key. 249 */ 250 private static function fallback_state( array $entry, array $source ): string { 251 $shown = Product_Tabs::with_fallback( $entry, $source ); 252 $title = Product_Tabs::missing( 'title', $shown['title'] ); 253 $content = Product_Tabs::missing( 'content', $shown['content'] ); 254 if ( $title !== $content ) { 255 return 'incomplete'; 256 } 257 if ( $title ) { 258 return empty( $entry['translated'] ) ? 'other' : ''; 259 } 260 return empty( $shown['translated'] ) ? 'fallback' : ''; 261 } 262 263 /** 264 * Whether a published shared tab has no published translation in a language: the shop shows the original. 265 * 266 * @param int $id Shared tab id stored in the product. 267 * @param string $lang Language of the product. 268 */ 269 private static function library_untranslated( int $id, string $lang ): bool { 270 if ( '' === $lang || ! Library::get_tab( $id ) ) { 271 return false; 272 } 273 $translation = Multilingual::translation( $id, Library::POST_TYPE, $lang ); 274 return ! $translation || 'publish' !== get_post_status( $translation ); 275 } 276 277 /** 211 278 * Texts of the source of a translation, shown to translators as a reference. 212 279 * … … 287 354 if ( 'library' === $type && ! Library::get_tab( (int) $entry['library_id'] ) ) { 288 355 $notes[] = __( 'Not published: not shown in the shop.', 'prodtabs' ); 356 } elseif ( 'library' === $type && self::library_untranslated( (int) $entry['library_id'], (string) $context['lang'] ) ) { 357 $notes[] = __( 'Not translated', 'prodtabs' ); 289 358 } 290 359 if ( ! empty( $entry['auto'] ) ) { 291 360 $notes[] = __( 'Added automatically', 'prodtabs' ); 292 361 } 293 if ( 'local' === $type && empty( $entry['translated'] ) ) { 362 $state = 'local' === $type ? self::fallback_state( $entry, $context['source'] ) : ''; 363 if ( 'fallback' === $state ) { 294 364 $notes[] = __( 'Not translated', 'prodtabs' ); 365 } elseif ( 'incomplete' === $state ) { 366 $notes[] = __( 'Title or content missing: not shown in the shop.', 'prodtabs' ); 367 } elseif ( 'other' === $state ) { 368 $notes[] = __( '(tab of another language: not shown in this one)', 'prodtabs' ); 295 369 } 296 370 } … … 448 522 </div> 449 523 <?php endif; ?> 450 <?php if ( empty( $entry['translated'] ) ) : ?>524 <?php if ( 'fallback' === self::fallback_state( $entry, $context['source'] ) ) : ?> 451 525 <div class="prodtabs-message prodtabs-message--warning"> 452 526 <p><?php esc_html_e( 'Not translated in this language yet: the shop shows the text of the original language. Type the translation below.', 'prodtabs' ); ?></p> -
prodtabs/tags/0.4.8/includes/class-cache-purge.php
r3762148 r3799529 63 63 // The translations of a source show its list and its texts where they have none of their own. 64 64 self::products( Multilingual::source_product( (int) $object_id ) ? array( (int) $object_id ) : Multilingual::translation_ids( (int) $object_id, 'product' ) ); 65 if ( Tabs::META_LAYOUT === $meta_key ) { 66 delete_transient( 'prodtabs_products_with_tabs' ); // Count of Admin_Hub::products_with_tabs(). 67 } 65 68 } 66 69 return; -
prodtabs/tags/0.4.8/includes/class-multilingual.php
r3762148 r3799529 29 29 // After Polylang's own reading of wpml-config.xml (priority 20). 30 30 add_filter( 'pll_copy_post_metas', array( __CLASS__, 'polylang_metas' ), 30, 5 ); 31 add_action( 'pll_post_synchronized', array( __CLASS__, 'polylang_copied' ), 10, 4 ); 31 32 add_action( 'add_option_' . Settings::OPTION, array( __CLASS__, 'register_native_titles' ), 10, 2 ); 32 33 add_action( 'update_option_' . Settings::OPTION, array( __CLASS__, 'register_native_titles' ), 10, 2 ); … … 115 116 116 117 /** 117 * Metas Polylang copies when a translation is created and keeps synchronized afterwards: the structure, never the 118 * texts. A new translation has no text of its own: until it is translated, it shows the original as not translated 119 * (hidden by the "Tabs not translated yet" setting, counted in the overview), as with WPML. A product without 120 * structure never synchronizes its absence over a translation that has one: Polylang would delete the tabs of every 121 * language. 118 * Metas Polylang copies when a translation is created and keeps synchronized afterwards: the structure always, the 119 * texts (tab texts, shop title) when Polylang copies the description too. A new translation has no text of its 120 * own: until it is translated, it shows the original as not translated (hidden by the "Tabs not translated yet" 121 * setting, counted in the overview), as with WPML. With Polylang Pro, "Duplicate content" copies the texts into the 122 * new translation, and synchronized posts keep them the same in every language. A product without structure never 123 * synchronizes its absence over a translation that has one: Polylang would delete the tabs of every language. 122 124 * 123 125 * @param string[] $keys Meta keys. … … 131 133 $keys[] = Tabs::META_LAYOUT; 132 134 $keys[] = Library::META_SCOPE; // The same products in every language. 133 if ( ! $sync ) {134 // Polylang copies the fields to translate of wpml-config.xml at creation: tab texts and shop title stay out.135 $keys = array_diff( $keys, array( Tabs::META_TEXTS, Library::META_SHOP_TITLE ) );136 }135 $texts = array( Tabs::META_TEXTS, Library::META_SHOP_TITLE ); 136 // Polylang copies the fields to translate of wpml-config.xml at creation, and Polylang Pro all the fields of 137 // synchronized posts before its reading of wpml-config.xml takes them out. 138 $keys = self::polylang_copies_texts( (int) $from, (int) $to, (bool) $sync ) ? array_merge( $keys, $texts ) : array_diff( $keys, $texts ); 137 139 $keys = array_values( array_unique( $keys ) ); 138 140 if ( $sync && $from && $to && ! get_post_meta( (int) $from, Tabs::META_LAYOUT, true ) && get_post_meta( (int) $to, Tabs::META_LAYOUT, true ) ) { … … 140 142 } 141 143 return $keys; 144 } 145 146 /** 147 * Whether Polylang copies the description of a post to another one: synchronized posts of Polylang Pro (from their 148 * creation), or a new translation created while "Duplicate content" is on. 149 * 150 * @param int $from Post the metas come from. 151 * @param int $to Post the metas go to. 152 * @param bool $sync True for the synchronization, false for the copy at creation. 153 */ 154 private static function polylang_copies_texts( int $from, int $to, bool $sync ): bool { 155 if ( ! $from || ! $to || ! function_exists( 'PLL' ) ) { 156 return false; 157 } 158 if ( isset( PLL()->sync_post_model ) && PLL()->sync_post_model->are_synchronized( $from, $to ) ) { 159 return true; 160 } 161 // Option of Polylang Pro, by post type and by user; its machine translation turns it off while it translates. 162 $duplicate = $sync ? null : get_user_meta( get_current_user_id(), 'pll_duplicate_content', true ); 163 return is_array( $duplicate ) && ! empty( $duplicate[ get_post_type( $from ) ] ); 164 } 165 166 /** 167 * Copy of a post by Polylang Pro (bulk translation "Copy"): the description is copied once, the texts too. 168 * Synchronized posts get theirs through polylang_metas(). 169 * 170 * @param int $from Source post. 171 * @param int $to Copy. 172 * @param string $lang Language of the copy. 173 * @param string $strategy copy, or sync for synchronized posts. 174 */ 175 public static function polylang_copied( $from, $to, $lang, $strategy ): void { 176 if ( 'copy' !== $strategy || ! in_array( get_post_type( (int) $from ), array( 'product', Library::POST_TYPE ), true ) ) { 177 return; 178 } 179 foreach ( array( Tabs::META_TEXTS, Library::META_SHOP_TITLE ) as $key ) { 180 $value = get_post_meta( (int) $from, $key, true ); 181 if ( '' === $value || array() === $value ) { 182 delete_post_meta( (int) $to, $key ); 183 } else { 184 update_post_meta( (int) $to, $key, wp_slash( $value ) ); 185 } 186 } 142 187 } 143 188 -
prodtabs/tags/0.4.8/includes/class-product-tabs.php
r3762148 r3799529 111 111 112 112 /** 113 * Entries of a product for the shop. Texts missing in the language of the product come from the source product 114 * (the original with WPML, the default language with Polylang), then from the library tab a tab was customized 115 * from; a tab with no text anywhere is left out. A translation without a list of its own uses the list of its source. 113 * Entries of a product for the shop. A title or a content missing in the language of the product comes from the 114 * source product (the original with WPML, the default language with Polylang); a tab without any text, in its 115 * language or in the source, shows the library tab it was customized from (with_fallback()). A tab still without a 116 * title or a content is left out. A translation without a list of its own uses the list of its source. 116 117 * 117 118 * @param int $product_id Product id. … … 132 133 $source_texts = null; 133 134 foreach ( $entries as $i => $entry ) { 134 if ( 'local' !== ( $entry['type'] ?? '' ) || ! empty( $entry['translated']) ) {135 if ( 'local' !== ( $entry['type'] ?? '' ) || ( ! self::missing( 'title', $entry['title'] ) && ! self::missing( 'content', $entry['content'] ) ) ) { 135 136 continue; 136 137 } … … 140 141 $source_texts = is_array( $source_texts ) ? $source_texts : array(); 141 142 } 142 $text = $source_texts[ $entry['key'] ] ?? null; 143 if ( is_array( $text ) && '' !== ( $text['title'] ?? '' ) ) { 144 $entries[ $i ]['title'] = (string) $text['title']; 145 $entries[ $i ]['content'] = (string) ( $text['content'] ?? '' ); 146 continue; 147 } 148 $library = ! empty( $entry['origin'] ) ? Library::resolve( (int) $entry['origin'] ) : null; 149 if ( $library ) { 150 $entries[ $i ]['title'] = $library['title']; 151 $entries[ $i ]['content'] = $library['content']; 152 } 143 $entries[ $i ] = self::with_fallback( $entry, $source_texts ); 153 144 } 154 145 $entries = Tabs::normalize( $entries ); 155 146 return $entries ? Tabs::with_natives( $entries, Settings::get( 'native_order' ) ) : array(); 147 } 148 149 /** 150 * Texts the shop shows for a tab of a product: a title or a content missing in the language of the product comes 151 * from the source product for this key, field by field. Only a tab without any text, neither saved in its language 152 * nor in the source, takes the title and the content of the library tab it was customized from: a customized tab 153 * that lost its title or its content stays without it, and the shop leaves it out. The one rule of the fallback, 154 * read by the shop, the product screen and the overview. 155 * 156 * @param array $entry Local entry with the texts of the language of the product (see Tabs::join()). 157 * @param array $source_texts Texts of the source product, by key. 158 * @return array The entry with the texts the shop shows; 'translated' false when one of them comes from a fallback. 159 */ 160 public static function with_fallback( array $entry, array $source_texts ): array { 161 $saved = ! empty( $entry['translated'] ); // Texts saved in the language of the product (Tabs::join()). 162 $text = $source_texts[ $entry['key'] ?? '' ] ?? null; 163 foreach ( array( 'title', 'content' ) as $field ) { 164 $value = is_array( $text ) && isset( $text[ $field ] ) && is_scalar( $text[ $field ] ) ? (string) $text[ $field ] : ''; 165 if ( self::missing( $field, (string) $entry[ $field ] ) && ! self::missing( $field, $value ) ) { 166 $entry[ $field ] = $value; 167 $entry['translated'] = false; 168 } 169 } 170 if ( $saved || ! self::missing( 'title', $entry['title'] ) || ! self::missing( 'content', $entry['content'] ) || empty( $entry['origin'] ) ) { 171 return $entry; 172 } 173 $library = Library::resolve( (int) $entry['origin'] ); 174 if ( $library ) { 175 $entry['title'] = (string) $library['title']; 176 $entry['content'] = (string) $library['content']; 177 $entry['translated'] = false; 178 } 179 return $entry; 180 } 181 182 /** 183 * Whether a text of a tab is missing: no title to click on, or a content that shows nothing. 184 * 185 * @param string $field title or content. 186 * @param string $value Text. 187 */ 188 public static function missing( string $field, string $value ): bool { 189 return 'title' === $field ? '' === trim( $value ) : Tabs::is_blank( $value ); 156 190 } 157 191 -
prodtabs/tags/0.4.8/languages/prodtabs.pot
r3767626 r3799529 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: ProdTabs: Multilingual Product Tabs for WooCommerce 0.4. 7\n"5 "Project-Id-Version: ProdTabs: Multilingual Product Tabs for WooCommerce 0.4.8\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/prodtabs\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-1 0-26T01:29:16+00:00\n"12 "POT-Creation-Date: 2026-11-13T01:09:35+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 50 50 51 51 #: includes/class-admin-hub.php:80 52 #: includes/class-admin-hub.php:41 152 #: includes/class-admin-hub.php:418 53 53 #: includes/class-admin-settings.php:48 54 54 msgid "Settings" 55 55 msgstr "" 56 56 57 #: includes/class-admin-hub.php:3 0757 #: includes/class-admin-hub.php:314 58 58 #: includes/class-admin-import.php:439 59 #: includes/class-admin-product.php: 39359 #: includes/class-admin-product.php:467 60 60 #: includes/class-admin-settings.php:293 61 61 msgid "Description" 62 62 msgstr "" 63 63 64 #: includes/class-admin-hub.php:3 0864 #: includes/class-admin-hub.php:315 65 65 #: includes/class-admin-import.php:440 66 #: includes/class-admin-product.php: 39466 #: includes/class-admin-product.php:468 67 67 #: includes/class-admin-settings.php:294 68 68 msgid "Additional information" 69 69 msgstr "" 70 70 71 #: includes/class-admin-hub.php:3 0971 #: includes/class-admin-hub.php:316 72 72 #: includes/class-admin-import.php:441 73 #: includes/class-admin-product.php: 39573 #: includes/class-admin-product.php:469 74 74 #: includes/class-admin-settings.php:295 75 75 msgid "Reviews" 76 76 msgstr "" 77 77 78 #: includes/class-admin-hub.php:4 0678 #: includes/class-admin-hub.php:413 79 79 msgid "Tabs of each product, tabs shared between products, and the WooCommerce tabs for the whole shop." 80 80 msgstr "" 81 81 82 #: includes/class-admin-hub.php:41 083 #: includes/class-admin-hub.php:48 282 #: includes/class-admin-hub.php:417 83 #: includes/class-admin-hub.php:489 84 84 #: includes/class-admin-library.php:197 85 85 #: includes/class-admin-settings.php:262 … … 87 87 msgstr "" 88 88 89 #: includes/class-admin-hub.php:4 1889 #: includes/class-admin-hub.php:425 90 90 msgid "shared tab" 91 91 msgid_plural "shared tabs" … … 93 93 msgstr[1] "" 94 94 95 #: includes/class-admin-hub.php:42 295 #: includes/class-admin-hub.php:429 96 96 msgid "product with tabs of its own" 97 97 msgid_plural "products with tabs of their own" … … 100 100 101 101 #. translators: %s: name of the translation plugin. 102 #: includes/class-admin-hub.php:43 0102 #: includes/class-admin-hub.php:437 103 103 #, php-format 104 104 msgid "language, with %s" … … 107 107 msgstr[1] "" 108 108 109 #: includes/class-admin-hub.php:4 38109 #: includes/class-admin-hub.php:445 110 110 msgid "product with Custom Product Tabs (YIKES)" 111 111 msgid_plural "products with Custom Product Tabs (YIKES)" … … 113 113 msgstr[1] "" 114 114 115 #: includes/class-admin-hub.php:4 45115 #: includes/class-admin-hub.php:452 116 116 #: includes/class-admin-settings.php:124 117 117 msgid "WooCommerce tabs" … … 119 119 120 120 #. translators: %s: name of a WooCommerce tab. 121 #: includes/class-admin-hub.php:45 1121 #: includes/class-admin-hub.php:458 122 122 #, php-format 123 123 msgid "%s (hidden)" 124 124 msgstr "" 125 125 126 #: includes/class-admin-hub.php:4 56126 #: includes/class-admin-hub.php:463 127 127 msgid "In this order on every product. A product can hide or move a tab." 128 128 msgstr "" 129 129 130 #: includes/class-admin-hub.php:4 57130 #: includes/class-admin-hub.php:464 131 131 msgid "Rename, hide or reorder" 132 132 msgstr "" 133 133 134 #: includes/class-admin-hub.php:46 1134 #: includes/class-admin-hub.php:468 135 135 #: includes/class-admin-settings.php:118 136 136 #: includes/class-library.php:31 … … 140 140 msgstr "" 141 141 142 #: includes/class-admin-hub.php:4 65142 #: includes/class-admin-hub.php:472 143 143 msgid "None yet. Write shipping or returns once, add them to your products or show them on the whole catalog." 144 144 msgstr "" 145 145 146 146 #. translators: %d: number of shared tabs. 147 #: includes/class-admin-hub.php:4 68147 #: includes/class-admin-hub.php:475 148 148 #, php-format 149 149 msgid "%d shared tab" … … 153 153 154 154 #. translators: %d: number of shared tabs. 155 #: includes/class-admin-hub.php:47 1155 #: includes/class-admin-hub.php:478 156 156 #, php-format 157 157 msgid "%d shown on its own by its “Show on” setting" … … 161 161 162 162 #. translators: Sentence of the shared tabs card. 1: number of shared tabs, such as "3 shared tabs"; 2: how many of them show on their own, such as "2 shown on their own by their “Show on” setting". 163 #: includes/class-admin-hub.php:4 73163 #: includes/class-admin-hub.php:480 164 164 #, php-format 165 165 msgid "%1$s, %2$s." … … 167 167 168 168 #. translators: Sentence of the shared tabs card. %s: number of shared tabs, such as "3 shared tabs". Only adds the punctuation that ends the sentence. 169 #: includes/class-admin-hub.php:4 76169 #: includes/class-admin-hub.php:483 170 170 #, php-format 171 171 msgid "%s." 172 172 msgstr "" 173 173 174 #: includes/class-admin-hub.php:4 83174 #: includes/class-admin-hub.php:490 175 175 msgid "See the list" 176 176 msgstr "" 177 177 178 #: includes/class-admin-hub.php:4 88178 #: includes/class-admin-hub.php:495 179 179 msgid "Tabs anywhere" 180 180 msgstr "" 181 181 182 #: includes/class-admin-hub.php:4 89182 #: includes/class-admin-hub.php:496 183 183 msgid "In a page, a page builder, or a theme that does not show the tabs: a shortcode, or the “Product tabs (ProdTabs)” block." 184 184 msgstr "" 185 185 186 #: includes/class-admin-hub.php:49 1186 #: includes/class-admin-hub.php:498 187 187 msgid "See the shortcodes" 188 188 msgstr "" 189 189 190 #: includes/class-admin-hub.php: 494190 #: includes/class-admin-hub.php:501 191 191 msgid "every tab of the product of the page" 192 192 msgstr "" 193 193 194 #: includes/class-admin-hub.php: 496194 #: includes/class-admin-hub.php:503 195 195 msgid "the tabs of a product, on any page" 196 196 msgstr "" 197 197 198 #: includes/class-admin-hub.php: 498198 #: includes/class-admin-hub.php:505 199 199 msgid "one tab of the product, by its anchor; add title=\"no\" to leave its title out" 200 200 msgstr "" 201 201 202 #: includes/class-admin-hub.php:50 0202 #: includes/class-admin-hub.php:507 203 203 msgid "a shared tab, on any page" 204 204 msgstr "" 205 205 206 #: includes/class-admin-hub.php:50 2206 #: includes/class-admin-hub.php:509 207 207 msgid "The shortcode of each tab is ready to copy in the Tabs panel of the product, and on the screen of each shared tab." 208 208 msgstr "" 209 209 210 #: includes/class-admin-hub.php:5 07210 #: includes/class-admin-hub.php:514 211 211 #: includes/class-admin-settings.php:174 212 212 msgid "Languages" … … 214 214 215 215 #. translators: %d: number of tabs. 216 #: includes/class-admin-hub.php:518 216 #: includes/class-admin-hub.php:525 217 #: includes/class-admin-product.php:79 217 218 #, php-format 218 219 msgid "%d tab not translated yet" … … 221 222 msgstr[1] "" 222 223 223 #: includes/class-admin-hub.php:53 1224 #: includes/class-admin-hub.php:538 224 225 #: includes/class-admin-settings.php:414 225 226 msgid "No translation plugin found. ProdTabs works with WPML, Polylang, TranslatePress and Weglot." … … 227 228 228 229 #. translators: %s: name of the translation plugin. 229 #: includes/class-admin-hub.php:5 34230 #: includes/class-admin-hub.php:541 230 231 #, php-format 231 232 msgid "%s is active: a product and its translations share one list of tabs, and each language keeps its own texts." … … 233 234 234 235 #. translators: %s: name of the translation plugin. 235 #: includes/class-admin-hub.php:5 37236 #: includes/class-admin-hub.php:544 236 237 #, php-format 237 238 msgid "%s is active: tab titles and contents are translated on the page." … … 239 240 240 241 #. translators: %d: number of tabs. 241 #: includes/class-admin-hub.php:5 48242 #: includes/class-admin-hub.php:555 242 243 #, php-format 243 244 msgid "%d tab is not translated yet in one of the languages: it stays hidden there until then." … … 247 248 248 249 #. translators: %d: number of tabs. 249 #: includes/class-admin-hub.php:55 0250 #: includes/class-admin-hub.php:557 250 251 #, php-format 251 252 msgid "%d tab is not translated yet in one of the languages: it shows its original text there until then." … … 254 255 msgstr[1] "" 255 256 256 #: includes/class-admin-hub.php:5 55257 #: includes/class-admin-hub.php:562 257 258 msgid "Check the setup" 258 259 msgstr "" 259 260 260 #: includes/class-admin-hub.php:56 0261 #: includes/class-admin-hub.php:567 261 262 msgid "Custom Product Tabs (YIKES)" 262 263 msgstr "" 263 264 264 265 #. translators: 1: number of products, 2: number of reusable tabs. 265 #: includes/class-admin-hub.php:5 66266 #: includes/class-admin-hub.php:573 266 267 #: includes/class-admin-settings.php:446 267 268 #, php-format … … 270 271 271 272 #. translators: %d: number of products. 272 #: includes/class-admin-hub.php:5 68273 #: includes/class-admin-hub.php:575 273 274 #: includes/class-admin-import.php:336 274 275 #: includes/class-admin-library.php:110 … … 282 283 283 284 #. translators: %d: number of reusable tabs. 284 #: includes/class-admin-hub.php:57 0285 #: includes/class-admin-hub.php:577 285 286 #: includes/class-admin-settings.php:450 286 287 #, php-format … … 290 291 msgstr[1] "" 291 292 292 #: includes/class-admin-hub.php:5 74293 #: includes/class-admin-hub.php:581 293 294 msgid "The import keeps the order and the links to tabs, and can be undone." 294 295 msgstr "" 295 296 296 #: includes/class-admin-hub.php:5 77297 #: includes/class-admin-hub.php:584 297 298 msgid "Open the import" 298 299 msgstr "" 299 300 300 #: includes/class-admin-hub.php:59 2301 #: includes/class-admin-hub.php:599 301 302 msgid "ProdTabs Premium" 302 303 msgstr "" 303 304 304 #: includes/class-admin-hub.php: 594305 #: includes/class-admin-hub.php:601 305 306 msgid "FAQ tabs with schema.org FAQPage structured data" 306 307 msgstr "" 307 308 308 #: includes/class-admin-hub.php: 595309 #: includes/class-admin-hub.php:602 309 310 msgid "Your tab texts in the content analysis of Yoast SEO and Rank Math" 310 311 msgstr "" 311 312 312 #: includes/class-admin-hub.php: 596313 #: includes/class-admin-hub.php:603 313 314 msgid "Shared tabs shown by category, tag or brand" 314 315 msgstr "" 315 316 316 #: includes/class-admin-hub.php: 597317 #: includes/class-admin-hub.php:604 317 318 msgid "Add or remove a shared tab on many products at once" 318 319 msgstr "" 319 320 320 #: includes/class-admin-hub.php: 598321 #: includes/class-admin-hub.php:605 321 322 msgid "Tab texts translated in a spreadsheet, one column per language" 322 323 msgstr "" 323 324 324 325 #. translators: Price of the Premium license for one shop. Use the currency of the pricing page the button opens: euros in French (refficience.com/prodtabs/), US dollars in every other language. 325 #: includes/class-admin-hub.php:6 03326 #: includes/class-admin-hub.php:610 326 327 msgid "$49 a year for your shop" 327 328 msgstr "" 328 329 329 #: includes/class-admin-hub.php:6 05330 #: includes/class-admin-hub.php:612 330 331 msgid "Discover ProdTabs Premium" 331 332 msgstr "" 332 333 333 #: includes/class-admin-hub.php:605 334 #: includes/class-admin-hub.php:622 335 #: includes/class-admin-hub.php:626 336 #: includes/class-admin-hub.php:627 337 #: includes/class-admin-hub.php:628 334 #: includes/class-admin-hub.php:612 338 335 #: includes/class-admin-hub.php:629 339 #: includes/class-admin-hub.php:640 336 #: includes/class-admin-hub.php:633 337 #: includes/class-admin-hub.php:634 338 #: includes/class-admin-hub.php:635 339 #: includes/class-admin-hub.php:636 340 #: includes/class-admin-hub.php:647 340 341 #: includes/class-admin-import.php:623 341 #: includes/class-admin-product.php:1 67342 #: includes/class-admin-product.php:5 10342 #: includes/class-admin-product.php:170 343 #: includes/class-admin-product.php:584 343 344 #: includes/class-review-ask.php:117 344 345 msgid "(opens in a new tab)" 345 346 msgstr "" 346 347 347 #: includes/class-admin-hub.php:61 2348 #: includes/class-admin-hub.php:619 348 349 msgid "Good to know" 349 350 msgstr "" 350 351 351 #: includes/class-admin-hub.php:6 14352 #: includes/class-admin-hub.php:621 352 353 msgid "No tracking and no ads in your dashboard." 353 354 msgstr "" 354 355 355 #: includes/class-admin-hub.php:6 15356 #: includes/class-admin-hub.php:622 356 357 msgid "Your tabs are standard WordPress data. Deactivating or deleting ProdTabs keeps them, unless you ask otherwise in Settings, Uninstall." 357 358 msgstr "" 358 359 359 #: includes/class-admin-hub.php:6 16360 #: includes/class-admin-hub.php:623 360 361 msgid "Built for WPML and Polylang, and works with TranslatePress and Weglot." 361 362 msgstr "" 362 363 363 #: includes/class-admin-hub.php:6 17364 #: includes/class-admin-hub.php:624 364 365 msgid "Translated on translate.wordpress.org: each language arrives with the WordPress updates once approved." 365 366 msgstr "" 366 367 367 #: includes/class-admin-hub.php:62 1368 #: includes/class-admin-hub.php:628 368 369 msgid "ProdTabs is not translated into your language yet. Translate it on translate.wordpress.org: once your translation is approved, write to us and get a one-year ProdTabs Premium license for one site." 369 370 msgstr "" 370 371 371 #: includes/class-admin-hub.php:62 2372 #: includes/class-admin-hub.php:629 372 373 msgid "Translate ProdTabs" 373 374 msgstr "" 374 375 375 #: includes/class-admin-hub.php:6 26376 #: includes/class-admin-hub.php:633 376 377 msgid "Plugin page" 377 378 msgstr "" 378 379 379 #: includes/class-admin-hub.php:6 27380 #: includes/class-admin-hub.php:634 380 381 msgid "Changelog" 381 382 msgstr "" 382 383 383 #: includes/class-admin-hub.php:6 28384 #: includes/class-admin-hub.php:635 384 385 msgid "Contact support" 385 386 msgstr "" 386 387 387 #: includes/class-admin-hub.php:6 29388 #: includes/class-admin-hub.php:636 388 389 msgid "Rate ProdTabs" 389 390 msgstr "" 390 391 391 #: includes/class-admin-hub.php:6 35392 #: includes/class-admin-hub.php:6 38392 #: includes/class-admin-hub.php:642 393 #: includes/class-admin-hub.php:645 393 394 msgid "Support information" 394 395 msgstr "" 395 396 396 #: includes/class-admin-hub.php:6 36397 #: includes/class-admin-hub.php:643 397 398 msgid "This report helps us answer you: versions, settings, theme, active plugins and the address of the site, with no customer data. The button opens our support form with the report filled in. You see it there, you can leave it out, and it reaches us only when you send your message." 398 399 msgstr "" 399 400 400 #: includes/class-admin-hub.php:64 0401 #: includes/class-admin-hub.php:647 401 402 msgid "Contact support with this report" 402 403 msgstr "" 403 404 404 #: includes/class-admin-hub.php:64 1405 #: includes/class-admin-hub.php:648 405 406 msgid "Report copied." 406 407 msgstr "" 407 408 408 #: includes/class-admin-hub.php:64 1409 #: includes/class-admin-hub.php:648 409 410 #: includes/class-admin-library.php:288 410 411 #: includes/class-display.php:161 … … 756 757 757 758 #: includes/class-admin-import.php:455 759 #: includes/class-admin-product.php:368 758 760 msgid "(tab of another language: not shown in this one)" 759 761 msgstr "" 760 762 761 763 #: includes/class-admin-import.php:460 762 #: includes/class-admin-product.php:9 3763 #: includes/class-admin-product.php:3 16764 #: includes/class-admin-product.php:96 765 #: includes/class-admin-product.php:390 764 766 msgid "(no title)" 765 767 msgstr "" 766 768 767 769 #: includes/class-admin-import.php:462 768 #: includes/class-admin-product.php: 285770 #: includes/class-admin-product.php:352 769 771 msgid "Shared" 770 772 msgstr "" … … 1004 1006 1005 1007 #: includes/class-admin-library.php:55 1006 #: includes/class-admin-product.php: 4601008 #: includes/class-admin-product.php:534 1007 1009 msgid "Content" 1008 1010 msgstr "" … … 1119 1121 1120 1122 #. translators: %s: tab title. 1121 #: includes/class-admin-product.php: 791122 #: includes/class-admin-product.php: 3281123 #: includes/class-admin-product.php:82 1124 #: includes/class-admin-product.php:402 1123 1125 #, php-format 1124 1126 msgid "Move “%s” up" … … 1126 1128 1127 1129 #. translators: %s: tab title. 1128 #: includes/class-admin-product.php:8 11129 #: includes/class-admin-product.php: 3311130 #: includes/class-admin-product.php:84 1131 #: includes/class-admin-product.php:405 1130 1132 #, php-format 1131 1133 msgid "Move “%s” down" … … 1133 1135 1134 1136 #. translators: %s: tab title. 1135 #: includes/class-admin-product.php:8 31136 #: includes/class-admin-product.php: 3541137 #: includes/class-admin-product.php:86 1138 #: includes/class-admin-product.php:428 1137 1139 #, php-format 1138 1140 msgid "Remove “%s”" … … 1140 1142 1141 1143 #. translators: 1: tab title, 2: new position, 3: number of tabs. 1142 #: includes/class-admin-product.php:8 51144 #: includes/class-admin-product.php:88 1143 1145 #, php-format 1144 1146 msgid "“%1$s” moved to position %2$d of %3$d." … … 1146 1148 1147 1149 #. translators: %s: tab title. 1148 #: includes/class-admin-product.php: 871150 #: includes/class-admin-product.php:90 1149 1151 #, php-format 1150 1152 msgid "“%s” added." … … 1152 1154 1153 1155 #. translators: %s: tab title. 1154 #: includes/class-admin-product.php: 891156 #: includes/class-admin-product.php:92 1155 1157 #, php-format 1156 1158 msgid "“%s” removed." … … 1158 1160 1159 1161 #. translators: %s: tab title. 1160 #: includes/class-admin-product.php:9 11162 #: includes/class-admin-product.php:94 1161 1163 #, php-format 1162 1164 msgid "Remove the tab “%s”? Its content will be lost when you update the product." 1163 1165 msgstr "" 1164 1166 1165 #: includes/class-admin-product.php:9 21167 #: includes/class-admin-product.php:95 1166 1168 msgid "Go back to the shared version? The changes made to this tab on this product will be lost when you update the product." 1167 1169 msgstr "" 1168 1170 1169 #: includes/class-admin-product.php:9 41171 #: includes/class-admin-product.php:97 1170 1172 msgid "Something went wrong. Reload the page and try again." 1171 1173 msgstr "" 1172 1174 1173 #: includes/class-admin-product.php:9 51175 #: includes/class-admin-product.php:98 1174 1176 msgid "New tab" 1175 1177 msgstr "" 1176 1178 1177 #: includes/class-admin-product.php:12 61179 #: includes/class-admin-product.php:129 1178 1180 msgid "This product is a translation: its tabs, their order and their visibility follow the original product. Translate the texts of its own tabs here, or in the translation editor." 1179 1181 msgstr "" 1180 1182 1181 #: includes/class-admin-product.php:1 281183 #: includes/class-admin-product.php:131 1182 1184 msgid "Tabs shown on this product, in this order. Drag a tab or use its arrows to move it." 1183 1185 msgstr "" 1184 1186 1185 #: includes/class-admin-product.php:14 01187 #: includes/class-admin-product.php:143 1186 1188 msgid "This product only shows the WooCommerce tabs. Add a tab of its own, or a shared tab." 1187 1189 msgstr "" 1188 1190 1189 #: includes/class-admin-product.php:14 51191 #: includes/class-admin-product.php:148 1190 1192 msgid "Add a tab" 1191 1193 msgstr "" 1192 1194 1193 #: includes/class-admin-product.php:1 571195 #: includes/class-admin-product.php:160 1194 1196 msgid "Add a shared tab" 1195 1197 msgstr "" 1196 1198 1197 #: includes/class-admin-product.php:1 581198 #: includes/class-admin-product.php:1 591199 #: includes/class-admin-product.php:161 1200 #: includes/class-admin-product.php:162 1199 1201 msgid "Add a shared tab…" 1200 1202 msgstr "" 1201 1203 1202 #: includes/class-admin-product.php:1 671204 #: includes/class-admin-product.php:170 1203 1205 msgid "Create a shared tab, to use on several products" 1204 1206 msgstr "" 1205 1207 1206 #: includes/class-admin-product.php:19 41208 #: includes/class-admin-product.php:197 1207 1209 msgid "Shortcode of all the tabs of this product" 1208 1210 msgstr "" 1209 1211 1210 1212 #. translators: 1: title of the tab in the shop, 2: name of the library tab. 1211 #: includes/class-admin-product.php: 2451213 #: includes/class-admin-product.php:312 1212 1214 #, php-format 1213 1215 msgid "%1$s (%2$s)" 1214 1216 msgstr "" 1215 1217 1216 #: includes/class-admin-product.php: 2801218 #: includes/class-admin-product.php:347 1217 1219 msgid "WooCommerce" 1218 1220 msgstr "" 1219 1221 1220 #: includes/class-admin-product.php: 2851222 #: includes/class-admin-product.php:352 1221 1223 msgid "This product" 1222 1224 msgstr "" 1223 1225 1224 #: includes/class-admin-product.php: 2881226 #: includes/class-admin-product.php:355 1225 1227 msgid "Not published: not shown in the shop." 1226 1228 msgstr "" 1227 1229 1228 #: includes/class-admin-product.php:291 1230 #: includes/class-admin-product.php:357 1231 #: includes/class-admin-product.php:364 1232 msgid "Not translated" 1233 msgstr "" 1234 1235 #: includes/class-admin-product.php:360 1229 1236 msgid "Added automatically" 1230 1237 msgstr "" 1231 1238 1232 #: includes/class-admin-product.php: 2941233 msgid " Not translated"1234 msgstr "" 1235 1236 #: includes/class-admin-product.php:3 131239 #: includes/class-admin-product.php:366 1240 msgid "Title or content missing: not shown in the shop." 1241 msgstr "" 1242 1243 #: includes/class-admin-product.php:387 1237 1244 msgid "Drag to move" 1238 1245 msgstr "" 1239 1246 1240 #: includes/class-admin-product.php:3 251247 #: includes/class-admin-product.php:399 1241 1248 #: includes/class-admin-settings.php:307 1242 1249 msgid "Visible" 1243 1250 msgstr "" 1244 1251 1245 #: includes/class-admin-product.php: 3371246 #: includes/class-admin-product.php: 3461252 #: includes/class-admin-product.php:411 1253 #: includes/class-admin-product.php:420 1247 1254 msgid "Details" 1248 1255 msgstr "" 1249 1256 1250 #: includes/class-admin-product.php: 3461257 #: includes/class-admin-product.php:420 1251 1258 msgid "Edit" 1252 1259 msgstr "" 1253 1260 1254 #: includes/class-admin-product.php:4 061261 #: includes/class-admin-product.php:480 1255 1262 msgid "(deleted shared tab)" 1256 1263 msgstr "" 1257 1264 1258 1265 #. translators: %s: library tab title. 1259 #: includes/class-admin-product.php: 4421266 #: includes/class-admin-product.php:516 1260 1267 #, php-format 1261 1268 msgid "Customized from the shared tab “%s”: changes made to the shared tab no longer apply to this product." 1262 1269 msgstr "" 1263 1270 1264 #: includes/class-admin-product.php: 4451271 #: includes/class-admin-product.php:519 1265 1272 msgid "Go back to the shared version" 1266 1273 msgstr "" 1267 1274 1268 #: includes/class-admin-product.php: 4521275 #: includes/class-admin-product.php:526 1269 1276 msgid "Not translated in this language yet: the shop shows the text of the original language. Type the translation below." 1270 1277 msgstr "" 1271 1278 1272 #: includes/class-admin-product.php: 4561279 #: includes/class-admin-product.php:530 1273 1280 msgid "Title" 1274 1281 msgstr "" 1275 1282 1276 #: includes/class-admin-product.php: 4611283 #: includes/class-admin-product.php:535 1277 1284 msgid "This content contains code that the visual editor would change (icons, scripts, styles): it opens in the code editor." 1278 1285 msgstr "" 1279 1286 1280 #: includes/class-admin-product.php: 4661287 #: includes/class-admin-product.php:540 1281 1288 msgid "Text of the original language" 1282 1289 msgstr "" 1283 1290 1284 1291 #. translators: %s: anchor such as #tab-shipping. 1285 #: includes/class-admin-product.php: 4741292 #: includes/class-admin-product.php:548 1286 1293 #, php-format 1287 1294 msgid "Direct link to this tab: %s" 1288 1295 msgstr "" 1289 1296 1290 #: includes/class-admin-product.php: 4781291 #: includes/class-admin-product.php:5 181292 #: includes/class-admin-product.php:6 141297 #: includes/class-admin-product.php:552 1298 #: includes/class-admin-product.php:592 1299 #: includes/class-admin-product.php:688 1293 1300 msgid "Shortcode of this tab" 1294 1301 msgstr "" 1295 1302 1296 #: includes/class-admin-product.php:5 001303 #: includes/class-admin-product.php:574 1297 1304 msgid "This shared tab no longer exists. Remove it from the product, or add another one." 1298 1305 msgstr "" 1299 1306 1300 #: includes/class-admin-product.php:5 051307 #: includes/class-admin-product.php:579 1301 1308 msgid "Shared content (read only)" 1302 1309 msgstr "" 1303 1310 1304 #: includes/class-admin-product.php:5 101311 #: includes/class-admin-product.php:584 1305 1312 msgid "Edit the shared tab" 1306 1313 msgstr "" 1307 1314 1308 #: includes/class-admin-product.php:5 131315 #: includes/class-admin-product.php:587 1309 1316 msgid "Customize for this product" 1310 1317 msgstr "" 1311 1318 1312 #: includes/class-admin-product.php:5 161319 #: includes/class-admin-product.php:590 1313 1320 msgid "Shared tab: changes made to it apply to every product that uses it. Customize it to change it on this product only." 1314 1321 msgstr "" 1315 1322 1316 #: includes/class-admin-product.php:5 211323 #: includes/class-admin-product.php:595 1317 1324 msgid "Added automatically by the “Show on” setting of the shared tab. Uncheck Visible to hide it on this product." 1318 1325 msgstr "" 1319 1326 1320 #: includes/class-admin-product.php: 5421327 #: includes/class-admin-product.php:616 1321 1328 msgid "Content of this tab: the description of the product, in the main editor at the top of this screen." 1322 1329 msgstr "" 1323 1330 1324 #: includes/class-admin-product.php: 5451331 #: includes/class-admin-product.php:619 1325 1332 msgid "The description is empty: WooCommerce does not show this tab." 1326 1333 msgstr "" 1327 1334 1328 #: includes/class-admin-product.php: 5461335 #: includes/class-admin-product.php:620 1329 1336 msgid "Go to the description" 1330 1337 msgstr "" 1331 1338 1332 #: includes/class-admin-product.php: 5491339 #: includes/class-admin-product.php:623 1333 1340 msgid "Content made by WooCommerce: the attributes shown on the product page, and the weight and dimensions." 1334 1341 msgstr "" 1335 1342 1336 #: includes/class-admin-product.php: 5611343 #: includes/class-admin-product.php:635 1337 1344 msgid "Weight" 1338 1345 msgstr "" 1339 1346 1340 #: includes/class-admin-product.php: 5641347 #: includes/class-admin-product.php:638 1341 1348 msgid "Dimensions" 1342 1349 msgstr "" 1343 1350 1344 #: includes/class-admin-product.php: 5671351 #: includes/class-admin-product.php:641 1345 1352 msgid "Nothing to show: WooCommerce does not show this tab on this product." 1346 1353 msgstr "" 1347 1354 1348 #: includes/class-admin-product.php: 5721355 #: includes/class-admin-product.php:646 1349 1356 msgid "Content of this tab: the customer reviews of the product." 1350 1357 msgstr "" 1351 1358 1352 #: includes/class-admin-product.php: 5741359 #: includes/class-admin-product.php:648 1353 1360 msgid "Reviews are off for the whole shop: WooCommerce does not show this tab." 1354 1361 msgstr "" 1355 1362 1356 #: includes/class-admin-product.php: 5761363 #: includes/class-admin-product.php:650 1357 1364 msgid "Reviews are off for this product: WooCommerce does not show this tab." 1358 1365 msgstr "" 1359 1366 1360 #: includes/class-admin-product.php: 5791367 #: includes/class-admin-product.php:653 1361 1368 msgid "No reviews yet: the tab shows the review form." 1362 1369 msgstr "" 1363 1370 1364 1371 #. translators: %d: number of reviews. 1365 #: includes/class-admin-product.php: 5821372 #: includes/class-admin-product.php:656 1366 1373 #, php-format 1367 1374 msgid "%d review." … … 1370 1377 msgstr[1] "" 1371 1378 1372 #: includes/class-admin-product.php: 5911379 #: includes/class-admin-product.php:665 1373 1380 msgid "What the shop shows (as saved)" 1374 1381 msgstr "" 1375 1382 1376 #: includes/class-admin-product.php:6 121383 #: includes/class-admin-product.php:686 1377 1384 msgid "As saved: changes made on this screen show here once the product is updated." 1378 1385 msgstr "" 1379 1386 1380 #: includes/class-admin-product.php: 6491387 #: includes/class-admin-product.php:723 1381 1388 msgid "The tabs of this product were not saved: the form was too long for the server (max_input_vars setting of PHP). Your host can raise this limit." 1382 1389 msgstr "" 1383 1390 1384 #: includes/class-admin-product.php: 6641391 #: includes/class-admin-product.php:738 1385 1392 msgid "The list of tabs of this product was changed in another language while you were editing it. The texts you typed were saved, but not your changes to the list: check the Tabs panel and make them again." 1386 1393 msgstr "" -
prodtabs/tags/0.4.8/prodtabs.php
r3767626 r3799529 4 4 * Plugin URI: https://refficience.com/en/prodtabs/ 5 5 * Description: Custom product tabs, shared tabs and settings for the WooCommerce tabs, built for multilingual shops. Imports your tabs from Custom Product Tabs (YIKES) in one click. 6 * Version: 0.4. 76 * Version: 0.4.8 7 7 * Requires at least: 6.5 8 8 * Requires PHP: 7.4 … … 22 22 defined( 'ABSPATH' ) || exit; 23 23 24 define( 'PRODTABS_VERSION', '0.4. 7' );24 define( 'PRODTABS_VERSION', '0.4.8' ); 25 25 define( 'PRODTABS_FILE', __FILE__ ); 26 26 define( 'PRODTABS_DIR', plugin_dir_path( __FILE__ ) ); -
prodtabs/tags/0.4.8/readme.txt
r3767626 r3799529 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 0.4. 77 Stable tag: 0.4.8 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 51 51 52 52 * **WPML and WooCommerce Multilingual**: a `wpml-config.xml` file is included. The list of tabs is copied to every language; the titles and texts of the tabs are what you translate, tab by tab. Texts are stored by tab, not by position, so reordering tabs does not change them. Tested with WPML 5.2, String Translation and WooCommerce Multilingual 5.7. 53 * **Polylang**: Polylang reads the same file. The list of tabs stays the same in every language, wherever you change it, and each language keeps its own texts. Tested with Polylang 3.8.53 * **Polylang**: Polylang reads the same file. The list of tabs stays the same in every language, wherever you change it, and each language keeps its own texts. With Polylang Pro, the tab texts follow the description: "Duplicate content" and the bulk translation "Copy" copy them, synchronized products keep them the same in every language, and machine translation translates them with the rest of the product. Tested with Polylang 3.8, Polylang Pro 3.9 and Polylang for WooCommerce 2.2. 54 54 * **Shared tabs** are translated like your posts. A translated product shows the translated shared tab, or the original one until it is translated. 55 55 * A text not translated yet shows in the original language instead of disappearing, or stays hidden until it is translated if you prefer. The overview counts the tabs left to translate in each language. … … 136 136 = How do I translate tabs with Polylang? = 137 137 138 Create the translation of the product: its tabs show the texts of the original, marked as not translated, until you type their translation in the Tabs panel. The list of tabs stays the same in every language. Shared tabs are translated in ProdTabs > Shared tabs.138 Create the translation of the product: its tabs show the texts of the original, marked as not translated, until you type their translation in the Tabs panel. A warning icon next to Tabs in the Product data box tells you that some are left. The list of tabs stays the same in every language. Shared tabs are translated in ProdTabs > Shared tabs. With Polylang Pro, a translation made with "Duplicate content" or the bulk translation "Copy" starts with the texts of the original, like its description, ready to be translated. 139 139 140 140 = Does it work with my theme? = … … 176 176 177 177 == Changelog == 178 179 = 0.4.8 = 180 * Polylang Pro: "Duplicate content", the bulk translation "Copy" and synchronized products now carry the tab texts, like the description. 181 * A tab translated in part (title only, or content only) shows the original text for the missing part, marked as not translated. 182 * Product screen: a warning icon next to Tabs when tabs are left to translate. The panel marks shared tabs without a translation, and tabs without a title or content, which the shop does not show. 183 * Overview: the number of products with tabs updates as soon as tabs are added or removed. 178 184 179 185 = 0.4.7 = -
prodtabs/trunk/assets/css/admin.css
r3767626 r3799529 6 6 content: "\f163"; 7 7 font-family: dashicons; 8 } 9 10 /* Tabs of the product not translated in its language. */ 11 #woocommerce-product-data ul.wc-tabs li.prodtabs_options .prodtabs-tab-alert { 12 width: 16px; 13 height: 16px; 14 margin-inline-start: 4px; 15 color: #996800; 16 font-size: 16px; 17 vertical-align: text-bottom; 8 18 } 9 19 -
prodtabs/trunk/assets/js/admin-product.js
r3762148 r3799529 414 414 } 415 415 416 /* Tabs not translated yet: icon next to the panel entry ----------------------------------------------- */ 417 418 if ( settings.untranslated ) { 419 $( '#woocommerce-product-data ul.wc-tabs li.prodtabs_options > a' ).append( 420 $( '<span class="prodtabs-tab-alert dashicons dashicons-warning" aria-hidden="true"></span>' ).attr( 'title', settings.untranslated ), 421 $( '<span class="screen-reader-text"></span>' ).text( settings.untranslated ) 422 ); 423 } 424 416 425 /* Saving -------------------------------------------------------------------------------------------------- */ 417 426 -
prodtabs/trunk/includes/class-admin-hub.php
r3767626 r3799529 161 161 162 162 /** 163 * Tabs not translated yet, by language (Polylang and WPML): tabs of a product whose translation has no text of its 164 * own, and shared tabs without a published translation. Counted when the overview opens, on the first 163 * Tabs not translated yet, by language (Polylang and WPML): tabs of a product that a translation shows with a text 164 * of the original, its own title or content missing (Product_Tabs::with_fallback()), and shared tabs without a 165 * published translation. Counted when the overview opens, on the first 165 166 * SCAN_LIMIT products of the default language that have tabs. 166 167 * … … 200 201 break 2; 201 202 } 202 $ keys= array();203 $local = array(); 203 204 foreach ( (array) get_post_meta( $id, Tabs::META_LAYOUT, true ) as $entry ) { 204 205 if ( is_array( $entry ) && 'local' === ( $entry['type'] ?? '' ) && ! empty( $entry['visible'] ) && isset( $entry['key'] ) ) { 205 $ keys[] = (string) $entry['key'];206 $local[] = $entry; 206 207 } 207 208 } 208 if ( ! $ keys) {209 if ( ! $local ) { 209 210 continue; 210 211 } 212 $source = get_post_meta( $id, Tabs::META_TEXTS, true ); 213 $source = is_array( $source ) ? $source : array(); 211 214 foreach ( Multilingual::translation_ids( $id, 'product' ) as $translation ) { 212 215 $lang = Multilingual::post_language( $translation ); … … 214 217 continue; 215 218 } 216 $texts = get_post_meta( $translation, Tabs::META_TEXTS, true ); 217 $missing = count( array_diff( $keys, array_keys( is_array( $texts ) ? $texts : array() ) ) ); 219 // Tabs the shop shows with a text of the original filling a missing title or content. 220 $missing = 0; 221 foreach ( Tabs::join( $local, get_post_meta( $translation, Tabs::META_TEXTS, true ) ) as $entry ) { 222 $shown = Product_Tabs::with_fallback( $entry, $source ); 223 $missing += empty( $shown['translated'] ) && ! Product_Tabs::missing( 'title', $shown['title'] ) && ! Product_Tabs::missing( 'content', $shown['content'] ) ? 1 : 0; 224 } 218 225 if ( $missing ) { 219 226 $counts[ $lang ] = ( $counts[ $lang ] ?? 0 ) + $missing; -
prodtabs/trunk/includes/class-admin-product.php
r3762148 r3799529 68 68 wp_enqueue_script( 'prodtabs-admin-product', PRODTABS_URL . 'assets/js/admin-product.js', $deps, Plugin::asset_version( 'assets/js/admin-product.js' ), true ); 69 69 Display::copy_script(); 70 $untranslated = get_the_ID() ? self::untranslated( (int) get_the_ID() ) : 0; 70 71 wp_localize_script( 71 72 'prodtabs-admin-product', 72 73 'prodtabsProduct', 73 74 array( 74 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 75 'nonce' => wp_create_nonce( self::NONCE_AJAX ), 76 'productId' => (int) get_the_ID(), 77 'i18n' => array( 75 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 76 'nonce' => wp_create_nonce( self::NONCE_AJAX ), 77 'productId' => (int) get_the_ID(), 78 /* translators: %d: number of tabs. */ 79 'untranslated' => $untranslated ? sprintf( _n( '%d tab not translated yet', '%d tabs not translated yet', $untranslated, 'prodtabs' ), $untranslated ) : '', 80 'i18n' => array( 78 81 /* translators: %s: tab title. */ 79 82 'moveUp' => __( 'Move “%s” up', 'prodtabs' ), … … 209 212 210 213 /** 214 * Visible tabs of a product that the shop shows untranslated in its language: tabs of its own with a text of the 215 * source or of a shared tab filling a missing title or content, and shared tabs without a published translation in 216 * it. A tab of its own with texts in other languages only is left out: the shop does not show it in this one. 217 * Flagged next to the panel entry. 218 * 219 * @param int $product_id Product id. 220 */ 221 private static function untranslated( int $product_id ): int { 222 $lang = Multilingual::post_language( $product_id ); 223 $product = '' !== $lang ? wc_get_product( $product_id ) : null; 224 if ( ! $product ) { 225 return 0; 226 } 227 $source = self::source_texts( $product_id ); 228 $count = 0; 229 foreach ( Product_Tabs::with_auto( Product_Tabs::get( $product_id ), $product ) as $entry ) { 230 if ( empty( $entry['visible'] ) ) { 231 continue; 232 } 233 if ( 'local' === $entry['type'] ? 'fallback' === self::fallback_state( $entry, $source ) : ( 'library' === $entry['type'] && self::library_untranslated( (int) $entry['library_id'], $lang ) ) ) { 234 ++$count; 235 } 236 } 237 return $count; 238 } 239 240 /** 241 * How the shop shows a tab of the product in its language (Product_Tabs::with_fallback()): 'fallback' when a text of 242 * the source or of a shared tab fills a missing title or content; 'incomplete' when the shop leaves the tab out 243 * because its title or its content is still missing, a fallback or not; 'other' when the tab has no text in this 244 * language and nothing to fall back on (texts in other languages only), and the shop leaves it out; '' otherwise 245 * (its own texts, or a tab without any text saved yet, such as a new one). 246 * 247 * @param array $entry Local entry. 248 * @param array $source Texts of the source product, by key. 249 */ 250 private static function fallback_state( array $entry, array $source ): string { 251 $shown = Product_Tabs::with_fallback( $entry, $source ); 252 $title = Product_Tabs::missing( 'title', $shown['title'] ); 253 $content = Product_Tabs::missing( 'content', $shown['content'] ); 254 if ( $title !== $content ) { 255 return 'incomplete'; 256 } 257 if ( $title ) { 258 return empty( $entry['translated'] ) ? 'other' : ''; 259 } 260 return empty( $shown['translated'] ) ? 'fallback' : ''; 261 } 262 263 /** 264 * Whether a published shared tab has no published translation in a language: the shop shows the original. 265 * 266 * @param int $id Shared tab id stored in the product. 267 * @param string $lang Language of the product. 268 */ 269 private static function library_untranslated( int $id, string $lang ): bool { 270 if ( '' === $lang || ! Library::get_tab( $id ) ) { 271 return false; 272 } 273 $translation = Multilingual::translation( $id, Library::POST_TYPE, $lang ); 274 return ! $translation || 'publish' !== get_post_status( $translation ); 275 } 276 277 /** 211 278 * Texts of the source of a translation, shown to translators as a reference. 212 279 * … … 287 354 if ( 'library' === $type && ! Library::get_tab( (int) $entry['library_id'] ) ) { 288 355 $notes[] = __( 'Not published: not shown in the shop.', 'prodtabs' ); 356 } elseif ( 'library' === $type && self::library_untranslated( (int) $entry['library_id'], (string) $context['lang'] ) ) { 357 $notes[] = __( 'Not translated', 'prodtabs' ); 289 358 } 290 359 if ( ! empty( $entry['auto'] ) ) { 291 360 $notes[] = __( 'Added automatically', 'prodtabs' ); 292 361 } 293 if ( 'local' === $type && empty( $entry['translated'] ) ) { 362 $state = 'local' === $type ? self::fallback_state( $entry, $context['source'] ) : ''; 363 if ( 'fallback' === $state ) { 294 364 $notes[] = __( 'Not translated', 'prodtabs' ); 365 } elseif ( 'incomplete' === $state ) { 366 $notes[] = __( 'Title or content missing: not shown in the shop.', 'prodtabs' ); 367 } elseif ( 'other' === $state ) { 368 $notes[] = __( '(tab of another language: not shown in this one)', 'prodtabs' ); 295 369 } 296 370 } … … 448 522 </div> 449 523 <?php endif; ?> 450 <?php if ( empty( $entry['translated'] ) ) : ?>524 <?php if ( 'fallback' === self::fallback_state( $entry, $context['source'] ) ) : ?> 451 525 <div class="prodtabs-message prodtabs-message--warning"> 452 526 <p><?php esc_html_e( 'Not translated in this language yet: the shop shows the text of the original language. Type the translation below.', 'prodtabs' ); ?></p> -
prodtabs/trunk/includes/class-cache-purge.php
r3762148 r3799529 63 63 // The translations of a source show its list and its texts where they have none of their own. 64 64 self::products( Multilingual::source_product( (int) $object_id ) ? array( (int) $object_id ) : Multilingual::translation_ids( (int) $object_id, 'product' ) ); 65 if ( Tabs::META_LAYOUT === $meta_key ) { 66 delete_transient( 'prodtabs_products_with_tabs' ); // Count of Admin_Hub::products_with_tabs(). 67 } 65 68 } 66 69 return; -
prodtabs/trunk/includes/class-multilingual.php
r3762148 r3799529 29 29 // After Polylang's own reading of wpml-config.xml (priority 20). 30 30 add_filter( 'pll_copy_post_metas', array( __CLASS__, 'polylang_metas' ), 30, 5 ); 31 add_action( 'pll_post_synchronized', array( __CLASS__, 'polylang_copied' ), 10, 4 ); 31 32 add_action( 'add_option_' . Settings::OPTION, array( __CLASS__, 'register_native_titles' ), 10, 2 ); 32 33 add_action( 'update_option_' . Settings::OPTION, array( __CLASS__, 'register_native_titles' ), 10, 2 ); … … 115 116 116 117 /** 117 * Metas Polylang copies when a translation is created and keeps synchronized afterwards: the structure, never the 118 * texts. A new translation has no text of its own: until it is translated, it shows the original as not translated 119 * (hidden by the "Tabs not translated yet" setting, counted in the overview), as with WPML. A product without 120 * structure never synchronizes its absence over a translation that has one: Polylang would delete the tabs of every 121 * language. 118 * Metas Polylang copies when a translation is created and keeps synchronized afterwards: the structure always, the 119 * texts (tab texts, shop title) when Polylang copies the description too. A new translation has no text of its 120 * own: until it is translated, it shows the original as not translated (hidden by the "Tabs not translated yet" 121 * setting, counted in the overview), as with WPML. With Polylang Pro, "Duplicate content" copies the texts into the 122 * new translation, and synchronized posts keep them the same in every language. A product without structure never 123 * synchronizes its absence over a translation that has one: Polylang would delete the tabs of every language. 122 124 * 123 125 * @param string[] $keys Meta keys. … … 131 133 $keys[] = Tabs::META_LAYOUT; 132 134 $keys[] = Library::META_SCOPE; // The same products in every language. 133 if ( ! $sync ) {134 // Polylang copies the fields to translate of wpml-config.xml at creation: tab texts and shop title stay out.135 $keys = array_diff( $keys, array( Tabs::META_TEXTS, Library::META_SHOP_TITLE ) );136 }135 $texts = array( Tabs::META_TEXTS, Library::META_SHOP_TITLE ); 136 // Polylang copies the fields to translate of wpml-config.xml at creation, and Polylang Pro all the fields of 137 // synchronized posts before its reading of wpml-config.xml takes them out. 138 $keys = self::polylang_copies_texts( (int) $from, (int) $to, (bool) $sync ) ? array_merge( $keys, $texts ) : array_diff( $keys, $texts ); 137 139 $keys = array_values( array_unique( $keys ) ); 138 140 if ( $sync && $from && $to && ! get_post_meta( (int) $from, Tabs::META_LAYOUT, true ) && get_post_meta( (int) $to, Tabs::META_LAYOUT, true ) ) { … … 140 142 } 141 143 return $keys; 144 } 145 146 /** 147 * Whether Polylang copies the description of a post to another one: synchronized posts of Polylang Pro (from their 148 * creation), or a new translation created while "Duplicate content" is on. 149 * 150 * @param int $from Post the metas come from. 151 * @param int $to Post the metas go to. 152 * @param bool $sync True for the synchronization, false for the copy at creation. 153 */ 154 private static function polylang_copies_texts( int $from, int $to, bool $sync ): bool { 155 if ( ! $from || ! $to || ! function_exists( 'PLL' ) ) { 156 return false; 157 } 158 if ( isset( PLL()->sync_post_model ) && PLL()->sync_post_model->are_synchronized( $from, $to ) ) { 159 return true; 160 } 161 // Option of Polylang Pro, by post type and by user; its machine translation turns it off while it translates. 162 $duplicate = $sync ? null : get_user_meta( get_current_user_id(), 'pll_duplicate_content', true ); 163 return is_array( $duplicate ) && ! empty( $duplicate[ get_post_type( $from ) ] ); 164 } 165 166 /** 167 * Copy of a post by Polylang Pro (bulk translation "Copy"): the description is copied once, the texts too. 168 * Synchronized posts get theirs through polylang_metas(). 169 * 170 * @param int $from Source post. 171 * @param int $to Copy. 172 * @param string $lang Language of the copy. 173 * @param string $strategy copy, or sync for synchronized posts. 174 */ 175 public static function polylang_copied( $from, $to, $lang, $strategy ): void { 176 if ( 'copy' !== $strategy || ! in_array( get_post_type( (int) $from ), array( 'product', Library::POST_TYPE ), true ) ) { 177 return; 178 } 179 foreach ( array( Tabs::META_TEXTS, Library::META_SHOP_TITLE ) as $key ) { 180 $value = get_post_meta( (int) $from, $key, true ); 181 if ( '' === $value || array() === $value ) { 182 delete_post_meta( (int) $to, $key ); 183 } else { 184 update_post_meta( (int) $to, $key, wp_slash( $value ) ); 185 } 186 } 142 187 } 143 188 -
prodtabs/trunk/includes/class-product-tabs.php
r3762148 r3799529 111 111 112 112 /** 113 * Entries of a product for the shop. Texts missing in the language of the product come from the source product 114 * (the original with WPML, the default language with Polylang), then from the library tab a tab was customized 115 * from; a tab with no text anywhere is left out. A translation without a list of its own uses the list of its source. 113 * Entries of a product for the shop. A title or a content missing in the language of the product comes from the 114 * source product (the original with WPML, the default language with Polylang); a tab without any text, in its 115 * language or in the source, shows the library tab it was customized from (with_fallback()). A tab still without a 116 * title or a content is left out. A translation without a list of its own uses the list of its source. 116 117 * 117 118 * @param int $product_id Product id. … … 132 133 $source_texts = null; 133 134 foreach ( $entries as $i => $entry ) { 134 if ( 'local' !== ( $entry['type'] ?? '' ) || ! empty( $entry['translated']) ) {135 if ( 'local' !== ( $entry['type'] ?? '' ) || ( ! self::missing( 'title', $entry['title'] ) && ! self::missing( 'content', $entry['content'] ) ) ) { 135 136 continue; 136 137 } … … 140 141 $source_texts = is_array( $source_texts ) ? $source_texts : array(); 141 142 } 142 $text = $source_texts[ $entry['key'] ] ?? null; 143 if ( is_array( $text ) && '' !== ( $text['title'] ?? '' ) ) { 144 $entries[ $i ]['title'] = (string) $text['title']; 145 $entries[ $i ]['content'] = (string) ( $text['content'] ?? '' ); 146 continue; 147 } 148 $library = ! empty( $entry['origin'] ) ? Library::resolve( (int) $entry['origin'] ) : null; 149 if ( $library ) { 150 $entries[ $i ]['title'] = $library['title']; 151 $entries[ $i ]['content'] = $library['content']; 152 } 143 $entries[ $i ] = self::with_fallback( $entry, $source_texts ); 153 144 } 154 145 $entries = Tabs::normalize( $entries ); 155 146 return $entries ? Tabs::with_natives( $entries, Settings::get( 'native_order' ) ) : array(); 147 } 148 149 /** 150 * Texts the shop shows for a tab of a product: a title or a content missing in the language of the product comes 151 * from the source product for this key, field by field. Only a tab without any text, neither saved in its language 152 * nor in the source, takes the title and the content of the library tab it was customized from: a customized tab 153 * that lost its title or its content stays without it, and the shop leaves it out. The one rule of the fallback, 154 * read by the shop, the product screen and the overview. 155 * 156 * @param array $entry Local entry with the texts of the language of the product (see Tabs::join()). 157 * @param array $source_texts Texts of the source product, by key. 158 * @return array The entry with the texts the shop shows; 'translated' false when one of them comes from a fallback. 159 */ 160 public static function with_fallback( array $entry, array $source_texts ): array { 161 $saved = ! empty( $entry['translated'] ); // Texts saved in the language of the product (Tabs::join()). 162 $text = $source_texts[ $entry['key'] ?? '' ] ?? null; 163 foreach ( array( 'title', 'content' ) as $field ) { 164 $value = is_array( $text ) && isset( $text[ $field ] ) && is_scalar( $text[ $field ] ) ? (string) $text[ $field ] : ''; 165 if ( self::missing( $field, (string) $entry[ $field ] ) && ! self::missing( $field, $value ) ) { 166 $entry[ $field ] = $value; 167 $entry['translated'] = false; 168 } 169 } 170 if ( $saved || ! self::missing( 'title', $entry['title'] ) || ! self::missing( 'content', $entry['content'] ) || empty( $entry['origin'] ) ) { 171 return $entry; 172 } 173 $library = Library::resolve( (int) $entry['origin'] ); 174 if ( $library ) { 175 $entry['title'] = (string) $library['title']; 176 $entry['content'] = (string) $library['content']; 177 $entry['translated'] = false; 178 } 179 return $entry; 180 } 181 182 /** 183 * Whether a text of a tab is missing: no title to click on, or a content that shows nothing. 184 * 185 * @param string $field title or content. 186 * @param string $value Text. 187 */ 188 public static function missing( string $field, string $value ): bool { 189 return 'title' === $field ? '' === trim( $value ) : Tabs::is_blank( $value ); 156 190 } 157 191 -
prodtabs/trunk/languages/prodtabs.pot
r3767626 r3799529 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: ProdTabs: Multilingual Product Tabs for WooCommerce 0.4. 7\n"5 "Project-Id-Version: ProdTabs: Multilingual Product Tabs for WooCommerce 0.4.8\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/prodtabs\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-1 0-26T01:29:16+00:00\n"12 "POT-Creation-Date: 2026-11-13T01:09:35+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 50 50 51 51 #: includes/class-admin-hub.php:80 52 #: includes/class-admin-hub.php:41 152 #: includes/class-admin-hub.php:418 53 53 #: includes/class-admin-settings.php:48 54 54 msgid "Settings" 55 55 msgstr "" 56 56 57 #: includes/class-admin-hub.php:3 0757 #: includes/class-admin-hub.php:314 58 58 #: includes/class-admin-import.php:439 59 #: includes/class-admin-product.php: 39359 #: includes/class-admin-product.php:467 60 60 #: includes/class-admin-settings.php:293 61 61 msgid "Description" 62 62 msgstr "" 63 63 64 #: includes/class-admin-hub.php:3 0864 #: includes/class-admin-hub.php:315 65 65 #: includes/class-admin-import.php:440 66 #: includes/class-admin-product.php: 39466 #: includes/class-admin-product.php:468 67 67 #: includes/class-admin-settings.php:294 68 68 msgid "Additional information" 69 69 msgstr "" 70 70 71 #: includes/class-admin-hub.php:3 0971 #: includes/class-admin-hub.php:316 72 72 #: includes/class-admin-import.php:441 73 #: includes/class-admin-product.php: 39573 #: includes/class-admin-product.php:469 74 74 #: includes/class-admin-settings.php:295 75 75 msgid "Reviews" 76 76 msgstr "" 77 77 78 #: includes/class-admin-hub.php:4 0678 #: includes/class-admin-hub.php:413 79 79 msgid "Tabs of each product, tabs shared between products, and the WooCommerce tabs for the whole shop." 80 80 msgstr "" 81 81 82 #: includes/class-admin-hub.php:41 083 #: includes/class-admin-hub.php:48 282 #: includes/class-admin-hub.php:417 83 #: includes/class-admin-hub.php:489 84 84 #: includes/class-admin-library.php:197 85 85 #: includes/class-admin-settings.php:262 … … 87 87 msgstr "" 88 88 89 #: includes/class-admin-hub.php:4 1889 #: includes/class-admin-hub.php:425 90 90 msgid "shared tab" 91 91 msgid_plural "shared tabs" … … 93 93 msgstr[1] "" 94 94 95 #: includes/class-admin-hub.php:42 295 #: includes/class-admin-hub.php:429 96 96 msgid "product with tabs of its own" 97 97 msgid_plural "products with tabs of their own" … … 100 100 101 101 #. translators: %s: name of the translation plugin. 102 #: includes/class-admin-hub.php:43 0102 #: includes/class-admin-hub.php:437 103 103 #, php-format 104 104 msgid "language, with %s" … … 107 107 msgstr[1] "" 108 108 109 #: includes/class-admin-hub.php:4 38109 #: includes/class-admin-hub.php:445 110 110 msgid "product with Custom Product Tabs (YIKES)" 111 111 msgid_plural "products with Custom Product Tabs (YIKES)" … … 113 113 msgstr[1] "" 114 114 115 #: includes/class-admin-hub.php:4 45115 #: includes/class-admin-hub.php:452 116 116 #: includes/class-admin-settings.php:124 117 117 msgid "WooCommerce tabs" … … 119 119 120 120 #. translators: %s: name of a WooCommerce tab. 121 #: includes/class-admin-hub.php:45 1121 #: includes/class-admin-hub.php:458 122 122 #, php-format 123 123 msgid "%s (hidden)" 124 124 msgstr "" 125 125 126 #: includes/class-admin-hub.php:4 56126 #: includes/class-admin-hub.php:463 127 127 msgid "In this order on every product. A product can hide or move a tab." 128 128 msgstr "" 129 129 130 #: includes/class-admin-hub.php:4 57130 #: includes/class-admin-hub.php:464 131 131 msgid "Rename, hide or reorder" 132 132 msgstr "" 133 133 134 #: includes/class-admin-hub.php:46 1134 #: includes/class-admin-hub.php:468 135 135 #: includes/class-admin-settings.php:118 136 136 #: includes/class-library.php:31 … … 140 140 msgstr "" 141 141 142 #: includes/class-admin-hub.php:4 65142 #: includes/class-admin-hub.php:472 143 143 msgid "None yet. Write shipping or returns once, add them to your products or show them on the whole catalog." 144 144 msgstr "" 145 145 146 146 #. translators: %d: number of shared tabs. 147 #: includes/class-admin-hub.php:4 68147 #: includes/class-admin-hub.php:475 148 148 #, php-format 149 149 msgid "%d shared tab" … … 153 153 154 154 #. translators: %d: number of shared tabs. 155 #: includes/class-admin-hub.php:47 1155 #: includes/class-admin-hub.php:478 156 156 #, php-format 157 157 msgid "%d shown on its own by its “Show on” setting" … … 161 161 162 162 #. translators: Sentence of the shared tabs card. 1: number of shared tabs, such as "3 shared tabs"; 2: how many of them show on their own, such as "2 shown on their own by their “Show on” setting". 163 #: includes/class-admin-hub.php:4 73163 #: includes/class-admin-hub.php:480 164 164 #, php-format 165 165 msgid "%1$s, %2$s." … … 167 167 168 168 #. translators: Sentence of the shared tabs card. %s: number of shared tabs, such as "3 shared tabs". Only adds the punctuation that ends the sentence. 169 #: includes/class-admin-hub.php:4 76169 #: includes/class-admin-hub.php:483 170 170 #, php-format 171 171 msgid "%s." 172 172 msgstr "" 173 173 174 #: includes/class-admin-hub.php:4 83174 #: includes/class-admin-hub.php:490 175 175 msgid "See the list" 176 176 msgstr "" 177 177 178 #: includes/class-admin-hub.php:4 88178 #: includes/class-admin-hub.php:495 179 179 msgid "Tabs anywhere" 180 180 msgstr "" 181 181 182 #: includes/class-admin-hub.php:4 89182 #: includes/class-admin-hub.php:496 183 183 msgid "In a page, a page builder, or a theme that does not show the tabs: a shortcode, or the “Product tabs (ProdTabs)” block." 184 184 msgstr "" 185 185 186 #: includes/class-admin-hub.php:49 1186 #: includes/class-admin-hub.php:498 187 187 msgid "See the shortcodes" 188 188 msgstr "" 189 189 190 #: includes/class-admin-hub.php: 494190 #: includes/class-admin-hub.php:501 191 191 msgid "every tab of the product of the page" 192 192 msgstr "" 193 193 194 #: includes/class-admin-hub.php: 496194 #: includes/class-admin-hub.php:503 195 195 msgid "the tabs of a product, on any page" 196 196 msgstr "" 197 197 198 #: includes/class-admin-hub.php: 498198 #: includes/class-admin-hub.php:505 199 199 msgid "one tab of the product, by its anchor; add title=\"no\" to leave its title out" 200 200 msgstr "" 201 201 202 #: includes/class-admin-hub.php:50 0202 #: includes/class-admin-hub.php:507 203 203 msgid "a shared tab, on any page" 204 204 msgstr "" 205 205 206 #: includes/class-admin-hub.php:50 2206 #: includes/class-admin-hub.php:509 207 207 msgid "The shortcode of each tab is ready to copy in the Tabs panel of the product, and on the screen of each shared tab." 208 208 msgstr "" 209 209 210 #: includes/class-admin-hub.php:5 07210 #: includes/class-admin-hub.php:514 211 211 #: includes/class-admin-settings.php:174 212 212 msgid "Languages" … … 214 214 215 215 #. translators: %d: number of tabs. 216 #: includes/class-admin-hub.php:518 216 #: includes/class-admin-hub.php:525 217 #: includes/class-admin-product.php:79 217 218 #, php-format 218 219 msgid "%d tab not translated yet" … … 221 222 msgstr[1] "" 222 223 223 #: includes/class-admin-hub.php:53 1224 #: includes/class-admin-hub.php:538 224 225 #: includes/class-admin-settings.php:414 225 226 msgid "No translation plugin found. ProdTabs works with WPML, Polylang, TranslatePress and Weglot." … … 227 228 228 229 #. translators: %s: name of the translation plugin. 229 #: includes/class-admin-hub.php:5 34230 #: includes/class-admin-hub.php:541 230 231 #, php-format 231 232 msgid "%s is active: a product and its translations share one list of tabs, and each language keeps its own texts." … … 233 234 234 235 #. translators: %s: name of the translation plugin. 235 #: includes/class-admin-hub.php:5 37236 #: includes/class-admin-hub.php:544 236 237 #, php-format 237 238 msgid "%s is active: tab titles and contents are translated on the page." … … 239 240 240 241 #. translators: %d: number of tabs. 241 #: includes/class-admin-hub.php:5 48242 #: includes/class-admin-hub.php:555 242 243 #, php-format 243 244 msgid "%d tab is not translated yet in one of the languages: it stays hidden there until then." … … 247 248 248 249 #. translators: %d: number of tabs. 249 #: includes/class-admin-hub.php:55 0250 #: includes/class-admin-hub.php:557 250 251 #, php-format 251 252 msgid "%d tab is not translated yet in one of the languages: it shows its original text there until then." … … 254 255 msgstr[1] "" 255 256 256 #: includes/class-admin-hub.php:5 55257 #: includes/class-admin-hub.php:562 257 258 msgid "Check the setup" 258 259 msgstr "" 259 260 260 #: includes/class-admin-hub.php:56 0261 #: includes/class-admin-hub.php:567 261 262 msgid "Custom Product Tabs (YIKES)" 262 263 msgstr "" 263 264 264 265 #. translators: 1: number of products, 2: number of reusable tabs. 265 #: includes/class-admin-hub.php:5 66266 #: includes/class-admin-hub.php:573 266 267 #: includes/class-admin-settings.php:446 267 268 #, php-format … … 270 271 271 272 #. translators: %d: number of products. 272 #: includes/class-admin-hub.php:5 68273 #: includes/class-admin-hub.php:575 273 274 #: includes/class-admin-import.php:336 274 275 #: includes/class-admin-library.php:110 … … 282 283 283 284 #. translators: %d: number of reusable tabs. 284 #: includes/class-admin-hub.php:57 0285 #: includes/class-admin-hub.php:577 285 286 #: includes/class-admin-settings.php:450 286 287 #, php-format … … 290 291 msgstr[1] "" 291 292 292 #: includes/class-admin-hub.php:5 74293 #: includes/class-admin-hub.php:581 293 294 msgid "The import keeps the order and the links to tabs, and can be undone." 294 295 msgstr "" 295 296 296 #: includes/class-admin-hub.php:5 77297 #: includes/class-admin-hub.php:584 297 298 msgid "Open the import" 298 299 msgstr "" 299 300 300 #: includes/class-admin-hub.php:59 2301 #: includes/class-admin-hub.php:599 301 302 msgid "ProdTabs Premium" 302 303 msgstr "" 303 304 304 #: includes/class-admin-hub.php: 594305 #: includes/class-admin-hub.php:601 305 306 msgid "FAQ tabs with schema.org FAQPage structured data" 306 307 msgstr "" 307 308 308 #: includes/class-admin-hub.php: 595309 #: includes/class-admin-hub.php:602 309 310 msgid "Your tab texts in the content analysis of Yoast SEO and Rank Math" 310 311 msgstr "" 311 312 312 #: includes/class-admin-hub.php: 596313 #: includes/class-admin-hub.php:603 313 314 msgid "Shared tabs shown by category, tag or brand" 314 315 msgstr "" 315 316 316 #: includes/class-admin-hub.php: 597317 #: includes/class-admin-hub.php:604 317 318 msgid "Add or remove a shared tab on many products at once" 318 319 msgstr "" 319 320 320 #: includes/class-admin-hub.php: 598321 #: includes/class-admin-hub.php:605 321 322 msgid "Tab texts translated in a spreadsheet, one column per language" 322 323 msgstr "" 323 324 324 325 #. translators: Price of the Premium license for one shop. Use the currency of the pricing page the button opens: euros in French (refficience.com/prodtabs/), US dollars in every other language. 325 #: includes/class-admin-hub.php:6 03326 #: includes/class-admin-hub.php:610 326 327 msgid "$49 a year for your shop" 327 328 msgstr "" 328 329 329 #: includes/class-admin-hub.php:6 05330 #: includes/class-admin-hub.php:612 330 331 msgid "Discover ProdTabs Premium" 331 332 msgstr "" 332 333 333 #: includes/class-admin-hub.php:605 334 #: includes/class-admin-hub.php:622 335 #: includes/class-admin-hub.php:626 336 #: includes/class-admin-hub.php:627 337 #: includes/class-admin-hub.php:628 334 #: includes/class-admin-hub.php:612 338 335 #: includes/class-admin-hub.php:629 339 #: includes/class-admin-hub.php:640 336 #: includes/class-admin-hub.php:633 337 #: includes/class-admin-hub.php:634 338 #: includes/class-admin-hub.php:635 339 #: includes/class-admin-hub.php:636 340 #: includes/class-admin-hub.php:647 340 341 #: includes/class-admin-import.php:623 341 #: includes/class-admin-product.php:1 67342 #: includes/class-admin-product.php:5 10342 #: includes/class-admin-product.php:170 343 #: includes/class-admin-product.php:584 343 344 #: includes/class-review-ask.php:117 344 345 msgid "(opens in a new tab)" 345 346 msgstr "" 346 347 347 #: includes/class-admin-hub.php:61 2348 #: includes/class-admin-hub.php:619 348 349 msgid "Good to know" 349 350 msgstr "" 350 351 351 #: includes/class-admin-hub.php:6 14352 #: includes/class-admin-hub.php:621 352 353 msgid "No tracking and no ads in your dashboard." 353 354 msgstr "" 354 355 355 #: includes/class-admin-hub.php:6 15356 #: includes/class-admin-hub.php:622 356 357 msgid "Your tabs are standard WordPress data. Deactivating or deleting ProdTabs keeps them, unless you ask otherwise in Settings, Uninstall." 357 358 msgstr "" 358 359 359 #: includes/class-admin-hub.php:6 16360 #: includes/class-admin-hub.php:623 360 361 msgid "Built for WPML and Polylang, and works with TranslatePress and Weglot." 361 362 msgstr "" 362 363 363 #: includes/class-admin-hub.php:6 17364 #: includes/class-admin-hub.php:624 364 365 msgid "Translated on translate.wordpress.org: each language arrives with the WordPress updates once approved." 365 366 msgstr "" 366 367 367 #: includes/class-admin-hub.php:62 1368 #: includes/class-admin-hub.php:628 368 369 msgid "ProdTabs is not translated into your language yet. Translate it on translate.wordpress.org: once your translation is approved, write to us and get a one-year ProdTabs Premium license for one site." 369 370 msgstr "" 370 371 371 #: includes/class-admin-hub.php:62 2372 #: includes/class-admin-hub.php:629 372 373 msgid "Translate ProdTabs" 373 374 msgstr "" 374 375 375 #: includes/class-admin-hub.php:6 26376 #: includes/class-admin-hub.php:633 376 377 msgid "Plugin page" 377 378 msgstr "" 378 379 379 #: includes/class-admin-hub.php:6 27380 #: includes/class-admin-hub.php:634 380 381 msgid "Changelog" 381 382 msgstr "" 382 383 383 #: includes/class-admin-hub.php:6 28384 #: includes/class-admin-hub.php:635 384 385 msgid "Contact support" 385 386 msgstr "" 386 387 387 #: includes/class-admin-hub.php:6 29388 #: includes/class-admin-hub.php:636 388 389 msgid "Rate ProdTabs" 389 390 msgstr "" 390 391 391 #: includes/class-admin-hub.php:6 35392 #: includes/class-admin-hub.php:6 38392 #: includes/class-admin-hub.php:642 393 #: includes/class-admin-hub.php:645 393 394 msgid "Support information" 394 395 msgstr "" 395 396 396 #: includes/class-admin-hub.php:6 36397 #: includes/class-admin-hub.php:643 397 398 msgid "This report helps us answer you: versions, settings, theme, active plugins and the address of the site, with no customer data. The button opens our support form with the report filled in. You see it there, you can leave it out, and it reaches us only when you send your message." 398 399 msgstr "" 399 400 400 #: includes/class-admin-hub.php:64 0401 #: includes/class-admin-hub.php:647 401 402 msgid "Contact support with this report" 402 403 msgstr "" 403 404 404 #: includes/class-admin-hub.php:64 1405 #: includes/class-admin-hub.php:648 405 406 msgid "Report copied." 406 407 msgstr "" 407 408 408 #: includes/class-admin-hub.php:64 1409 #: includes/class-admin-hub.php:648 409 410 #: includes/class-admin-library.php:288 410 411 #: includes/class-display.php:161 … … 756 757 757 758 #: includes/class-admin-import.php:455 759 #: includes/class-admin-product.php:368 758 760 msgid "(tab of another language: not shown in this one)" 759 761 msgstr "" 760 762 761 763 #: includes/class-admin-import.php:460 762 #: includes/class-admin-product.php:9 3763 #: includes/class-admin-product.php:3 16764 #: includes/class-admin-product.php:96 765 #: includes/class-admin-product.php:390 764 766 msgid "(no title)" 765 767 msgstr "" 766 768 767 769 #: includes/class-admin-import.php:462 768 #: includes/class-admin-product.php: 285770 #: includes/class-admin-product.php:352 769 771 msgid "Shared" 770 772 msgstr "" … … 1004 1006 1005 1007 #: includes/class-admin-library.php:55 1006 #: includes/class-admin-product.php: 4601008 #: includes/class-admin-product.php:534 1007 1009 msgid "Content" 1008 1010 msgstr "" … … 1119 1121 1120 1122 #. translators: %s: tab title. 1121 #: includes/class-admin-product.php: 791122 #: includes/class-admin-product.php: 3281123 #: includes/class-admin-product.php:82 1124 #: includes/class-admin-product.php:402 1123 1125 #, php-format 1124 1126 msgid "Move “%s” up" … … 1126 1128 1127 1129 #. translators: %s: tab title. 1128 #: includes/class-admin-product.php:8 11129 #: includes/class-admin-product.php: 3311130 #: includes/class-admin-product.php:84 1131 #: includes/class-admin-product.php:405 1130 1132 #, php-format 1131 1133 msgid "Move “%s” down" … … 1133 1135 1134 1136 #. translators: %s: tab title. 1135 #: includes/class-admin-product.php:8 31136 #: includes/class-admin-product.php: 3541137 #: includes/class-admin-product.php:86 1138 #: includes/class-admin-product.php:428 1137 1139 #, php-format 1138 1140 msgid "Remove “%s”" … … 1140 1142 1141 1143 #. translators: 1: tab title, 2: new position, 3: number of tabs. 1142 #: includes/class-admin-product.php:8 51144 #: includes/class-admin-product.php:88 1143 1145 #, php-format 1144 1146 msgid "“%1$s” moved to position %2$d of %3$d." … … 1146 1148 1147 1149 #. translators: %s: tab title. 1148 #: includes/class-admin-product.php: 871150 #: includes/class-admin-product.php:90 1149 1151 #, php-format 1150 1152 msgid "“%s” added." … … 1152 1154 1153 1155 #. translators: %s: tab title. 1154 #: includes/class-admin-product.php: 891156 #: includes/class-admin-product.php:92 1155 1157 #, php-format 1156 1158 msgid "“%s” removed." … … 1158 1160 1159 1161 #. translators: %s: tab title. 1160 #: includes/class-admin-product.php:9 11162 #: includes/class-admin-product.php:94 1161 1163 #, php-format 1162 1164 msgid "Remove the tab “%s”? Its content will be lost when you update the product." 1163 1165 msgstr "" 1164 1166 1165 #: includes/class-admin-product.php:9 21167 #: includes/class-admin-product.php:95 1166 1168 msgid "Go back to the shared version? The changes made to this tab on this product will be lost when you update the product." 1167 1169 msgstr "" 1168 1170 1169 #: includes/class-admin-product.php:9 41171 #: includes/class-admin-product.php:97 1170 1172 msgid "Something went wrong. Reload the page and try again." 1171 1173 msgstr "" 1172 1174 1173 #: includes/class-admin-product.php:9 51175 #: includes/class-admin-product.php:98 1174 1176 msgid "New tab" 1175 1177 msgstr "" 1176 1178 1177 #: includes/class-admin-product.php:12 61179 #: includes/class-admin-product.php:129 1178 1180 msgid "This product is a translation: its tabs, their order and their visibility follow the original product. Translate the texts of its own tabs here, or in the translation editor." 1179 1181 msgstr "" 1180 1182 1181 #: includes/class-admin-product.php:1 281183 #: includes/class-admin-product.php:131 1182 1184 msgid "Tabs shown on this product, in this order. Drag a tab or use its arrows to move it." 1183 1185 msgstr "" 1184 1186 1185 #: includes/class-admin-product.php:14 01187 #: includes/class-admin-product.php:143 1186 1188 msgid "This product only shows the WooCommerce tabs. Add a tab of its own, or a shared tab." 1187 1189 msgstr "" 1188 1190 1189 #: includes/class-admin-product.php:14 51191 #: includes/class-admin-product.php:148 1190 1192 msgid "Add a tab" 1191 1193 msgstr "" 1192 1194 1193 #: includes/class-admin-product.php:1 571195 #: includes/class-admin-product.php:160 1194 1196 msgid "Add a shared tab" 1195 1197 msgstr "" 1196 1198 1197 #: includes/class-admin-product.php:1 581198 #: includes/class-admin-product.php:1 591199 #: includes/class-admin-product.php:161 1200 #: includes/class-admin-product.php:162 1199 1201 msgid "Add a shared tab…" 1200 1202 msgstr "" 1201 1203 1202 #: includes/class-admin-product.php:1 671204 #: includes/class-admin-product.php:170 1203 1205 msgid "Create a shared tab, to use on several products" 1204 1206 msgstr "" 1205 1207 1206 #: includes/class-admin-product.php:19 41208 #: includes/class-admin-product.php:197 1207 1209 msgid "Shortcode of all the tabs of this product" 1208 1210 msgstr "" 1209 1211 1210 1212 #. translators: 1: title of the tab in the shop, 2: name of the library tab. 1211 #: includes/class-admin-product.php: 2451213 #: includes/class-admin-product.php:312 1212 1214 #, php-format 1213 1215 msgid "%1$s (%2$s)" 1214 1216 msgstr "" 1215 1217 1216 #: includes/class-admin-product.php: 2801218 #: includes/class-admin-product.php:347 1217 1219 msgid "WooCommerce" 1218 1220 msgstr "" 1219 1221 1220 #: includes/class-admin-product.php: 2851222 #: includes/class-admin-product.php:352 1221 1223 msgid "This product" 1222 1224 msgstr "" 1223 1225 1224 #: includes/class-admin-product.php: 2881226 #: includes/class-admin-product.php:355 1225 1227 msgid "Not published: not shown in the shop." 1226 1228 msgstr "" 1227 1229 1228 #: includes/class-admin-product.php:291 1230 #: includes/class-admin-product.php:357 1231 #: includes/class-admin-product.php:364 1232 msgid "Not translated" 1233 msgstr "" 1234 1235 #: includes/class-admin-product.php:360 1229 1236 msgid "Added automatically" 1230 1237 msgstr "" 1231 1238 1232 #: includes/class-admin-product.php: 2941233 msgid " Not translated"1234 msgstr "" 1235 1236 #: includes/class-admin-product.php:3 131239 #: includes/class-admin-product.php:366 1240 msgid "Title or content missing: not shown in the shop." 1241 msgstr "" 1242 1243 #: includes/class-admin-product.php:387 1237 1244 msgid "Drag to move" 1238 1245 msgstr "" 1239 1246 1240 #: includes/class-admin-product.php:3 251247 #: includes/class-admin-product.php:399 1241 1248 #: includes/class-admin-settings.php:307 1242 1249 msgid "Visible" 1243 1250 msgstr "" 1244 1251 1245 #: includes/class-admin-product.php: 3371246 #: includes/class-admin-product.php: 3461252 #: includes/class-admin-product.php:411 1253 #: includes/class-admin-product.php:420 1247 1254 msgid "Details" 1248 1255 msgstr "" 1249 1256 1250 #: includes/class-admin-product.php: 3461257 #: includes/class-admin-product.php:420 1251 1258 msgid "Edit" 1252 1259 msgstr "" 1253 1260 1254 #: includes/class-admin-product.php:4 061261 #: includes/class-admin-product.php:480 1255 1262 msgid "(deleted shared tab)" 1256 1263 msgstr "" 1257 1264 1258 1265 #. translators: %s: library tab title. 1259 #: includes/class-admin-product.php: 4421266 #: includes/class-admin-product.php:516 1260 1267 #, php-format 1261 1268 msgid "Customized from the shared tab “%s”: changes made to the shared tab no longer apply to this product." 1262 1269 msgstr "" 1263 1270 1264 #: includes/class-admin-product.php: 4451271 #: includes/class-admin-product.php:519 1265 1272 msgid "Go back to the shared version" 1266 1273 msgstr "" 1267 1274 1268 #: includes/class-admin-product.php: 4521275 #: includes/class-admin-product.php:526 1269 1276 msgid "Not translated in this language yet: the shop shows the text of the original language. Type the translation below." 1270 1277 msgstr "" 1271 1278 1272 #: includes/class-admin-product.php: 4561279 #: includes/class-admin-product.php:530 1273 1280 msgid "Title" 1274 1281 msgstr "" 1275 1282 1276 #: includes/class-admin-product.php: 4611283 #: includes/class-admin-product.php:535 1277 1284 msgid "This content contains code that the visual editor would change (icons, scripts, styles): it opens in the code editor." 1278 1285 msgstr "" 1279 1286 1280 #: includes/class-admin-product.php: 4661287 #: includes/class-admin-product.php:540 1281 1288 msgid "Text of the original language" 1282 1289 msgstr "" 1283 1290 1284 1291 #. translators: %s: anchor such as #tab-shipping. 1285 #: includes/class-admin-product.php: 4741292 #: includes/class-admin-product.php:548 1286 1293 #, php-format 1287 1294 msgid "Direct link to this tab: %s" 1288 1295 msgstr "" 1289 1296 1290 #: includes/class-admin-product.php: 4781291 #: includes/class-admin-product.php:5 181292 #: includes/class-admin-product.php:6 141297 #: includes/class-admin-product.php:552 1298 #: includes/class-admin-product.php:592 1299 #: includes/class-admin-product.php:688 1293 1300 msgid "Shortcode of this tab" 1294 1301 msgstr "" 1295 1302 1296 #: includes/class-admin-product.php:5 001303 #: includes/class-admin-product.php:574 1297 1304 msgid "This shared tab no longer exists. Remove it from the product, or add another one." 1298 1305 msgstr "" 1299 1306 1300 #: includes/class-admin-product.php:5 051307 #: includes/class-admin-product.php:579 1301 1308 msgid "Shared content (read only)" 1302 1309 msgstr "" 1303 1310 1304 #: includes/class-admin-product.php:5 101311 #: includes/class-admin-product.php:584 1305 1312 msgid "Edit the shared tab" 1306 1313 msgstr "" 1307 1314 1308 #: includes/class-admin-product.php:5 131315 #: includes/class-admin-product.php:587 1309 1316 msgid "Customize for this product" 1310 1317 msgstr "" 1311 1318 1312 #: includes/class-admin-product.php:5 161319 #: includes/class-admin-product.php:590 1313 1320 msgid "Shared tab: changes made to it apply to every product that uses it. Customize it to change it on this product only." 1314 1321 msgstr "" 1315 1322 1316 #: includes/class-admin-product.php:5 211323 #: includes/class-admin-product.php:595 1317 1324 msgid "Added automatically by the “Show on” setting of the shared tab. Uncheck Visible to hide it on this product." 1318 1325 msgstr "" 1319 1326 1320 #: includes/class-admin-product.php: 5421327 #: includes/class-admin-product.php:616 1321 1328 msgid "Content of this tab: the description of the product, in the main editor at the top of this screen." 1322 1329 msgstr "" 1323 1330 1324 #: includes/class-admin-product.php: 5451331 #: includes/class-admin-product.php:619 1325 1332 msgid "The description is empty: WooCommerce does not show this tab." 1326 1333 msgstr "" 1327 1334 1328 #: includes/class-admin-product.php: 5461335 #: includes/class-admin-product.php:620 1329 1336 msgid "Go to the description" 1330 1337 msgstr "" 1331 1338 1332 #: includes/class-admin-product.php: 5491339 #: includes/class-admin-product.php:623 1333 1340 msgid "Content made by WooCommerce: the attributes shown on the product page, and the weight and dimensions." 1334 1341 msgstr "" 1335 1342 1336 #: includes/class-admin-product.php: 5611343 #: includes/class-admin-product.php:635 1337 1344 msgid "Weight" 1338 1345 msgstr "" 1339 1346 1340 #: includes/class-admin-product.php: 5641347 #: includes/class-admin-product.php:638 1341 1348 msgid "Dimensions" 1342 1349 msgstr "" 1343 1350 1344 #: includes/class-admin-product.php: 5671351 #: includes/class-admin-product.php:641 1345 1352 msgid "Nothing to show: WooCommerce does not show this tab on this product." 1346 1353 msgstr "" 1347 1354 1348 #: includes/class-admin-product.php: 5721355 #: includes/class-admin-product.php:646 1349 1356 msgid "Content of this tab: the customer reviews of the product." 1350 1357 msgstr "" 1351 1358 1352 #: includes/class-admin-product.php: 5741359 #: includes/class-admin-product.php:648 1353 1360 msgid "Reviews are off for the whole shop: WooCommerce does not show this tab." 1354 1361 msgstr "" 1355 1362 1356 #: includes/class-admin-product.php: 5761363 #: includes/class-admin-product.php:650 1357 1364 msgid "Reviews are off for this product: WooCommerce does not show this tab." 1358 1365 msgstr "" 1359 1366 1360 #: includes/class-admin-product.php: 5791367 #: includes/class-admin-product.php:653 1361 1368 msgid "No reviews yet: the tab shows the review form." 1362 1369 msgstr "" 1363 1370 1364 1371 #. translators: %d: number of reviews. 1365 #: includes/class-admin-product.php: 5821372 #: includes/class-admin-product.php:656 1366 1373 #, php-format 1367 1374 msgid "%d review." … … 1370 1377 msgstr[1] "" 1371 1378 1372 #: includes/class-admin-product.php: 5911379 #: includes/class-admin-product.php:665 1373 1380 msgid "What the shop shows (as saved)" 1374 1381 msgstr "" 1375 1382 1376 #: includes/class-admin-product.php:6 121383 #: includes/class-admin-product.php:686 1377 1384 msgid "As saved: changes made on this screen show here once the product is updated." 1378 1385 msgstr "" 1379 1386 1380 #: includes/class-admin-product.php: 6491387 #: includes/class-admin-product.php:723 1381 1388 msgid "The tabs of this product were not saved: the form was too long for the server (max_input_vars setting of PHP). Your host can raise this limit." 1382 1389 msgstr "" 1383 1390 1384 #: includes/class-admin-product.php: 6641391 #: includes/class-admin-product.php:738 1385 1392 msgid "The list of tabs of this product was changed in another language while you were editing it. The texts you typed were saved, but not your changes to the list: check the Tabs panel and make them again." 1386 1393 msgstr "" -
prodtabs/trunk/prodtabs.php
r3767626 r3799529 4 4 * Plugin URI: https://refficience.com/en/prodtabs/ 5 5 * Description: Custom product tabs, shared tabs and settings for the WooCommerce tabs, built for multilingual shops. Imports your tabs from Custom Product Tabs (YIKES) in one click. 6 * Version: 0.4. 76 * Version: 0.4.8 7 7 * Requires at least: 6.5 8 8 * Requires PHP: 7.4 … … 22 22 defined( 'ABSPATH' ) || exit; 23 23 24 define( 'PRODTABS_VERSION', '0.4. 7' );24 define( 'PRODTABS_VERSION', '0.4.8' ); 25 25 define( 'PRODTABS_FILE', __FILE__ ); 26 26 define( 'PRODTABS_DIR', plugin_dir_path( __FILE__ ) ); -
prodtabs/trunk/readme.txt
r3767626 r3799529 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 0.4. 77 Stable tag: 0.4.8 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 51 51 52 52 * **WPML and WooCommerce Multilingual**: a `wpml-config.xml` file is included. The list of tabs is copied to every language; the titles and texts of the tabs are what you translate, tab by tab. Texts are stored by tab, not by position, so reordering tabs does not change them. Tested with WPML 5.2, String Translation and WooCommerce Multilingual 5.7. 53 * **Polylang**: Polylang reads the same file. The list of tabs stays the same in every language, wherever you change it, and each language keeps its own texts. Tested with Polylang 3.8.53 * **Polylang**: Polylang reads the same file. The list of tabs stays the same in every language, wherever you change it, and each language keeps its own texts. With Polylang Pro, the tab texts follow the description: "Duplicate content" and the bulk translation "Copy" copy them, synchronized products keep them the same in every language, and machine translation translates them with the rest of the product. Tested with Polylang 3.8, Polylang Pro 3.9 and Polylang for WooCommerce 2.2. 54 54 * **Shared tabs** are translated like your posts. A translated product shows the translated shared tab, or the original one until it is translated. 55 55 * A text not translated yet shows in the original language instead of disappearing, or stays hidden until it is translated if you prefer. The overview counts the tabs left to translate in each language. … … 136 136 = How do I translate tabs with Polylang? = 137 137 138 Create the translation of the product: its tabs show the texts of the original, marked as not translated, until you type their translation in the Tabs panel. The list of tabs stays the same in every language. Shared tabs are translated in ProdTabs > Shared tabs.138 Create the translation of the product: its tabs show the texts of the original, marked as not translated, until you type their translation in the Tabs panel. A warning icon next to Tabs in the Product data box tells you that some are left. The list of tabs stays the same in every language. Shared tabs are translated in ProdTabs > Shared tabs. With Polylang Pro, a translation made with "Duplicate content" or the bulk translation "Copy" starts with the texts of the original, like its description, ready to be translated. 139 139 140 140 = Does it work with my theme? = … … 176 176 177 177 == Changelog == 178 179 = 0.4.8 = 180 * Polylang Pro: "Duplicate content", the bulk translation "Copy" and synchronized products now carry the tab texts, like the description. 181 * A tab translated in part (title only, or content only) shows the original text for the missing part, marked as not translated. 182 * Product screen: a warning icon next to Tabs when tabs are left to translate. The panel marks shared tabs without a translation, and tabs without a title or content, which the shop does not show. 183 * Overview: the number of products with tabs updates as soon as tabs are added or removed. 178 184 179 185 = 0.4.7 =
Note:
See TracChangeset
for help on using the changeset viewer.