Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to translate the Porto theme product filters to Bulgarian, specifically the 'by size' and 'by color' filters, and you want to correct the translation of the word 'by' which was incorrectly translated to 'по'.
Solution:We have a workaround.

Edit .../wp-content/plugins/porto-functionality/shortcodes/woo_templates/porto_products_filter.php file.

Look for line 192.

Replace:

echo '<select class="porto_dropdown_product_attributes" name="filter_' . esc_attr( $area ) . '">';</select>

With:

if (class_exists('SitePress')) {
				do_action('wpml_register_single_string', 'porto', 'porto_filter[' . $area . ']', $area);
				$area = apply_filters('wpml_translate_single_string', $$area, 'porto', 'porto_filter[' . $area . ']');
			}
			echo '<select class="porto_dropdown_product_attributes" name="filter_' . esc_attr( $area ) . '">';			</select>

Visit the front-end.

Go to WPML > String Translation and translate the new strings.

To correct the translation of the word 'by', you can adjust it directly in the WPML String Translation interface. Access it via this link: WPML String Translation.

Please note that this solution might be outdated or not applicable to your specific case. If these steps do not resolve your issue, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 1 reply, has 1 voice.

Last updated by elenaS-38 1 month, 2 weeks ago.

Assisted by: Kor.

Author Posts
January 20, 2025 at 8:34 pm #16615513

elenaS-38

sure, done, two factor auth has been removed.

January 21, 2025 at 5:52 am #16616383

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. You can correct it here hidden link

January 25, 2025 at 9:14 am #16633272

elenaS-38

thanks, all works now

January 25, 2025 at 9:15 am #16633273

elenaS-38

I am very happy with the support, thanks