Changeset 11093
- Timestamp:
- 07/05/2021 07:39:12 PM (3 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-suggestions/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-suggestions/inc/class-plugin.php
r10357 r11093 147 147 } 148 148 149 150 // Prevent querying the TM for long strings which usually time out 151 // and have no results due to being too unique. 152 $query_tm = mb_strlen( $entry->singular ) <= 420; 153 149 154 ?> 150 <details open class="suggestions__translation-memory " data-nonce="<?php echo esc_attr( wp_create_nonce( 'translation-memory-suggestions-' . $entry->original_id ) ); ?>">155 <details open class="suggestions__translation-memory<?php echo $query_tm ? '' : ' initialized'; ?>" data-nonce="<?php echo esc_attr( wp_create_nonce( 'translation-memory-suggestions-' . $entry->original_id ) ); ?>"> 151 156 <summary>Suggestions from Translation Memory</summary> 152 <p class="suggestions__loading-indicator">Loading <span aria-hidden="true" class="suggestions__loading-indicator__icon"><span></span><span></span><span></span></span></p> 157 <?php if ( $query_tm ) : ?> 158 <p class="suggestions__loading-indicator">Loading <span aria-hidden="true" class="suggestions__loading-indicator__icon"><span></span><span></span><span></span></span></p> 159 <?php else : ?> 160 <p class="no-suggestions">No suggestions.</p> 161 <?php endif; ?> 153 162 </details> 154 163 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-suggestions/inc/class-translation-memory-client.php
r8937 r11093 112 112 $url, 113 113 [ 114 'timeout' => 2,114 'timeout' => 4, 115 115 'user-agent' => 'WordPress.org Translate', 116 116 ]
Note: See TracChangeset
for help on using the changeset viewer.