Background of the issue:
I have done my whole website using custom page templates and hence I have many static strings to translate. I registered these strings via functions.php, but they are not listed in my WPML string translation section. I checked after clearing the cache. I am unable to translate these strings automatically and have to do it manually, which is difficult and time-consuming. The same issue occurs with custom menus not getting translated. I am looking for a better fix to apply changes automatically across my site. Additionally, my site is loading very slowly after using WPML.
Symptoms:
Strings registered via functions.php are not appearing in the WPML string translation section. Automatic translation is not working, and the site is loading slowly.
Questions:
How can I get the strings registered via functions.php to appear in the WPML string translation section?
Is there a way to automate the translation of static strings and custom menus?
How can I improve the site loading speed after implementing WPML?
I have attached my functions file and you can see that its registered correctly, i did scan also still not coming up in string translations,why . And how to automatically translate things in string translation page.
If most of your translations rely on that, then maybe you want to take a look at hidden link which seems like it would be better suited to keep a fully localized theme with custom templates like yours. that way with WPML you only need to worry about translating the content made inside WP and not this (and who knows, maybe it's even cheaper in both time and resources to go that route?)
Try to localize one template, and let me know how it goes, we can continue from there afterwards. If you get stuck, let me know where and I'll gladly help where I can.
If you don't see it, please allow me access to the site and point me where the string is both in the back and front-end and I'll gladly check what's going on.
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Rome (GMT+02:00)
This is what I did: hidden link
Your site seems to have a few issues with the database, the autoincrement might be missing in many places and you can see an error of a duplicate entry.
Make sure autoincrement is enabled on the "id" columns or primary keys of your site's tables and then let me know, please so I can enter again.
As you can see things fail at the moment and the same dupicated entry error is happening since the 10th of this month and I bet that after you fix this error, other similar ones might come up.
Can you fix those errors so I can access again and show you every step of the way here?
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Rome (GMT+02:00)
Hello, can you please check my last reply? the problems that i showed you there didn't come from WPML at all, they came from a migration and it's likely that happened also because there wasn't enough WP memory.
Can you please fix this so I can go back and continue? in my last video i showed you the steps up until one part, but couldn't move forward because of this and what needs to be done is not just adding the autoincrement to the different tables on your entire installation or maybe remigrate from the localhost if things worked ok there and then let me know so I can access and show you the rest.