Mixed language support
-
I have an English WP site, but posts can be in English or Arabic. I created a child theme that switched the post direction (LTR & RTL) and language (comment text) based on a custom field which I add in every post and read from the child theme:
$postDirection = get_post_custom_values('wp_direction'); if($postDirection[0] == 'rtl'){ ....
wpDiscuz uses wp function
is_rtl
to determine the direction, so I thought about somehow overriding that function for Arabic posts to read rtl (since the main site is still ltr). Is this possible? Any better way to do it?
Does wpDiscuz support child extensions that won’t change with updates?The same issue for the language, I want to use .po/.mo but since the plugin is using wp built in translation function
-e()
I don’t know how to trick wp into changing the language per post! Any idea?Last, I added some translations to the plugin but when I exported the language file it only included the approved words (only 4 words), how can I export the ones in waiting list which I translated myself?
- The topic ‘Mixed language support’ is closed to new replies.