Background of the issue:
I'm trying to get the String Translation plugin to detect all 'in-code' strings in our theme. The site is built using the Timber framework, which uses Twig for template files. The theme has been scanned for strings manually, but only strings in PHP files were picked up initially. The 'Auto register untranslated strings' option is enabled.
Symptoms:
With the 'auto register' function enabled and pages being visited by me (logged in), no new strings were detected, until mysteriously after 6+ hours had passed, some of the 'Twig' strings showed up in the string translation list, but there were still some missing. There is no clear cause for this. I had been clearing caches and refreshing constantly, which did not result in any new strings being detected.
Questions:
Why are some strings in Twig templates not being detected immediately, if at all?
What could cause a delay in detecting strings in Twig templates?
I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)
**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **
I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.
NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.
Of course! I was able to locate the string by going to WPML->Theme and plugins localization -> select the theme and any plugins that might have strings that are missing and re scan them.
These were the steps I followed to resolve this.
Also, added the missing translation for the page/post.
I've followed the "Theme and plugins localization" steps and I'm only getting one new string added. I'm still unclear as to what you mean by "added the missing translation for the page/post". Can you please clarify?
We are also experiencing an issue where none of our translated strings are showing on the front-end, even in PHP files. For example, there is a button that says "Register" on the English side of the site, and it still says "Register" on the Spanish side of the site. It has been translated into Spanish as "Registrarse" through the String Translation function. I've synced the batch of strings already. Is there a step I'm missing in order to apply these translated strings on the front-end?
When I reviewed your translation work the trnslation for the specific page was actually missing and not 100% finished, I had to finalize it and publish it.
I've followed the "Theme and plugins localization" steps and I'm only getting one new string added.
---> which string are you missing or is there a specific page that we can review?
For the second issue please share a URL where we can view this in the front end.