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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | - | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 |
- | - | - | - | - | - | - |
Supporter timezone: America/Lima (GMT-05:00)
Tagged: Custom Work
This topic contains 40 replies, has 2 voices.
Last updated by Andreas W. 1 year, 1 month ago.
Assisted by: Andreas W..
Author | Posts |
---|---|
April 4, 2024 at 11:41 am #15482724 | |
feruzK |
Dear Madam, Sir, I am addressing you in relation to the translation a string. Indeed, yesterday I translated the Out of Stock string and I saw that this string was not translated then I deleted it and I rescanned my theme but unfortunately I did not find this string. For this reason I am contacting you, could you resolve this problem please? Thanks for your answer. |
April 4, 2024 at 11:59 am #15482863 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, Did you try to search for the string at WPML > String Translation > Translate texts in admin screens (Link at the bottom of the page)? If you find the string, mark it and add it to String Translation to translate it. If you still can not find the string, please let me know. It would also be very helpful if you could send us the WPML information for troubleshooting. Best regards |
April 4, 2024 at 12:07 pm #15482886 | |
feruzK |
Hello Andreas, Thanks for your response. In fact, I have already tried to look for it on admin screens too but I did not find it and for this reason I have contacted your support service and I am sending you debug information. Thanks for your answer. |
April 4, 2024 at 12:14 pm #15482909 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Did you also try the option "Register strings while content is rendered"? You can find the option at WPML > String Translation in the bottom section. Enable the option, then go to the front end and reload the page on which the string is found. Then disable the option and you should be able to find the string. If you cannot find the string, then the issue might be how the string is coded inside the theme. Are you sure that the string is coming from the theme and not from a plugin? Could you please send me a link to a product on which I can see the issue? |
April 4, 2024 at 12:26 pm #15483018 | |
feruzK |
I followed what you told me and finally I found the string but when I translated it, the translation was not taken into account. What can I do ? I am sending you the screenshot of this string translation. Thanks for your answer. |
April 4, 2024 at 12:35 pm #15483099 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, I would like to offer to have a closer look at the problem and request temporary access (wp-admin) to the website to investigate this issue further. You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it. IMPORTANT The private response form looks like this: Next time you reply, click "I still need assistance." Video: Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form. Best regards |
April 4, 2024 at 12:36 pm #15483100 | |
feruzK |
Where could be the problem with that? I'll send you the screenshot. |
April 4, 2024 at 1:01 pm #15483263 | |
feruzK |
I don't see the wp-admin / FTP fields and I should open the new ticket regarding this problem? |
April 4, 2024 at 1:28 pm #15483489 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Please provide me admin access, as I would like to take a closer look at the issue. I have enabled the private reply form again now. |
April 4, 2024 at 8:22 pm #15485761 | |
feruzK |
Why did you download a backup plugin? No one has given you the right to download a plugin from my site. I did not authorize you to upload a plugin to my site I am really disappointed with your service!!! |
April 4, 2024 at 11:10 pm #15485974 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
My apologies, that I did not ask you for your consent again, but we do already mention this approach and your consent when we ask you to fill out the private reply form on which you provide access to the site. The plugin was already installed and a backup was in place. I only downloaded it. I do need a copy, as I need to disable plugins and switch themes, maybe even look into the code of the theme and plugins to understand where the "Out of stock" string is coming from and why it is not getting translated. I can not run such tests on a live site. If you insist I will not continue troubleshooting the issue and delete the local copy now. Please confirm. If you need further assistance, please set up a staging site, now which we can run tests without affecting the live site. The private reply form is enabled again so that you can provide access to such a staging site. If you have questions about how to provide a staging site, please ask your hosting support. |
April 5, 2024 at 5:55 am #15486279 | |
feruzK |
Hello Andreas, I hope you are well. Indeed, first of all I did not know that you were installing the plugin on my site and as you tell me that it is already installed and only I downloaded it that is not true. Personally, I never use the backup plugin to back up my site and especially the free plugin and I don't trust this type of plugin. Because I manage the server myself, it is not a host and to save my site I have what I need on my server. Then, regarding the test site, yes you are right, normally I would have to send you, unfortunately not long ago, for technical reasons I had deleted it and I did not have time to recreate it and for this reason I sent you the site in production and I did not know that just for a word string translation you will perform a backup with a plugin that I never use. For this reason, you had to ask me. Now I know you have already installed and downloaded my site site on your local computer and I hope you found the problem anyway where is this problem coming from? If you have found the problem, in this case, inform me so that I can give you access to the backend of my site and as soon as you resolve the problem then I ask you to delete the copy that you made with plugin backup from your local computer. However, in any case, I do not want the details of my site and the data not to have to be divulged to third parties and I hope that you understand what I am talking about. Again, thank you for your answer and for your support. |
April 5, 2024 at 6:03 am #15486282 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
My apologies, I just realized that I did ask for access to your site in my previous comment without adding the paragraph about the possibility need of installing this plugin and taking a package of the site, as I did not expect that it was necessary for this case. Take note that I have used this plugin almost every day for many years and never run into any issues with it. Take note that this is a plugin with 5+ Million Active Installations. It is usually always the case, that I create such copies if the client only provides access to a live site, as I do not want to take any changes on a live environment in order not to cause any downtimes. Please do not worry about your data at all, they are in good hands and I will delete this local site once I am done investigating the issue. I am setting up the local install now, will investigate the issue and then get back to you. |
April 5, 2024 at 7:11 am #15486459 | |
feruzK |
Ok very good. Thank you for your support and I look forward to hearing from you. |
April 5, 2024 at 4:36 pm #15489125 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
The string that is displayed on your site is coming from wp-content\themes\martfury\inc\backend\customizer.php. It is the 'default' string which is not translatable. 'outofstock_text' => array( 'type' => 'text', 'label' => esc_html__( 'Custom Out Of Stock Text', 'martfury' ), 'section' => 'shop_badge', 'default' => 'Out Of Stock', 'priority' => 20, 'active_callback' => array( array( 'setting' => 'badges', 'operator' => 'contains', 'value' => 'outofstock', ), ), ), If you edit this line you will see the changes on Frontend: Change: 'default' => 'Out Of Stock', to: 'default' => 'Out Of Stock Foo', This string is not coded properly to be translatable, but according to the logic here, you need to first edit a "Custom Out Of Stock Text" inside the Martfury Theme Options first, then locate this string on String Translation and translate it. At this point, I can not follow the approach of the theme author, as the Customizer does not provide any option to edit this string. Maybe you should ask the theme support about where exactly this 'Custom Out Of Stock Text' is editable. |
The topic ‘[Closed] String Translation’ is closed to new replies.