Skip Navigation

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.

This topic contains 1 reply, has 1 voice.

Last updated by elenaS-38 1 day, 17 hours ago.

Assisted by: Kor.

Author Posts
January 1, 2025 at 8:24 pm #16557469

elenaS-38

Background of the issue:
I am trying to translate Porto theme product filters to Bulgarian. I have followed the steps to go to WPML → Theme and plugins localization, select the theme and Porto plugins, scan it, and then go to WPML → String Translation to search and translate the strings. I have been trying for weeks and have an old support ticket here: https://wpml.org/forums/topic/porto-theme-filter-translation-to-bulgarian/. The issue can be seen on this page: hidden link.

Symptoms:
The Porto theme filters 'by size' and 'by color' are not translating to Bulgarian.

Questions:
How can I translate the Porto theme filters to Bulgarian?
Why are the filters not translating despite following the steps?

January 1, 2025 at 8:25 pm #16557489

elenaS-38

I would update wpml string translation, but wp still does not offer me update.

January 2, 2025 at 4:10 pm #16559481

Kor
Supporter

Languages: English (English )

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

Thanks for contacting us.

I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

January 11, 2025 at 5:13 pm #16584486

Kor
Supporter

Languages: English (English )

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

Thanks for your reply.

I'm able to translate the word "by" but not the product attributes. Not sure what's wrong and I would need to investigate this further.

I kindly ask for a snapshot of the site. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To guide you further, please adhere to these instructions:

1. View the Duplicator instructions video: hidden link

2. Consult WPML's instructions on providing supporters with a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.

Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.

Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.

January 11, 2025 at 5:45 pm #16584504

elenaS-38

Hi, feel free to install the plugin and to duplicate the website as you need and use the copy to find the issue.
Thanks
Elena

January 12, 2025 at 8:22 am #16585252

elenaS-38

If I add categories for products to the website and after I finish I make a full backup, would that interferes with your work?

January 13, 2025 at 10:46 am #16587775

Kor
Supporter

Languages: English (English )

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

Thanks for your reply.

No, what you did over there will not interfere with my investigation. I will work on your Website now and will come back to you as quickly as possible with my findings.

January 13, 2025 at 7:32 pm #16590517

Kor
Supporter

Languages: English (English )

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

Thanks for your patience.

I have a copy of the site and I will check and revert back to you as quickly as possible.

January 15, 2025 at 2:46 pm #16597806

Kor
Supporter

Languages: English (English )

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

My apologies for the delay. Just letting you know that I'm still working on this and I will come back to as quickly as possible.

January 16, 2025 at 3:31 pm #16602833

Kor
Supporter

Languages: English (English )

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

Thanks for your patience. I'm escalating this to our 2nd Tier Support for further investigation.

January 17, 2025 at 12:22 pm #16606099

elenaS-38

ok, thanks

January 17, 2025 at 12:31 pm #16606131

elenaS-38

Can you please let me know where you managed to translate the word "by" before the product attributes?
I would like to change the translation, instead от, it should be по, or no word for by at all.
Thanks
Elena

January 17, 2025 at 1:38 pm #16606338

Kor
Supporter

Languages: English (English )

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

Thanks for your reply.

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 ) . '">';

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 ) . '">';			

Visit the front-end.

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

January 20, 2025 at 4:10 pm #16614616

elenaS-38

Thanks, that solution is working.
Can you please let me know how to translate the "by" word, that has been translated to "по" in the filters?

"По" is wrong preposition, I would like to change it, or remove it.
Thanks

January 20, 2025 at 4:14 pm #16614634

Kor
Supporter

Languages: English (English )

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

Thanks for your reply. Could you remove the WordFence protection temporarily?

Screenshot_235.jpg