Home›Support›English Support›[Resolved] Doesn't work translation for "admin_texts_dp_options" in my using theme.
[Resolved] Doesn't work translation for "admin_texts_dp_options" in my using theme.
This thread is resolved. Here is a description of the problem and solution.
Problem:
I'm translating some strings added in the theme's header with String Translation but it doesn't translate on the top page of my site. The translations are from "admin_texts_dp_options" for "[dp_options]header_img_title" and "[dp_options]header_img_caption" in my theme.
Solution:
The strings were cached by the used theme "Lemon Cream by DigiPress", to fix show the translations you need to disable the cache option with the following steps:
- Go to Digipress > Advanced Setting > Speed setting
- Disable the "Use Cache" option
- Save the settings
- Clear all the cache files
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.
No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
The translations, Japanese to English and French, can be showed up in the String Translation but it doesn't translate on top page of my site. The translations are from "admin_texts_dp_options" for "[dp_options]header_img_title" and "[dp_options]header_img_caption" in my using theme.
Actually the translations work if I check out in the customizer.
Please try the following steps and let me know if that helps:
1. Go to WPML > String Translation
2. Delete the mentioned strings
3. Scroll down to the "Auto register strings for translation" section
4. Enable the "Look for strings while pages are rendered" option
6. Visit the page where the strings appear
7. Go back to the String Translation page and disable the Auto register option
8. Search for the strings in "String Translation" then translate them
1) I would need to request temporary access (WP-Admin) so I can investigate this issue further.
– preferably to a test site where the problem has been replicated if possible –
Your next answer will be private, which means only you and I have access to it.
❌ Please backup your database and website before providing us with access details ❌
If you don't see the form below, pelase don't add your credentials as they will be publicly exposed: hidden link
It will be helpful if you could tell me any other ideas that you can access to log into my site, if you can't access again because I don't have good knowledge about the technology.
Thank you for your quick returning.
I reply with inline below.
Does the admin profile language that you mentioned means that it's showed on the top menu after longgin in? If so, yes, the situation is the same. It doesn't switch to other language.
>Could you please tell me if you're switching back the language or do you see the same when switching the admin profile language?
There is the setting page for my theme template in the left side, "DigiPress" and click the "詳細設定 (Japanese)". Please check out "サイトヘッダー表示設定 (Japanese)" from the 6th item and you'll find them. I attached the image.
>Please also let me know where the text is added as I couldn't find any header templates/settings.
There is actually an another issue that I've been working for is the custom post list お知らせ (news) page in my theme doesn't work properly. The list is not showed in each languages but showed in all languages mixed up.
I attached images of the list and of the admin page.
It will be grateful if you could check out as well.
Best regards,
Mayumi
New threads created by Mohamed Sayed and linked to this one are listed below:
I checked the site again and made more tests including:
- Switching the admin language from the top admin bar and adding the English/French texts directly to the theme options page.
- Wrapping the text in a WPML string shortcode like [wpml-string context="The-Theme-Domain"]花笑みあるジュエリーを制作しています![/wpml-string] then translating again with String translation.
But nothing of the above steps helps to fix this issue.
Most probably this is an issue with the theme and the text is not translatable. For the text translation to appear on the site, the following conditions have to be met:
- The text must be wrapped in gettext calls.
- There must be a textdomain argument.
I also suggest asking the theme authors to join our Go Global program via this link (https://wpml.org/documentation/support/go-global-program/), so our compatibility team can work with them to fix compatibility issues and make the theme fully compatible with WPML.
The author said that the issue which I asked is supposed to be out of support but made my theme version updated in order to solve this issue in this time according to WPML condition.
I made my theme updated and try to find which file is accorded to the "admin_texts_dp_options" for "[dp_options]header_img_title" and "[dp_options]header_img_caption" but can't find the file.
The issue isn't solved yet.
It would be grateful if you check out my theme again.
Best regards,
Mayumi
PS: I am not sure if the author will join our Go Global program or not but I will hopefully ask him as he recommended me other translation plugin.