I have an issue on a website, which is part of a bigger multisite project in WordPress.
I have hardcoded strings which I translate with the String Translation plugin, but it doesn't echo the correct language, still shows me the default language.
If I enable * Look for strings while pages are rendered*, it shows me the translated strings, but only for 2h and I dont like this approach.
So far I tried:
1. Show custom MO Files Pre-generation dialog box
2. Increase memory Limit 512MB
3. Plugin is up to date
4. I did check file permissions in language folder they are 755
I did a workaround as a test and it works if I do it with if statment and ICL language.
As I mentioned in my ticket I don't want to do that. (I just did that as a temporary fix)
I do register the strings in WPML, and I do translate them.
But they dont show on frontend on French language as translated (German is my main),
unless I enable * Look for strings while pages are rendered*, then strings are shown as translated.
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 and FTP) 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
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.
The private response form looks like this: hidden link
Next time you reply, click "I still need assistance."
Video: hidden link
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.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
I suggest you register only the French string including a text domain and translate it with String Translation.
If this does not solve the issue, I suggest that you install the custom theme on the following test site and I will take a closer look into the issue:
One-Click-Login: hidden link
This test site does not provide server access, but you can use the File Manager Plugin.
Please leave me a quick comment on this ticket once the theme is installed.
The topic ‘[Closed] String Translation doesnt echo custom strings on translated languages.’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.