Forum Replies Created
-
AuteurArticles
-
Currently title and sub-title (description) of the website are yet inside header.php so no need to add something… translate and after create the .mp
Extract of code
bloginfo( 'description' );
Before to use your own theme, test your website with official theme like twentyten, twenty eleven or twelve… They are translation ready and well made…
To improve multilingual features, some of child theme are provided as example :
It is done through couple of lines msgid – msgstr in the .po – mo files of theme languages sub-folder. You can do it by hand (poEdit) or via xili-dictionary plugin (able to import these terms).
I’ll contact you directly to progress in analysis…
Reserved for developers
Please find below an example of a lite plugin for instancing xili-tidy-tags plugin for the product tags of wooCommerce attached to custom post type « product ».
Here it is a mini plugin. You can add action in your customized plugin. Never use theme’s functions.php.
< ?php /* Plugin Name: xili-tidy-tags activation for wooCommerce Plugin URI: https://dev.xiligroup.com/xili-tidy-tags/ Description: xili-tidy-tags is a tool for grouping tags by language or semantic group. Initially developed to enrich xili-language plugin and usable in all sites (CMS) and bbPress forum and now WooCommerce Author: dev.xiligroup.com - MS Version: 1.8.2 Author URI: https://dev.xiligroup.com License: GPLv2+ and donation */ # 2013-04-20 - MS function xili_tidy_tags_start_woo () { global $xili_tidy_tags_woo; if ( class_exists ( 'xili_tidy_tags' ) ) { $xili_tidy_tags_woo = new xili_tidy_tags ( 'product_tag', 'product' ); // no params by default for post_tag for post /** * * class admin in separated file * */ if ( is_admin() ) { $xili_tidy_tags_woo_admin = new xili_tidy_tags_admin( $xili_tidy_tags_woo, 'product_tag', 'product' ); } } } // only use this action 'plugins_loaded' in a little plugin for instancing the plugin for the XTT taxonomy / CPT // DO NOT insert in theme's functions.php - it is too late for taxonomy registration ( here xili_tidy_tags_product_tag ) and lot of errors appears in UI. add_action( 'plugins_loaded', 'xili_tidy_tags_start_woo', 17 ); // after xili-tidy-tags (15) and bbPress topic (16) ?>
Reserved for developers
Enjoy,
M.
Use and activate xl-bbp-addon plugin delivered with xili-language (now 2.8.7)
Have you access to phpmyAdmin ? and repaired the DB ?
It is possible to do that with xili-language. In this plugin, language is a taxonomy and can be used as others taxonomies in (future) queries. (far better than custom fields)
One language part is not necessary the mirror of another language part.For home page, disable browser language selection and sub-selection..
For categories, if url is without ?lang=xx_yy (fr_fr or en_us) both posts are listed.
The best way to progress : test it.
M.
Login form in WP world is considered to be in admin side. And the « Translation domains settings » xl approach works only on front-end side to switch language…
If you want to do that with « theme-my-login », you must modify only this plugin and not xili-language plugin (perhaps using some functions / hooks of xili-language class). I think it is a very specific development but a possible development after a good analysis step.M.
The menu management depends of content strategy and theme architecture (what is your theme)…
Have you read this page on wiki :
http://wiki.xiligroup.org/index.php/Xili-language:_navigation_menu
For pages, there is a way that nav menu can subselect pages according language..
M.
2.8.4.2 is available for download in developers tab of xili-language repository:
http://wordpress.org/extend/plugins/xili-language/developers/
To update your website, use FTP way…
Please test and give feedback,
M.
-
AuteurArticles