1) I tried to use a custom language file for English and Arabic by creating files inside child theme language folder. But it is not fetching the language file. The text domain is 'divichild' and file name is 'divichild-ar.po'. Attaching the screenshot also.
2) Is it possible to add translation in .po file without file line number.
3) I have exported the .po file from string translation option in WPML and added some text, but it is not reflecting in frontend.
Is there any documentation that you are following?
For the first and second points, you can easily test and make sure it works without WPML (disable WPML and switch the default language of WP to Arabic) and then test, if it works fine you can enable WPML and it should work fine also.
As for questions related to WPML:
1) I assume you are using some custom theme for this, so the best would be first to confirm the translation works fine when strings are translated via WPML String translation.
Make sure you are following the next related docs:
2) Update WPML plugins to the latest versions. To confirm some of the custom code is not causing the issue, switch to the Divi parent theme and add some example code, scan and translate via WPML string translation, and check if it works like that.
We have QA and Pre-prod environments, I have updated all the translations via string translation option in WPML. I have exported the translations as .po file and imported into Pre-prod environment but it is not importing anything from the file and I'm not getting any errors. Please find the attached screenshots Please support.
difficult for me to say what happens or go wrong, make sure to select to include translations in the website where you are exporting them.
If would be helpful if you could please share a video of the process, so I can see what string you are exporting, then importing, and what string does not get translation imported.
Thanks,
Drazen
The topic ‘[Closed] Custom language file’ is closed to new replies.