How use custom locale (.mo/.po file) for custom posts? Is it proper thought?
-
Hello there, I wrote an EN article on my blog. Its a first EN article in my blog history so Im facing an issue. Sometime I will write further.
How I can specify that WP engine should use different locale for translated strings only for specific posts?
No matter if its on sigle page or archive?I read some sources like https://wordpress.stackexchange.com/questions/49451/change-locale-at-runtime but its not working unfortanetly for me nor this way will carry an permormance issue when used in archive i read somewhere…
My progress to goal should be:
1)Specify a taxonomy (tags category or custom) to sign the specific post
2)detect it and assign the speciffic class (adding class not the question) to that post and consequently generate this post with other laguage strings in post footer etc.
What I need is: Only one post in database only in one language as I wrote it! So I do not need translating text of the post. Just naturally wrote in english or in czech.Thank you for opinions. As a resuld should be this my post https://www.danielkral.cz/wordpress-dbc-backup-2-import-sql-problem-solved/ readable with proper english post footer, comments,connect etc. But only this one. Nest post shpould appear with czech footer, comments etc…
- The topic ‘How use custom locale (.mo/.po file) for custom posts? Is it proper thought?’ is closed to new replies.