PluginProbe
Translate and Go multilingual – Automatic AI translation – wpLingua / 2.16.7
Translate and Go multilingual – Automatic AI translation – wpLingua v2.16.7
2.16.7 2.16.6 2.16.5 2.16.4 2.16.3 2.16.2 2.16.1 2.16.0 2.15.2 2.15.1 2.15.0 2.14.3 2.14.2 2.14.1 2.14.0 2.13.1 2.13.0 2.12.3 2.12.2 2.12.1 trunk 1.0.3 1.0.4 1.0.5 1.1.0 All 112 releases
← All changes | inc/dom/load-progress.php +5 -2 2.15.22.16.7 View file →
@@ -173,10 +173,10 @@
173 173
174 174 $texts_unknow_by_chunk = array();
175 175 $current_chunk = array();
176 176 $current_chars = 0;
177 - $max_items_per_chunk = (int) ( WPLNG_MAX_TRANSLATIONS_STR / 2 );
178 - $max_chars_per_chunk = (int) ( WPLNG_MAX_TRANSLATIONS_CHAR / 2 );
177 + $max_items_per_chunk = (int) ( WPLNG_MAX_TRANSLATIONS_STR / 4 );
178 + $max_chars_per_chunk = (int) ( WPLNG_MAX_TRANSLATIONS_CHAR / 4 );
179 179
180 180 foreach ( $args['texts_unknow'] as $text_unknow ) {
181 181
182 182 $text = (string) $text_unknow;
@@ -202,8 +202,11 @@
202 202
203 203 $current_chunk[] = wplng_encryption_encrypt( $text );
204 204 $current_chars += $len;
205 205 ++$numer_of_translated_texts;
206 +
207 + $max_items_per_chunk = (int) ( WPLNG_MAX_TRANSLATIONS_STR / 2 );
208 + $max_chars_per_chunk = (int) ( WPLNG_MAX_TRANSLATIONS_CHAR / 2 );
206 209 }
207 210
208 211 // Push last chunk if any
209 212 if ( ! empty( $current_chunk ) ) {