Can’t translate strings shown by dynamic variables
-
Hi, my problem is that I don’t know how to translate the strings shown by the dynamic variables (those with the format like %d, 1%s, etc) whose content I have written in the backend of the site. The plugin whose content I’m talking about is Hotel Booking by Motopress. The page https://translatepress.com/translate-dynamic-strings-wordpress/ doesn’t contain any solution unfortunately. The issue is on the site but also in the emails sent by the plugin (which, for the rest, I have translated with the shortcode [trp_language language=”xx_xx”]). I thought that maybe some PHP snippet like if (get_locale() == ‘en_GB’){} or something along those lines could help, but my knowledge of PHP is basically zero and I wouldn’t know how to code without breaking the site.
Thanks in advance for any help.
- The topic ‘Can’t translate strings shown by dynamic variables’ is closed to new replies.