Tagged: read more, search, translation
- This topic has 3 replies, 2 voices, and was last updated 7 years, 1 month ago by Mahesh.
-
AuthorPosts
-
March 26, 2017 at 11:30 am #112920mihailoParticipant
Hi,
My project includes localization in Spanish and Serbian. I have started the translation using the provided .pot. However, the issue I am currently experiencing is that the Read More and Search bar strings are taken from the customization instead of the translation files.
Admittedly, I had initially changed the default values hoping that they will appear in Polylang’s Strings translations page. Since they didn’t, I went to plan B: creating the translation files. Still the customized values appeared. I tried putting back the default values and removing the strings in customization altogether. Nothing worked.
Is there a way for me to force the translation strings to be used?
I should mention that I am using a child theme.
Many thanks,
MihailoMarch 27, 2017 at 1:02 am #112953MaheshKeymaster@mihailo: Well, its because, there is no translation for Spanish or Serbian language for the theme yet. Have you made the translation file? If yes, please share it here. Let me know further.
And about translation ready. Pro version are translation ready and is compatible with WPML and Qtranslate-X plugins.Regards,
MaheshMarch 27, 2017 at 2:14 pm #113000mihailoParticipantHi Mahesh,
Thank you for the very prompt reply.
I have indeed created the translation files. Only about 5% are done since I didn’t need any more.
In the end I found a workaround. Using Option Inspector, I removed the following two lines from theme_mods_clean-magazine and theme_mods_clean-magazine_child:
- ‘excerpt_more_text’ => ‘Read More …’,
- ‘search_text’ => ‘Search…’,
After that, the translation strings are properly loading. Probably not the smartest and cleanest way of doing it, though.
I think it would be great to have the option within the customization to simply specify that translation strings will be used, instead of the values defined in wp_options.Thanks again,
MihailoMarch 28, 2017 at 5:08 am #113043 -
AuthorPosts
- The topic ‘Read More … and Search… translation strings not being used’ is closed to new replies.