Insights into WordPress Multi-Site, Domain Mapped, and Multilanguage site using WPML [closed]
Insights into WordPress Multi-Site, Domain Mapped, and Multilanguage site using WPML [closed]
Insights into WordPress Multi-Site, Domain Mapped, and Multilanguage site using WPML [closed]
Tip 1: do not use qtranslate. I’ve used for years and now I can say that never been money better spent than those for WPML, specially if compared to the work needed to solve problems qT brings. Also consider that WPML is compatible with a huge number of plugins and themes, in years I used … Read more
Actually you need to hook in the ‘locale’ filter to set the language you want: add_filter(‘locale’, function($locale) { return esc_attr($_GET[‘language’]); }); Then in the links of your switch, you need to pass the language variable: <a href=”https://wordpress.stackexchange.com/questions/260015/<?php echo add_query_arg(“language’, ‘xx_XX’) ?>”>XX</a> Where xx_XX is the language locale code for language XX
http://codex.wordpress.org/Function_Reference/load_theme_textdomain
You can create a custom field, give it a value of lang=’ur’ and check for it in your header.php. Add the custom field from the Custom Fields box. Let’s call it page_lang. Give it a value of lang=’ur’. In header.php: <?php global $post; $lang = get_post_meta(get_the_ID(), ‘page_lang’, true); ?> <body <?php body_class();?> <?php echo $lang;?>> … Read more
When naming your po and mo files in a theme, you need to only make use of the language code to name these files. Any other convention will not work For example, my blog is in Afrikaans and the localization language code is af_AF. My mo and po files are named accordingly, ie, af_AF.po and … Read more
If you’re comfortable with the use of WordPress and plugins you should take a look at WPML plugin at http://wpml.org/ It’s working quite well, even for non-programming users.
Looks like you may not be able to just add a pair to your .po file, without first adding it to the wordpress.pot file: http://codex.wordpress.org/Translating_WordPress#gettext_files. You’ll also need to compile your .po file into a .mo (Machine Object) file in order for your changes to take effect. I’m not certain that will work, but it … Read more
The Pro: You can reuse native WP code. Contra: You have to write your own taxonomy selector to avoid posts tagged with more than one language. The plugin Posts 2 Posts from @scribu should guide you to a more flexible approach.
@toscho is right about the direction of the text… But as someone who builds websites in hebrew all the time i would reccomend you create a custom page template by putting this tag in a copy of page.php /* Template name: arabic page */ THen you can design it differently… maybe remove the sidebar which … Read more