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.
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.